1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" 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 lang="mi" name="name">Kohinga KÅrero</displayItem>
|
---|
10 | <displayItem lang="en" name="name">Documents Collection</displayItem>
|
---|
11 | <displayItem lang="en" name="shortDescription">Documents collection containing text based resources.</displayItem>
|
---|
12 | <displayItem lang="en" name="description">Documents collection containing text based resources.
|
---|
13 | </displayItem>
|
---|
14 | </displayItemList>
|
---|
15 | <format>
|
---|
16 | <gsf:template name="choose-title">
|
---|
17 | <gsf:choose-metadata>
|
---|
18 | <gsf:metadata name="wmtb.Title"/>
|
---|
19 | <gsf:metadata name="Title"/>
|
---|
20 | <gsf:default>Untitled</gsf:default>
|
---|
21 | </gsf:choose-metadata>
|
---|
22 | </gsf:template>
|
---|
23 | <!--
|
---|
24 | modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message
|
---|
25 | -->
|
---|
26 | <xsl:template name="coll-description">
|
---|
27 | <p>
|
---|
28 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
29 | </p>
|
---|
30 | <!--
|
---|
31 | <xsl:variable name="raw_date">
|
---|
32 | <gslib:collectionMeta name="buildDate"/>
|
---|
33 | </xsl:variable>
|
---|
34 | <xsl:variable name="formatted_date">
|
---|
35 | <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
|
---|
36 | </xsl:variable>
|
---|
37 | <xsl:variable name="numdocs">
|
---|
38 | <gslib:collectionMeta name="numDocs"/>
|
---|
39 | </xsl:variable>
|
---|
40 | <p>
|
---|
41 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
|
---|
42 | </p>
|
---|
43 | -->
|
---|
44 | </xsl:template>
|
---|
45 | <!--
|
---|
46 | CUSTOM TEMLPLATE display-metadata: Displaying WMTB document metadata meaningful to digital library visitors
|
---|
47 | -->
|
---|
48 | <gsf:template name="display-metadata">
|
---|
49 | <!--
|
---|
50 | Displaying general WMTB collecton metadata
|
---|
51 | -->
|
---|
52 | <gsf:switch>
|
---|
53 | <gsf:metadata name="wmtb.HapuOrIwi" select="root"/>
|
---|
54 | <gsf:when test="exists"><br/> Hapū/Iwi: <gsf:metadata name="wmtb.HapuOrIwi" select="root"/></gsf:when>
|
---|
55 | </gsf:switch>
|
---|
56 | <gsf:switch>
|
---|
57 | <gsf:metadata name="wmtb.Location" select="root"/>
|
---|
58 | <gsf:when test="exists"><br/> Location(s):Â <gsf:metadata name="wmtb.Location" select="root"/></gsf:when>
|
---|
59 | </gsf:switch>
|
---|
60 | </gsf:template>
|
---|
61 | <!--
|
---|
62 | END OF CUSTOM TEMPLATE display-metadata
|
---|
63 | -->
|
---|
64 | </format>
|
---|
65 | <search type="lucene">
|
---|
66 | <index name="allfields">
|
---|
67 | <displayItem lang="en" name="name">all</displayItem>
|
---|
68 | </index>
|
---|
69 | <index name="text">
|
---|
70 | <displayItem lang="en" name="name">text</displayItem>
|
---|
71 | </index>
|
---|
72 | <index name="wmtb.Title">
|
---|
73 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
74 | </index>
|
---|
75 | <index name="wmtb.Description">
|
---|
76 | <displayItem lang="en" name="name">descriptions</displayItem>
|
---|
77 | </index>
|
---|
78 | <index name="wmtb.HapuOrIwi">
|
---|
79 | <displayItem lang="en" name="name">hapū or iwi</displayItem>
|
---|
80 | </index>
|
---|
81 | <index name="wmtb.Location">
|
---|
82 | <displayItem lang="en" name="name">locations</displayItem>
|
---|
83 | </index>
|
---|
84 | <index name="wmtb.Institution_ID">
|
---|
85 | <displayItem lang="en" name="name">institution identifiers</displayItem>
|
---|
86 | </index>
|
---|
87 | <index name="Identifier">
|
---|
88 | <displayItem lang="en" name="name">Identifiers</displayItem>
|
---|
89 | </index>
|
---|
90 | <defaultIndex name="allfields"/>
|
---|
91 | <level name="document">
|
---|
92 | <displayItem lang="en" name="name">document</displayItem>
|
---|
93 | </level>
|
---|
94 | <defaultLevel name="document"/>
|
---|
95 | <searchType name="plain"/>
|
---|
96 | <searchType name="simpleform"/>
|
---|
97 | <searchType name="advancedform"/>
|
---|
98 | <format>
|
---|
99 | <gsf:template match="documentNode">
|
---|
100 | <td valign="top">
|
---|
101 | <gsf:link type="document">
|
---|
102 | <gsf:icon type="document"/>
|
---|
103 | </gsf:link>
|
---|
104 | </td>
|
---|
105 | <!--
|
---|
106 | <td valign="top">
|
---|
107 | <gsf:link type="source">
|
---|
108 | <gsf:metadata name="srcicon"/>
|
---|
109 | </gsf:link>
|
---|
110 | </td>
|
---|
111 | -->
|
---|
112 | <td>
|
---|
113 | <gsf:link type="document">
|
---|
114 | <xsl:call-template name="choose-title"/>
|
---|
115 | </gsf:link>
|
---|
116 | <xsl:call-template name="display-metadata"/>
|
---|
117 | </td>
|
---|
118 | </gsf:template>
|
---|
119 | </format>
|
---|
120 | </search>
|
---|
121 | <infodb type="jdbm"/>
|
---|
122 | <import>
|
---|
123 | <pluginList>
|
---|
124 | <plugin name="CSVPlugin">
|
---|
125 | <option name="-metadata_value_separator" value=";"/>
|
---|
126 | <option name="-OIDtype" value="assigned"/>
|
---|
127 | <option name="-OIDmetadata" value="wmtb.ReferenceId"/>
|
---|
128 | <option name="-filename_field" value="wmtb.Filename"/>
|
---|
129 | <option name="-store_field_values_as_document_text"/>
|
---|
130 | <option name="-use_namespace_for_field_names" value="wmtb"/>
|
---|
131 | </plugin>
|
---|
132 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
133 | <plugin name="TextPlugin"/>
|
---|
134 | <plugin name="HTMLPlugin"/>
|
---|
135 | <plugin name="PDFv2Plugin">
|
---|
136 | <option name="-enable_cache"/>
|
---|
137 | </plugin>
|
---|
138 | <plugin name="WordPlugin"/>
|
---|
139 | <plugin name="MetadataXMLPlugin"/>
|
---|
140 | <plugin name="ArchivesInfPlugin"/>
|
---|
141 | <plugin name="DirectoryPlugin"/>
|
---|
142 | </pluginList>
|
---|
143 | </import>
|
---|
144 | <browse>
|
---|
145 | <classifier name="List">
|
---|
146 | <option name="-metadata" value="wmtb.Title,Title"/>
|
---|
147 | <option name="-metadata_sort_mode_within_level" value="alphanumeric"/>
|
---|
148 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
149 | <option name="-numeric_partition_type_within_level" value="approximate_size"/>
|
---|
150 | <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
|
---|
151 | <option name="-buttonname" value="Title"/>
|
---|
152 | </classifier>
|
---|
153 | <classifier name="List">
|
---|
154 | <option name="-metadata" value="wmtb.HapuOrIwi"/>
|
---|
155 | <option name="-bookshelf_type" value="always"/>
|
---|
156 | <option name="-partition_type_within_level" value="none"/>
|
---|
157 | <option name="-sort_leaf_nodes_using" value="wmtb.Title"/>
|
---|
158 | <option name="-buttonname" value="Hapū/Iwi"/>
|
---|
159 | </classifier>
|
---|
160 | <classifier name="List">
|
---|
161 | <option name="-metadata" value="wmtb.Location"/>
|
---|
162 | <option name="-bookshelf_type" value="always"/>
|
---|
163 | <option name="-sort_leaf_nodes_using" value="wmtb.Title"/>
|
---|
164 | <option name="-buttonname" value="Resource Location"/>
|
---|
165 | <option name="-metadata_selection_mode_within_level" value="firstvalidmetadata"/>
|
---|
166 | <option name="-partition_type_within_level" value="none"/>
|
---|
167 | </classifier>
|
---|
168 | <format>
|
---|
169 | <gsf:template match="documentNode">
|
---|
170 | <td valign="top">
|
---|
171 | <gsf:link type="document">
|
---|
172 | <gsf:icon type="document"/>
|
---|
173 | </gsf:link>
|
---|
174 | </td>
|
---|
175 |
|
---|
176 | <td valign="top">
|
---|
177 | <gsf:space/>
|
---|
178 | <gsf:link type="source">
|
---|
179 | <gsf:metadata name="srcicon"/>
|
---|
180 | </gsf:link>
|
---|
181 | </td>
|
---|
182 |
|
---|
183 | <td valign="top">
|
---|
184 | <gsf:link type="document">
|
---|
185 | <!--
|
---|
186 | Defined in the global format statement
|
---|
187 | -->
|
---|
188 | <xsl:call-template name="choose-title"/>
|
---|
189 | </gsf:link>
|
---|
190 | <xsl:call-template name="display-metadata"/>
|
---|
191 | </td>
|
---|
192 | </gsf:template>
|
---|
193 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
194 | <td valign="top">
|
---|
195 | <gsf:link style="static" type="classifier">
|
---|
196 | <gsf:icon type="classifier"/>
|
---|
197 | </gsf:link>
|
---|
198 | </td>
|
---|
199 | <td valign="top">
|
---|
200 | <gsf:link type="classifier">
|
---|
201 | <gsf:metadata name="Title"/>
|
---|
202 | </gsf:link>
|
---|
203 | </td>
|
---|
204 | </gsf:template>
|
---|
205 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
206 | <gsf:link style="static" type="classifier">
|
---|
207 | <gsf:metadata name="Title"/>
|
---|
208 | </gsf:link>
|
---|
209 | </gsf:template>
|
---|
210 | </format>
|
---|
211 | </browse>
|
---|
212 | <display>
|
---|
213 | <format>
|
---|
214 | <gsf:option name="TOC" value="false"/>
|
---|
215 | <gsf:option name="allowUserComments" value="false"/>
|
---|
216 | <gsf:option name="allowDocumentEditing" value="false"/>
|
---|
217 | <gsf:option name="allowMapGPSEditing" value="false"/>
|
---|
218 | <!--
|
---|
219 | Overwriting this template allows you to change the heading of the document.
|
---|
220 | -->
|
---|
221 | <gsf:template name="documentHeading">
|
---|
222 | <xsl:choose>
|
---|
223 | <xsl:when test="documentNode">
|
---|
224 | <xsl:for-each select="documentNode">
|
---|
225 | <span style="font-weight:bold; font-size: 120%;">
|
---|
226 | <xsl:call-template name="choose-title"/>
|
---|
227 | </span>
|
---|
228 | </xsl:for-each>
|
---|
229 | </xsl:when>
|
---|
230 | <xsl:otherwise>
|
---|
231 | <span style="font-weight:bold; font-size: 120%;">
|
---|
232 | <xsl:call-template name="choose-title"/>
|
---|
233 | </span>
|
---|
234 | </xsl:otherwise>
|
---|
235 | </xsl:choose>
|
---|
236 | </gsf:template>
|
---|
237 | <!--
|
---|
238 | Overwriting 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.
|
---|
239 | -->
|
---|
240 | <gsf:template name="documentContent">
|
---|
241 | <gsf:metadata hidden="true" name="wmtb.TKTest"/>
|
---|
242 | <div id="gs-document">
|
---|
243 | <xsl:call-template name="documentPre"/>
|
---|
244 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
245 | <!--
|
---|
246 | <div id="gs-document-text">
|
---|
247 | <xsl:call-template name="documentNodeText"/>
|
---|
248 | </div>
|
---|
249 | -->
|
---|
250 | <div id="gs-document-text">
|
---|
251 | <xsl:choose>
|
---|
252 | <xsl:when test="documentNode">
|
---|
253 | <xsl:for-each select="documentNode">
|
---|
254 | <xsl:call-template name="metadata-table"/>
|
---|
255 | <br/>
|
---|
256 | <xsl:call-template name="choose-tklabels-single-field">
|
---|
257 | <xsl:with-param name="label-metadata">wmtb.TKTest</xsl:with-param>
|
---|
258 | </xsl:call-template>
|
---|
259 | <br/>
|
---|
260 | <xsl:call-template name="doc-link"/>
|
---|
261 | </xsl:for-each>
|
---|
262 | </xsl:when>
|
---|
263 | <xsl:otherwise>
|
---|
264 | <xsl:call-template name="metadata-table"/>
|
---|
265 | <br/>
|
---|
266 | <xsl:call-template name="choose-tklabels-single-field">
|
---|
267 | <xsl:with-param name="label-metadata">wmtb.TKTest</xsl:with-param>
|
---|
268 | </xsl:call-template>
|
---|
269 | <br/>
|
---|
270 | <xsl:call-template name="doc-link"/>
|
---|
271 | </xsl:otherwise>
|
---|
272 | </xsl:choose>
|
---|
273 | </div>
|
---|
274 | </div>
|
---|
275 | </gsf:template>
|
---|
276 | <gsf:template name="doc-link">
|
---|
277 | <xsl:if test="not(./metadataList/metadata[@name='Thumb'])">
|
---|
278 | <!--
|
---|
279 | TODO -make this depend on image or not
|
---|
280 | -->
|
---|
281 | <gsf:if-metadata-exists>
|
---|
282 | <gsf:metadata name="srclinkFile"/>
|
---|
283 | <gsf:if>
|
---|
284 | <p>
|
---|
285 | <gsf:collectionText name="doclink"/>
|
---|
286 | <gsf:link type="source">
|
---|
287 | <gsf:metadata name="srcicon"/>
|
---|
288 | </gsf:link>
|
---|
289 | </p>
|
---|
290 | </gsf:if>
|
---|
291 | </gsf:if-metadata-exists>
|
---|
292 | </xsl:if>
|
---|
293 | <gsf:if-metadata-exists>
|
---|
294 | <gsf:metadata name="wmtb.Link"/>
|
---|
295 | <gsf:if>
|
---|
296 | <p>
|
---|
297 | <gsf:collectionText name="weblink"/>
|
---|
298 | <a>
|
---|
299 | <xsl:attribute name="href">
|
---|
300 | <gsf:metadata name="wmtb.Link"/>
|
---|
301 | </xsl:attribute>
|
---|
302 | <gsf:metadata name="wmtb.LinkTitle"/>
|
---|
303 | </a>
|
---|
304 | </p>
|
---|
305 | </gsf:if>
|
---|
306 | </gsf:if-metadata-exists>
|
---|
307 | </gsf:template>
|
---|
308 | <gsf:template name="metadata-table">
|
---|
309 | <div>
|
---|
310 | <gsf:metadata-table>
|
---|
311 | <gsf:metadata name="wmtb.Title">
|
---|
312 | <displayItem dictionary="interface_custom" key="Title" show-if-empty="true"/>
|
---|
313 | </gsf:metadata>
|
---|
314 | <gsf:metadata name="wmtb.Description">
|
---|
315 | <displayItem dictionary="interface_custom" key="Description" show-if-empty="true"/>
|
---|
316 | </gsf:metadata>
|
---|
317 | <!--
|
---|
318 | <gsf:metadata name="wmtb.Date" show-if-empty="true">
|
---|
319 | <displayItem dictionary="interface_custom" key="Date"/>
|
---|
320 | </gsf:metadata>
|
---|
321 | -->
|
---|
322 | <!--
|
---|
323 | <gsf:metadata name="wmtb.Access" show-if-empty="true">
|
---|
324 | <displayItem dictionary="interface_custom" key="Access"/>
|
---|
325 | </gsf:metadata>
|
---|
326 | -->
|
---|
327 | <gsf:metadata name="wmtb.HapuOrIwi" show-if-empty="true">
|
---|
328 | <displayItem dictionary="interface_custom" key="HapuOrIwi"/>
|
---|
329 | </gsf:metadata>
|
---|
330 | <gsf:metadata name="wmtb.Location">
|
---|
331 | <displayItem dictionary="interface_custom" key="Location"/>
|
---|
332 | </gsf:metadata>
|
---|
333 | <gsf:metadata name="wmtb.InstitutionID">
|
---|
334 | <displayItem dictionary="interface_custom" key="InstitutionID"/>
|
---|
335 | </gsf:metadata>
|
---|
336 | </gsf:metadata-table>
|
---|
337 | </div>
|
---|
338 | </gsf:template>
|
---|
339 | <!--
|
---|
340 | override this to force simple doc view for all docs
|
---|
341 | -->
|
---|
342 | <gsf:template name="wrappedDocument">
|
---|
343 | <xsl:call-template name="documentHeading"/>
|
---|
344 | <br/>
|
---|
345 | <xsl:call-template name="documentContent"/>
|
---|
346 | </gsf:template>
|
---|
347 | <!--
|
---|
348 | Overwriting this template can be used to change the content of section headings.
|
---|
349 | -->
|
---|
350 | <!--
|
---|
351 | <gsf:template name="sectionHeading">
|
---|
352 | <xsl:call-template name="choose-title"/>
|
---|
353 | </gsf:template>
|
---|
354 | -->
|
---|
355 | <!--
|
---|
356 | Overwriting this template can be used to change the content of the top-level section.
|
---|
357 | -->
|
---|
358 | <!--
|
---|
359 | <gsf:template name="topLevelSectionContent">
|
---|
360 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
361 | <xsl:call-template name="wrappedSectionText"/>
|
---|
362 | </gsf:template>
|
---|
363 | -->
|
---|
364 | <!--
|
---|
365 | Overwriting this template can be used to change the content of sections.
|
---|
366 | -->
|
---|
367 | <!--
|
---|
368 | <gsf:template name="sectionContent">
|
---|
369 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
370 | <xsl:call-template name="wrappedSectionText"/>
|
---|
371 | </gsf:template>
|
---|
372 | -->
|
---|
373 | </format>
|
---|
374 | </display>
|
---|
375 | <replaceListRef id="gs2-standard"/>
|
---|
376 | <replaceListRef id="gs2-image"/>
|
---|
377 | <serviceRackList><!--
|
---|
378 | comment out the following serviceRack if you want to disable RSS for this collection
|
---|
379 | -->
|
---|
380 | <serviceRack name="RSSRetrieve"/><!--
|
---|
381 | comment out the following serviceRack if you want to disable OAI for this collection
|
---|
382 | -->
|
---|
383 | <serviceRack name="OAIPMH">
|
---|
384 | <setName>Document</setName>
|
---|
385 | <setDescription/><!--
|
---|
386 | uncomment the following and set the name attribute if
|
---|
387 | you want this collection to be part of a super set.
|
---|
388 | --><!--
|
---|
389 | <oaiSuperSet name="xxx"/>
|
---|
390 | -->
|
---|
391 | <ListMetadataFormats><!--
|
---|
392 | What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
|
---|
393 | <metadataFormat metadataPrefix="prefix"/>
|
---|
394 | -->
|
---|
395 | <metadataFormat metadataPrefix="oai_dc"><!--
|
---|
396 | you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format
|
---|
397 | --></metadataFormat>
|
---|
398 | </ListMetadataFormats>
|
---|
399 | </serviceRack>
|
---|
400 | </serviceRackList>
|
---|
401 | <importOption name="OIDtype" value="assigned"/>
|
---|
402 | <importOption name="OIDmetadata" value="wmtb.ReferenceId"/>
|
---|
403 | <buildOption name="remove_empty_classifications"/>
|
---|
404 | </CollectionConfig>
|
---|