source: main/trunk/model-cols/niupepa/etc/collectionConfig.xml@ 26247

Last change on this file since 26247 was 26247, checked in by kjdon, 12 years ago

some style format changes by GLI. changed indexes and index sub collections and search types

File size: 12.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <metadataList>
4 <metadata lang="en" name="creator"/>
5 <metadata lang="en" name="maintainer"/>
6 <metadata lang="en" name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" lang="en" name="description">A sample of niupepa papers</displayItem>
10 <displayItem assigned="true" lang="en" name="name">niupepa: Maori newspapers</displayItem>
11 <displayItem assigned="true" lang="en" name="text">text</displayItem>
12 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
13 <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
14 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
15 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
16 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
17 <displayItem assigned="true" lang="en" name="document">document</displayItem>
18 <displayItem assigned="true" lang="en" name="section">section</displayItem>
19 </displayItemList>
20 <format>
21 <gsf:template name="choose-icon">
22 <gsf:switch>
23 <gsf:metadata name="DocType"/>
24 <gsf:when test="equals" test-value="Commentary">
25 <gsf:icon file="icomm.gif" select="collection"/>
26 </gsf:when>
27 <gsf:when test="equals" test-value="Description">
28 <gsf:icon file="iabstr.gif" select="collection"/>
29 </gsf:when>
30 <gsf:when test="equals" test-value="Niupepa">
31 <gsf:icon file="np.gif" select="collection"/>
32 </gsf:when>
33 <gsf:otherwise>
34 <gsf:icon type="document"/>
35 </gsf:otherwise>
36 </gsf:switch>
37 </gsf:template>
38 <gsf:template name="choose-title">
39 <gsf:choose-metadata>
40 <gsf:metadata name="Series"/>
41 <gsf:metadata name="exp.Title"/>
42 <gsf:metadata name="ex.dc.Title"/>
43 <gsf:metadata name="Title"/>
44 <gsf:default>Untitled</gsf:default>
45 </gsf:choose-metadata>
46 <gsf:switch>
47 <gsf:metadata name="Volume"/>
48 <gsf:when test="exists">
49 <xsl:text>, Volume:</xsl:text>
50 <gsf:metadata name="Volume"/>
51 </gsf:when>
52 </gsf:switch>
53 <gsf:switch>
54 <gsf:metadata name="Issue"/>
55 <gsf:when test="exists">
56 <xsl:text>, Issue:</xsl:text>
57 <gsf:metadata name="Issue"/>
58 </gsf:when>
59 </gsf:switch>
60 </gsf:template>
61 </format>
62 <search type="mgpp">
63 <level name="section">
64 <displayItem lang="en" name="name">section</displayItem>
65 </level>
66 <defaultLevel name="section"/>
67 <index name="text">
68 <displayItem lang="en" name="name">text</displayItem>
69 </index>
70 <defaultIndex name="text"/>
71 <indexOption>
72 <option name="accentfold"/>
73 <option name="casefold"/>
74 <option name="stem"/>
75 </indexOption>
76 <indexSubcollection name="abstract,commentary,niupepa">
77 <displayItem lang="en" name="name">papers, commentaries and abstracts</displayItem>
78 </indexSubcollection>
79 <indexSubcollection name="niupepa">
80 <displayItem lang="en" name="name">newspapers</displayItem>
81 </indexSubcollection>
82 <indexSubcollection name="commentary">
83 <displayItem lang="en" name="name">bibliographic commentaries</displayItem>
84 </indexSubcollection>
85 <indexSubcollection name="abstract">
86 <displayItem lang="en" name="name">English abstracts</displayItem>
87 </indexSubcollection>
88 <subcollection filter="DocType/Commentary/" name="commentary"/>
89 <subcollection filter="DocType/Abstract/" name="abstract"/>
90 <subcollection filter="DocType/Niupepa/" name="niupepa"/>
91 <searchType name="plain"/>
92 <format>
93 <gsf:template match="documentNode">
94 <td valign="top">
95 <gsf:link type="document">
96 <gsf:icon type="document"/>
97 </gsf:link>
98 </td>
99 <td>
100 <gsf:link type="document">
101 <xsl:call-template name="choose-title"/>
102 </gsf:link>
103 </td>
104 </gsf:template>
105 </format>
106 </search>
107 <infodb type="gdbm"/>
108 <import>
109 <pluginList>
110 <plugin name="ZIPPlugin"/>
111 <plugin name="GreenstoneXMLPlugin"/>
112 <plugin name="CommentaryPlugin"/>
113 <plugin name="NiupepaPlugin">
114 <option name="-enable_cache"/>
115 <option name="-OIDtype" value="filename"/>
116 <option name="-process_exp" value="\.item$"/>
117 <option name="-create_thumbnail" value="true"/>
118 <option name="-create_screenview" value="true"/>
119 </plugin>
120 <plugin name="AbstractPlugin"/>
121 <plugin name="MetadataXMLPlugin"/>
122 <plugin name="ArchivesInfPlugin"/>
123 <plugin name="DirectoryPlugin"/>
124 </pluginList>
125 </import>
126 <browse>
127 <classifier name="List">
128 <option name="-metadata" value="Series"/>
129 <option name="-sort_leaf_nodes_using" value="ex.Date"/>
130 <option name="-bookshelf_type" value="always"/>
131 <option name="-partition_type_within_level" value="none"/>
132 <format>
133 <gsf:template match="documentNode">
134 <td valign="top">
135 <gsf:switch>
136 <gsf:metadata name="abstract"/>
137 <gsf:when test="exists">
138 <gsf:link OIDmetadata="abstract" type="document">
139 <gsf:icon file="iabstr.gif" select="collection"/>
140 </gsf:link>
141 </gsf:when>
142 </gsf:switch>
143 </td>
144 <td valign="top">
145 <gsf:link type="document">
146 <xsl:call-template name="choose-icon"/>
147 </gsf:link>
148 </td>
149 <td valign="top">
150 <gsf:metadata name="Title"/>
151 <xsl:text> </xsl:text> <gsf:metadata format="formatDate" name="Date"/>
152 </td>
153 </gsf:template>
154 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
155 <td valign="top">
156 <gsf:link type="classifier">
157 <gsf:icon type="classifier"/>
158 </gsf:link>
159 </td>
160 <td valign="top">
161 <gsf:metadata name="Title"/>
162 <xsl:text> </xsl:text> <i>(<gsf:metadata name="numleafdocs"/> issues)</i>
163 </td>
164 </gsf:template>
165 </format>
166 </classifier>
167 <classifier name="DateList">
168 <option name="-metadata" value="Date"/>
169 <option name="-nogroup"/>
170 </classifier>
171 <format>
172 <gsf:template match="documentNode">
173 <td valign="top">
174 <gsf:link type="document">
175 <gsf:icon type="document"/>
176 </gsf:link>
177 </td>
178 <td valign="top">
179 <gsf:link type="source">
180 <gsf:choose-metadata>
181 <gsf:metadata name="thumbicon"/>
182 <gsf:metadata name="srcicon"/>
183 </gsf:choose-metadata>
184 </gsf:link>
185 </td>
186 <td valign="top">
187 <gsf:link type="document">
188<!--
189Defined in the global format statement
190-->
191 <xsl:call-template name="choose-title"/>
192 </gsf:link>
193 </td>
194 </gsf:template>
195 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
196 <td valign="top">
197 <gsf:link type="classifier">
198 <gsf:icon type="classifier"/>
199 </gsf:link>
200 </td>
201 <td valign="top">
202 <gsf:link type="source">
203 <gsf:choose-metadata>
204 <gsf:metadata name="thumbicon"/>
205 <gsf:metadata name="srcicon"/>
206 </gsf:choose-metadata>
207 </gsf:link>
208 </td>
209 <td valign="top">
210<!--
211Defined in the global format statement
212-->
213 <xsl:call-template name="choose-title"/>
214 <gsf:switch>
215 <gsf:metadata name="Source"/>
216 <gsf:when test="exists">
217 <br/>
218 <i>(<gsf:metadata name="Source"/>)</i>
219 </gsf:when>
220 </gsf:switch>
221 </td>
222 </gsf:template>
223 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
224 <gsf:link type="classifier">
225 <gsf:metadata name="Title"/>
226 </gsf:link>
227 </gsf:template>
228 </format>
229 </browse>
230 <display>
231 <format>
232 <gsf:option name="TOC" value="true"/>
233 <xsl:template name="additionalHeaderContent">
234<!--
235this javascript is needed to get the #Biblio etc links in the commentaries to work
236-->
237 <script type="text/javascript">
238 <xsl:text disable-output-escaping="yes">$(window).load(function()
239{
240 var links = $("a");
241 for(var i = 0; i &lt; links.length; i++)
242 {
243 if($(links[i]).attr("href") &amp;&amp; $(links[i]).attr("href").match("^#"))
244 {
245 $(links[i]).attr("href", document.URL + $(links[i]).attr("href"));
246 }
247 }
248});</xsl:text>
249 </script>
250 </xsl:template>
251<!--
252Overwriting this template allows you to change the heading of the document.
253-->
254<!--
255<gsf:template name="documentHeading">
256<span style="font-weight:bold; font-size: 120%;">
257<xsl:call-template name="choose-title"/>
258</span>
259</gsf:template>
260-->
261<!--
262Overwriting this template can be used to redefine the content of the whole document. This is useful for simple documents, but not recommended for more complex documents (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
263-->
264<!--
265<gsf:template name="documentContent">
266<xsl:call-template name="wrappedSectionImage"/>
267<xsl:call-template name="wrappedSectionText"/>
268</gsf:template>
269-->
270<!--
271Overwriting this template can be used to change the content of section headings.
272-->
273 <gsf:template name="sectionHeading">
274 <xsl:call-template name="choose-title"/>
275 </gsf:template>
276 <gsf:template name="pageTitle">
277 <xsl:for-each select="/page/pageResponse/document/documentNode">
278 <xsl:call-template name="choose-title"/>
279 </xsl:for-each>
280 </gsf:template>
281<!--
282Overwriting this template can be used to change the content of the top-level section.
283-->
284<!--
285<gsf:template name="topLevelSectionContent">
286<xsl:call-template name="wrappedSectionImage"/>
287<xsl:call-template name="wrappedSectionText"/>
288</gsf:template>
289-->
290<!--
291Overwriting this template can be used to change the content of sections.
292-->
293<!--
294<gsf:template name="sectionContent">
295<xsl:call-template name="wrappedSectionImage"/>
296<xsl:call-template name="wrappedSectionText"/>
297</gsf:template>
298-->
299 </format>
300 </display>
301 <replaceListRef id="gs2-standard"/>
302 <replaceListRef id="gs2-image"/>
303 <replaceList>
304 <replace bundle="niupepa" key="vol" macro="_vol_" resolve="false" scope="metadata"/>
305 <replace bundle="niupepa" key="num" macro="_num_" resolve="false" scope="metadata"/>
306 <replace bundle="niupepa" key="commentary" macro="_commentary_" resolve="false" scope="metadata"/>
307 <replace bundle="niupepa" key="textbiblio" macro="_textbiblio_" resolve="false" scope="text"/>
308 <replace bundle="niupepa" key="textbackground" macro="_textbackground_" resolve="false" scope="text"/>
309 <replace bundle="niupepa" key="textsubmat" macro="_textsubmat_" resolve="false" scope="text"/>
310 <replace bundle="niupepa" key="textavail" macro="_textavail_" resolve="false" scope="text"/>
311 </replaceList>
312 <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
313 <serviceRack name="OAIPMH">
314 <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
315 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
316 -->
317 <metadataFormat metadataPrefix="oai_dc">
318 <metadataPrefix>oai_dc</metadataPrefix>
319 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
320 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace><!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>-->
321 <mappingList><!--
322 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
323 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
324 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
325 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
326 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
327
328 **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
329
330 **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
331 -->
332 <mapping>dc:title,Title</mapping><!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
333 </mappingList>
334 </metadataFormat>
335 </ListMetadataFormats>
336 </serviceRack>
337 </serviceRackList>
338</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.