source: main/trunk/model-sites-dev/atea/collect/he-herenga-korero/etc/collectionConfig.xml@ 33166

Last change on this file since 33166 was 33166, checked in by davidb, 5 years ago

Collection config files and initial programming work for atea collections

  • Property svn:mime-type set to application/xml
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" 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</displayItem>
10 <displayItem assigned="true" lang="en" name="description">A range of language resources in Māori (both written and spoken).</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</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="AZCompactList">
195 <option name="-metadata" value="text.Title/text.Volume"/>
196 <option name="-buttonname" value="Texts"/>
197 <option name="-mingroup" value="1"/>
198 <option name="-sort" value="text.Issue"/>
199
200 </classifier>
201-->
202 <classifier name="Hierarchy">
203 <option name="-buttonname" value="Texts"/>
204 <option name="-metadata" value="text.VolumeIssue"/>
205 <option name="-hfile" value="hierarchy-volume-issue.txt"/>
206 <option name="-sort" value="text.Issue"/>
207
208 </classifier>
209
210 <classifier name="Hierarchy">
211 <option name="-buttonname" value="Audio"/>
212 <option name="-metadata" value="audio.CDNumTrack"/>
213 <option name="-hfile" value="hierarchy-cdnum-track.txt"/>
214 <option name="-sort" value="audio.Track"/>
215 </classifier>
216<!--
217 <classifier name="AZCompactList">
218 <option name="-metadata" value="bib.Audio"/>
219 <option name="-buttonname" value="Audio"/>
220 <option name="-mingroup" value="200"/>
221 <option name="-sort" value="dc.Title"/>
222 </classifier>
223-->
224 <format>
225 <gsf:template match="documentNode">
226 <td valign="top">
227 <gsf:link type="document">
228 <gsf:icon type="document"/>
229 </gsf:link>
230 </td>
231 <td valign="top">
232 <gsf:link type="source">
233 <gsf:choose-metadata>
234 <gsf:metadata name="thumbicon"/>
235 <gsf:metadata name="srcicon"/>
236 </gsf:choose-metadata>
237 </gsf:link>
238 </td>
239 <td valign="top">
240 <gsf:link type="document">
241 <!-- Defined in the global format statement -->
242 <xsl:call-template name="display-rich-title"/>
243 </gsf:link>
244 </td>
245 </gsf:template>
246
247 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
248 <td valign="top">
249 <gsf:link type="classifier" style="static">
250 <gsf:icon type="classifier"/>
251 </gsf:link>
252 </td>
253 <td valign="top">
254 <gsf:link type="classifier">
255 <gsf:metadata name="Title"/>
256 </gsf:link>
257 </td>
258 </gsf:template>
259
260 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
261 <gsf:link type="classifier" style="static">
262 <gsf:metadata name="Title"/>
263 </gsf:link>
264 </gsf:template>
265 </format>
266 </browse>
267 <display>
268 <format>
269 <gsf:option name="TOC" value="true"/>
270 <gsf:option name="AllowUserComments" value="false"/>
271 <!--
272 Overwriting this template allows you to change the heading of the document.
273 -->
274
275 <gsf:template name="documentHeading">
276 <gsf:switch>
277 <gsf:metadata name="srcicon"/>
278 <gsf:when test="exists">
279 <gsf:link type="source">
280 <gsf:metadata name="srcicon"/>
281 </gsf:link>
282 </gsf:when>
283 </gsf:switch>
284
285 <span style="font-weight:bold; font-size: 120%;">
286 <xsl:call-template name="choose-title"/>
287 </span>
288 </gsf:template>
289
290
291 <!--
292 Overwriting this template can be used to redefine the content of the whole document.
293 This is useful for simple documents, but not recommended for more complex documents
294 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
295 -->
296
297 <gsf:template name="documentContent">
298 <!-- Rule that matches a simple document -->
299 <div id="gs-document">
300 <xsl:call-template name="documentPre"/>
301
302
303 <gsf:switch>
304 <gsf:metadata name="bib.Audio"/>
305 <gsf:when test="exists">
306 <div id="viewer" style="heightXXX: 300px; overflow: auto; text-align: center; width: 100%">
307 <div style="padding: 20px;">
308 <audio controls="controls" widthXXX="300">
309 <source>
310 <xsl:attribute name="src"><xsl:value-of select="$httpPath"/>/index/assoc/<gsf:metadata name="assocfilepath" pos="1"/>/<gsf:metadata name="srclink_file"/></xsl:attribute>
311 </source>
312 Your web browser does not support the this form of audio.
313 </audio>
314 </div>
315 </div>
316 </gsf:when>
317 <gsf:otherwise>
318 <xsl:call-template name="wrappedSectionImage"/>
319 <div id="gs-document-text">
320 <xsl:call-template name="documentNodeText"/>
321 </div>
322 </gsf:otherwise>
323 </gsf:switch>
324
325 </div>
326 </gsf:template>
327
328 <!--
329 Overwriting this template can be used to change the content of section headings.
330 -->
331 <!--
332 <gsf:template name="sectionHeading">
333 <xsl:call-template name="choose-title"/>
334 </gsf:template>
335 -->
336
337 <!--
338 Overwriting this template can be used to change the content of the top-level section.
339 -->
340
341 <gsf:template name="topLevelSectionContent">
342 <gsf:switch>
343 <gsf:metadata name="srcicon"/>
344 <gsf:when test="exists">
345 <gsf:link type="source">
346 <gsf:metadata name="srcicon"/>
347 </gsf:link>
348 </gsf:when>
349 </gsf:switch>
350
351 <xsl:call-template name="wrappedSectionImage"/>
352 <xsl:call-template name="wrappedSectionText"/>
353 </gsf:template>
354
355
356 <!--
357 Overwriting this template can be used to change the content of sections.
358 -->
359 <!--
360 <gsf:template name="sectionContent">
361 <xsl:call-template name="wrappedSectionImage"/>
362 <xsl:call-template name="wrappedSectionText"/>
363 </gsf:template>
364 -->
365 </format>
366 </display>
367 <replaceListRef id="gs2-standard"/>
368 <replaceListRef id="gs2-image" />
369 <serviceRackList>
370 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
371 <serviceRack name="RSSRetrieve"/>
372 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
373 <serviceRack name="OAIPMH">
374 <setName>He Herenga Kōrero</setName>
375 <setDescription>A range of language resources in Māori (both written and spoken).</setDescription>
376 <!-- uncomment the following and set the name attribute if
377 you want this collection to be part of a super set. -->
378 <!--<oaiSuperSet name="xxx"/>-->
379 <ListMetadataFormats>
380 <!--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:
381 <metadataFormat metadataPrefix="prefix"/> -->
382
383 <metadataFormat metadataPrefix="oai_dc">
384 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
385 </metadataFormat>
386 </ListMetadataFormats>
387 </serviceRack>
388 </serviceRackList>
389 <security scope="collection" default_access="private">
390 <exception>
391 <group name="atea"/>
392 </exception>
393 </security>
394</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.