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" xmlns:gslib="http://www.greenstone.org/skinning">
|
---|
3 | <metadataList>
|
---|
4 | <metadata name="creator"></metadata>
|
---|
5 | <metadata name="maintainer"></metadata>
|
---|
6 | <metadata name="public">true</metadata>
|
---|
7 | </metadataList>
|
---|
8 | <displayItemList>
|
---|
9 | <displayItem assigned="true" lang="en" name="name">He Herenga KÅrero (PDFs)</displayItem>
|
---|
10 | <displayItem assigned="true" lang="en" name="description">A range of language resources in MÄori in written form.</displayItem>
|
---|
11 | <!-- shortDescription is used as a tooltip for collection icon on home page-->
|
---|
12 | <displayItem assigned="true" lang="en" name="shortDescription">He Herenga KÅrero (PDFs)</displayItem>
|
---|
13 | </displayItemList>
|
---|
14 | <!-- Global format statement -->
|
---|
15 | <format>
|
---|
16 | <gsf:template name="choose-title">
|
---|
17 | <gsf:choose-metadata>
|
---|
18 | <gsf:metadata name="dc.Title"/>
|
---|
19 | <gsf:metadata name="exp.Title"/>
|
---|
20 | <gsf:metadata name="ex.dc.Title"/>
|
---|
21 | <gsf:metadata name="Title"/>
|
---|
22 | <gsf:default>Untitled</gsf:default>
|
---|
23 | </gsf:choose-metadata>
|
---|
24 | </gsf:template>
|
---|
25 |
|
---|
26 | <gsf:template name="display-rich-title">
|
---|
27 |
|
---|
28 | <xsl:choose>
|
---|
29 | <xsl:when test="@nodeType='leaf' and @docType='hierarchy'">
|
---|
30 |
|
---|
31 | <gsf:switch>
|
---|
32 | <gsf:metadata name="dc.Title" select="root"/>
|
---|
33 | <gsf:when test="exists">
|
---|
34 | <gsf:metadata name="dc.Title" select="root"/><xsl:text>: </xsl:text>
|
---|
35 | </gsf:when>
|
---|
36 | </gsf:switch>
|
---|
37 |
|
---|
38 | <gsf:metadata name="Title"/>
|
---|
39 | </xsl:when>
|
---|
40 | <xsl:otherwise>
|
---|
41 | <xsl:call-template name="choose-title"/>
|
---|
42 | </xsl:otherwise>
|
---|
43 | </xsl:choose>
|
---|
44 |
|
---|
45 | <gsf:switch>
|
---|
46 | <gsf:metadata name="text.Volume" select="root"/>
|
---|
47 | <gsf:when test="exists">
|
---|
48 | <xsl:text>, Volume </xsl:text><gsf:metadata name="text.Volume" select="root"/>
|
---|
49 | </gsf:when>
|
---|
50 | </gsf:switch>
|
---|
51 | <gsf:switch>
|
---|
52 | <gsf:metadata name="text.Issue" select="root"/>
|
---|
53 | <gsf:when test="exists">
|
---|
54 | <xsl:text>, Issue </xsl:text>
|
---|
55 | <gsf:variable name="rootIssue">
|
---|
56 | <gsf:metadata name="text.Issue" select="root"/>
|
---|
57 | </gsf:variable>
|
---|
58 | <gsf:variable name="nodeID">
|
---|
59 | <xsl:value-of select="@nodeID"/>
|
---|
60 | </gsf:variable>
|
---|
61 | <gsf:span id="{@nodeID}-issue"/>
|
---|
62 | <gsf:script>
|
---|
63 | var nodeID = gs.variables.nodeID;
|
---|
64 | var rootIssue = gs.variables.rootIssue;
|
---|
65 | $('#'+nodeID+'-issue').html(rootIssue.replace(/^[0]+/,""));
|
---|
66 | </gsf:script>
|
---|
67 | </gsf:when>
|
---|
68 | </gsf:switch>
|
---|
69 |
|
---|
70 | <gsf:switch>
|
---|
71 | <gsf:metadata name="audio.CDNum"/>
|
---|
72 | <gsf:when test="exists">
|
---|
73 | <xsl:text>, Disc </xsl:text>
|
---|
74 | <gsf:variable name="CDNum">
|
---|
75 | <gsf:metadata name="audio.CDNum"/>
|
---|
76 | </gsf:variable>
|
---|
77 | <gsf:variable name="nodeID">
|
---|
78 | <xsl:value-of select="@nodeID"/>
|
---|
79 | </gsf:variable>
|
---|
80 | <gsf:span id="{@nodeID}-CDNum"/>
|
---|
81 | <gsf:script>
|
---|
82 | var nodeID = gs.variables.nodeID;
|
---|
83 | var CDNum = gs.variables.CDNum;
|
---|
84 | $('#'+nodeID+'-CDNum').html(CDNum.replace(/^[0]+/,""));
|
---|
85 | </gsf:script>
|
---|
86 | </gsf:when>
|
---|
87 | </gsf:switch>
|
---|
88 | <gsf:switch>
|
---|
89 | <gsf:metadata name="audio.Track"/>
|
---|
90 | <gsf:when test="exists">
|
---|
91 | <xsl:text>, Track </xsl:text>
|
---|
92 | <gsf:variable name="Track">
|
---|
93 | <gsf:metadata name="audio.Track"/>
|
---|
94 | </gsf:variable>
|
---|
95 | <gsf:variable name="nodeID">
|
---|
96 | <xsl:value-of select="@nodeID"/>
|
---|
97 | </gsf:variable>
|
---|
98 | <gsf:span id="{@nodeID}-Track"/>
|
---|
99 | <gsf:script>
|
---|
100 | var nodeID = gs.variables.nodeID;
|
---|
101 | var Track = gs.variables.Track;
|
---|
102 | $('#'+nodeID+'-Track').html(Track.replace(/^[0]+/,""));
|
---|
103 | </gsf:script>
|
---|
104 | </gsf:when>
|
---|
105 | </gsf:switch>
|
---|
106 |
|
---|
107 | </gsf:template>
|
---|
108 |
|
---|
109 | </format>
|
---|
110 | <search type="lucene">
|
---|
111 | <level name="document">
|
---|
112 | <displayItem lang="en" name="name">document</displayItem>
|
---|
113 | </level>
|
---|
114 | <level name="section">
|
---|
115 | <displayItem lang="en" name="name">page</displayItem>
|
---|
116 | </level>
|
---|
117 | <defaultLevel name="document"/>
|
---|
118 | <index name="text">
|
---|
119 | <displayItem lang="en" name="name">text</displayItem>
|
---|
120 | </index>
|
---|
121 | <index name="dc.Title,ex.dc.Title,Title">
|
---|
122 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
123 | </index>
|
---|
124 | <index name="Source">
|
---|
125 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
126 | </index>
|
---|
127 | <defaultIndex name="text"/>
|
---|
128 | <sort name="rank">
|
---|
129 | <displayItem lang="en" name="name">rank</displayItem>
|
---|
130 | </sort>
|
---|
131 | <sort name="none">
|
---|
132 | <displayItem lang="en" name="name">natural (build) order</displayItem>
|
---|
133 | </sort>
|
---|
134 | <searchType name="plain"/>
|
---|
135 | <searchType name="simpleform"/>
|
---|
136 | <searchType name="advancedform"/>
|
---|
137 |
|
---|
138 | <format>
|
---|
139 | <gsf:template match="documentNode">
|
---|
140 | <td valign="top">
|
---|
141 | <gsf:link type="document">
|
---|
142 | <gsf:icon type="document"/>
|
---|
143 | </gsf:link>
|
---|
144 | </td>
|
---|
145 | <td>
|
---|
146 | <gsf:link type="document">
|
---|
147 | <xsl:call-template name="display-rich-title"/>
|
---|
148 | </gsf:link>
|
---|
149 | </td>
|
---|
150 | </gsf:template>
|
---|
151 | </format>
|
---|
152 | </search>
|
---|
153 |
|
---|
154 | <infodb type="jdbm"/>
|
---|
155 |
|
---|
156 | <import>
|
---|
157 | <pluginList>
|
---|
158 | <plugin name="ZIPPlugin"/>
|
---|
159 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
160 | <plugin name="TextPlugin"/>
|
---|
161 | <plugin name="HTMLPlugin"/>
|
---|
162 | <plugin name="EmailPlugin"/>
|
---|
163 | <plugin name="PDFv2Plugin">
|
---|
164 | <option name="enable_cache" />
|
---|
165 | </plugin>
|
---|
166 | <plugin name="RTFPlugin"/>
|
---|
167 | <plugin name="WordPlugin"/>
|
---|
168 | <plugin name="PostScriptPlugin"/>
|
---|
169 | <plugin name="PowerPointPlugin"/>
|
---|
170 | <plugin name="ExcelPlugin"/>
|
---|
171 | <plugin name="ImagePlugin"/>
|
---|
172 | <plugin name="MP3Plugin"/>
|
---|
173 | <plugin name="ISISPlugin"/>
|
---|
174 | <plugin name="NulPlugin"/>
|
---|
175 | <plugin name="OAIPlugin"/>
|
---|
176 | <plugin name="MetadataXMLPlugin"/>
|
---|
177 | <plugin name="EmbeddedMetadataPlugin"/>
|
---|
178 | <plugin name="ArchivesInfPlugin"/>
|
---|
179 | <plugin name="DirectoryPlugin"/>
|
---|
180 | </pluginList>
|
---|
181 | <importOption name="OIDtype" value="assigned"/>
|
---|
182 | <importOption name="OIDmetadata" value="FilenameRoot"/>
|
---|
183 | </import>
|
---|
184 | <browse>
|
---|
185 | <classifier name="AZCompactList">
|
---|
186 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
187 | <!--
|
---|
188 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
189 | -->
|
---|
190 | <option name="-mingroup" value="2"/>
|
---|
191 | <option name="-removeprefix" value="(\d+\s*(\-\s*)?)|(Te\s*)"/>
|
---|
192 | </classifier>
|
---|
193 |
|
---|
194 | <classifier name="Hierarchy">
|
---|
195 | <option name="-buttonname" value="Texts"/>
|
---|
196 | <option name="-metadata" value="text.VolumeIssue"/>
|
---|
197 | <option name="-hfile" value="hierarchy-volume-issue.txt"/>
|
---|
198 | <option name="-sort" value="text.Issue"/>
|
---|
199 |
|
---|
200 | </classifier>
|
---|
201 |
|
---|
202 | <format>
|
---|
203 | <gsf:template match="documentNode">
|
---|
204 | <td valign="top">
|
---|
205 | <gsf:link type="document">
|
---|
206 | <gsf:icon type="document"/>
|
---|
207 | </gsf:link>
|
---|
208 | </td>
|
---|
209 | <td valign="top">
|
---|
210 | <gsf:link type="source">
|
---|
211 | <gsf:choose-metadata>
|
---|
212 | <gsf:metadata name="thumbicon"/>
|
---|
213 | <gsf:metadata name="srcicon"/>
|
---|
214 | </gsf:choose-metadata>
|
---|
215 | </gsf:link>
|
---|
216 | </td>
|
---|
217 | <td valign="top">
|
---|
218 | <gsf:link type="document">
|
---|
219 | <!-- Defined in the global format statement -->
|
---|
220 | <xsl:call-template name="display-rich-title"/>
|
---|
221 | </gsf:link>
|
---|
222 | </td>
|
---|
223 | </gsf:template>
|
---|
224 |
|
---|
225 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
226 | <td valign="top">
|
---|
227 | <gsf:link type="classifier" style="static">
|
---|
228 | <gsf:icon type="classifier"/>
|
---|
229 | </gsf:link>
|
---|
230 | </td>
|
---|
231 | <td valign="top">
|
---|
232 | <gsf:link type="classifier">
|
---|
233 | <gsf:metadata name="Title"/>
|
---|
234 | </gsf:link>
|
---|
235 | </td>
|
---|
236 | </gsf:template>
|
---|
237 |
|
---|
238 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
239 | <gsf:link type="classifier" style="static">
|
---|
240 | <gsf:metadata name="Title"/>
|
---|
241 | </gsf:link>
|
---|
242 | </gsf:template>
|
---|
243 | </format>
|
---|
244 | </browse>
|
---|
245 | <display>
|
---|
246 | <format>
|
---|
247 | <gsf:option name="TOC" value="true"/>
|
---|
248 | <gsf:option name="AllowUserComments" value="false"/>
|
---|
249 | <!--
|
---|
250 | Overwriting this template allows you to change the heading of the document.
|
---|
251 | -->
|
---|
252 |
|
---|
253 | <gsf:template name="documentHeading">
|
---|
254 | <gsf:switch>
|
---|
255 | <gsf:metadata name="srcicon"/>
|
---|
256 | <gsf:when test="exists">
|
---|
257 | <gsf:link type="source">
|
---|
258 | <gsf:metadata name="srcicon"/>
|
---|
259 | </gsf:link>
|
---|
260 | </gsf:when>
|
---|
261 | </gsf:switch>
|
---|
262 |
|
---|
263 | <span style="font-weight:bold; font-size: 120%;">
|
---|
264 | <xsl:call-template name="choose-title"/>
|
---|
265 | </span>
|
---|
266 | </gsf:template>
|
---|
267 |
|
---|
268 |
|
---|
269 | <!--
|
---|
270 | Overwriting this template can be used to redefine the content of the whole document.
|
---|
271 | This is useful for simple documents, but not recommended for more complex documents
|
---|
272 | (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
|
---|
273 | -->
|
---|
274 |
|
---|
275 | <gsf:template name="documentContent">
|
---|
276 | <!-- Rule that matches a simple document -->
|
---|
277 | <div id="gs-document">
|
---|
278 | <xsl:call-template name="documentPre"/>
|
---|
279 |
|
---|
280 |
|
---|
281 | <gsf:switch>
|
---|
282 | <gsf:metadata name="bib.Audio"/>
|
---|
283 | <gsf:when test="exists">
|
---|
284 | <div id="viewer" style="heightXXX: 300px; overflow: auto; text-align: center; width: 100%">
|
---|
285 | <div style="padding: 20px;">
|
---|
286 | <audio controls="controls" widthXXX="300">
|
---|
287 | <source>
|
---|
288 | <xsl:attribute name="src"><xsl:value-of select="$httpPath"/>/index/assoc/<gsf:metadata name="assocfilepath" pos="1"/>/<gsf:metadata name="srclink_file"/></xsl:attribute>
|
---|
289 | </source>
|
---|
290 | Your web browser does not support the this form of audio.
|
---|
291 | </audio>
|
---|
292 | </div>
|
---|
293 | </div>
|
---|
294 | </gsf:when>
|
---|
295 | <gsf:otherwise>
|
---|
296 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
297 | <div id="gs-document-text">
|
---|
298 | <xsl:call-template name="documentNodeText"/>
|
---|
299 | </div>
|
---|
300 | </gsf:otherwise>
|
---|
301 | </gsf:switch>
|
---|
302 |
|
---|
303 | </div>
|
---|
304 | </gsf:template>
|
---|
305 |
|
---|
306 | <!--
|
---|
307 | Overwriting this template can be used to change the content of section headings.
|
---|
308 | -->
|
---|
309 | <!--
|
---|
310 | <gsf:template name="sectionHeading">
|
---|
311 | <xsl:call-template name="choose-title"/>
|
---|
312 | </gsf:template>
|
---|
313 | -->
|
---|
314 |
|
---|
315 | <!--
|
---|
316 | Overwriting this template can be used to change the content of the top-level section.
|
---|
317 | -->
|
---|
318 |
|
---|
319 | <gsf:template name="topLevelSectionContent">
|
---|
320 | <gsf:switch>
|
---|
321 | <gsf:metadata name="srcicon"/>
|
---|
322 | <gsf:when test="exists">
|
---|
323 | <gsf:link type="source">
|
---|
324 | <gsf:metadata name="srcicon"/>
|
---|
325 | </gsf:link>
|
---|
326 | </gsf:when>
|
---|
327 | </gsf:switch>
|
---|
328 |
|
---|
329 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
330 | <xsl:call-template name="wrappedSectionText"/>
|
---|
331 | </gsf:template>
|
---|
332 |
|
---|
333 |
|
---|
334 | <!--
|
---|
335 | Overwriting this template can be used to change the content of sections.
|
---|
336 | -->
|
---|
337 | <!--
|
---|
338 | <gsf:template name="sectionContent">
|
---|
339 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
340 | <xsl:call-template name="wrappedSectionText"/>
|
---|
341 | </gsf:template>
|
---|
342 | -->
|
---|
343 | </format>
|
---|
344 | </display>
|
---|
345 | <replaceListRef id="gs2-standard"/>
|
---|
346 | <replaceListRef id="gs2-image" />
|
---|
347 | <serviceRackList>
|
---|
348 | <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
|
---|
349 | <serviceRack name="RSSRetrieve"/>
|
---|
350 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
351 | <serviceRack name="OAIPMH">
|
---|
352 | <setName>He Herenga KÅrero (PDFs)</setName>
|
---|
353 | <setDescription>A range of language resources in MÄori in written form.</setDescription>
|
---|
354 | <!-- uncomment the following and set the name attribute if
|
---|
355 | you want this collection to be part of a super set. -->
|
---|
356 | <!--<oaiSuperSet name="xxx"/>-->
|
---|
357 | <ListMetadataFormats>
|
---|
358 | <!--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:
|
---|
359 | <metadataFormat metadataPrefix="prefix"/> -->
|
---|
360 |
|
---|
361 | <metadataFormat metadataPrefix="oai_dc">
|
---|
362 | <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
|
---|
363 | </metadataFormat>
|
---|
364 | </ListMetadataFormats>
|
---|
365 | </serviceRack>
|
---|
366 | </serviceRackList>
|
---|
367 | <security scope="collection" default_access="private">
|
---|
368 | <exception>
|
---|
369 | <group name="atea"/>
|
---|
370 | </exception>
|
---|
371 | </security>
|
---|
372 | </CollectionConfig>
|
---|