source: main/trunk/model-sites-dev/whakatohea/collect/waiata/etc/collectionConfig.xml@ 33857

Last change on this file since 33857 was 33857, checked in by davidb, 4 years ago

Next iteration of the about text

  • Property svn:mime-type set to application/xml
File size: 17.1 KB
Line 
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 <!--
10 &lt;a href=&quot;{$library_name}?a=de&amp;c={/page/pageResponse/collection/@name}&quot;&gt;here&lt;/a&gt;
11-->
12
13 <displayItem assigned="true" lang="en" name="description">
14 &lt;p&gt;A Collection of Waiata.
15Songs (waiata) are sung solo, in unison or at the octave.
16Types of song include lullabies (oriori), love songs (waitata aroha) and laments (waiata tangi).
17Traditionally all formal speeches are followed by a waiata sung by the speaker and their group of supporters.
18Some of the smaller wind instruments are also sung into, and the sound of the poi (raupo ball swung on the end of a flax cord) provides a rhythmic accompaniment to waiata poi.
19 &lt;/p&gt;
20 &lt;p&gt;
21 To deposit a new file/document into this digital library collection click
22 &lt;a href=&quot;library?a=de&amp;c=waiata&quot;&gt;here&lt;/a&gt;
23
24 &lt;/p&gt;
25 </displayItem>
26 <displayItem assigned="true" lang="en" name="name">Waiata Collection</displayItem>
27 <displayItem assigned="true" lang="en" name="text">text</displayItem>
28 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
29 <displayItem assigned="true" lang="en" name="dc.Format">format</displayItem>
30 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
31 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
32 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
33 <displayItem assigned="true" lang="en" name="document">document</displayItem>
34 <displayItem assigned="true" lang="en" name="section">section</displayItem>
35 <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
36 <displayItem assigned="true" lang="en" name="shortDescription">demow</displayItem>
37 <displayItem assigned="true" lang="en" name=".dc.Format">_labelFormat_</displayItem>
38 <displayItem assigned="true" lang="en" name=".audio,documents">audio,documents</displayItem>
39 <displayItem assigned="true" lang="en" name=".audio">audio</displayItem>
40 <displayItem assigned="true" lang="en" name=".documents">documents</displayItem>
41 <displayItem assigned="true" lang="en" name="audio,documents">all content</displayItem>
42 <displayItem assigned="true" lang="en" name="audio">audio</displayItem>
43 <displayItem assigned="true" lang="en" name="documents">documents</displayItem>
44 </displayItemList>
45 <format>
46 <gsf:template name="choose-title">
47 <gsf:choose-metadata>
48 <gsf:metadata name="dc.Title"/>
49 <gsf:default>Untitled</gsf:default>
50 </gsf:choose-metadata>
51 </gsf:template>
52 </format>
53 <search type="lucene">
54 <level name="document">
55 <displayItem lang="en" name="name">document</displayItem>
56 </level>
57 <level name="section">
58 <displayItem lang="en" name="name">section</displayItem>
59 </level>
60 <defaultLevel name="document"/>
61 <index name="text">
62 <displayItem lang="en" name="name">text</displayItem>
63 </index>
64 <index name="dc.Title,ex.dc.Title,Title">
65 <displayItem lang="en" name="name">titles</displayItem>
66 </index>
67 <index name="dc.Format">
68 <displayItem lang="en" name="name">format</displayItem>
69 </index>
70 <defaultIndex name="text"/>
71 <sort name="rank">
72 <displayItem lang="en" name="name">rank</displayItem>
73 </sort>
74 <sort name="none">
75 <displayItem lang="en" name="name">natural (build) order</displayItem>
76 </sort>
77 <indexSubcollection name="audio,documents">
78 <displayItem lang="en" name="name">all content</displayItem>
79 </indexSubcollection>
80 <indexSubcollection name="audio">
81 <displayItem lang="en" name="name">audio</displayItem>
82 </indexSubcollection>
83 <indexSubcollection name="documents">
84 <displayItem lang="en" name="name">documents</displayItem>
85 </indexSubcollection>
86 <subcollection filter="Filename/mp3/" name="audio"/>
87 <subcollection filter="!Filename/mp3/" name="documents"/>
88 <searchType name="plain"/>
89 <searchType name="simpleform"/>
90 <searchType name="advancedform"/>
91 <format>
92 <gsf:template match="documentNode">
93 <td valign="top">
94 <gsf:link type="document">
95 <gsf:icon type="document"/>
96 </gsf:link>
97 </td>
98 <td>
99 <gsf:link type="document">
100 <xsl:call-template name="choose-title"/>
101 </gsf:link>
102 </td>
103 </gsf:template>
104 </format>
105 </search>
106 <infodb type="jdbm"/>
107 <import>
108 <pluginList>
109 <plugin name="ZIPPlugin"/>
110 <plugin name="GreenstoneXMLPlugin"/>
111 <plugin name="TextPlugin"/>
112 <plugin name="HTMLPlugin"/>
113 <plugin name="EmailPlugin"/>
114 <plugin name="PDFv2Plugin">
115 <option name="-convert_to" value="pagedimg_jpg"/>
116 <option name="-process_exp" value="notext.*\.pdf"/>
117 </plugin>
118 <plugin name="PDFv2Plugin">
119 <option name="-convert_to" value="paged_pretty_html"/>
120 </plugin>
121 <plugin name="RTFPlugin"/>
122 <plugin name="WordPlugin"/>
123 <plugin name="PostScriptPlugin"/>
124 <plugin name="PowerPointPlugin"/>
125 <plugin name="ExcelPlugin"/>
126 <plugin name="ImagePlugin"/>
127 <plugin name="ISISPlugin"/>
128 <plugin name="NulPlugin"/>
129 <plugin name="OAIPlugin"/>
130 <plugin name="MP3Plugin"/>
131 <plugin name="MetadataXMLPlugin"/>
132 <plugin name="ArchivesInfPlugin"/>
133 <plugin name="DirectoryPlugin"/>
134 </pluginList>
135 </import>
136 <browse>
137 <classifier name="List">
138 <option name="-metadata" value="dc.Title;Title"/>
139 <option name="-partition_type_within_level" value="approximate_size"/>
140 <option name="-bookshelf_type" value="always"/>
141 <option name="-sort_leaf_nodes_using" value="ex.Title"/>
142 <format>
143 <gsf:template match="documentNode">
144 <td valign="top">
145 <gsf:switch>
146 <gsf:metadata name="dc.Format"/>
147 <gsf:when test="equals" test-value="Audio">
148 <gsf:link type="document">
149 <gsf:icon file="mp3.png" select="collection"/>
150 </gsf:link>
151 </gsf:when>
152 <gsf:when test="equals" test-value="Lyrics">
153 <gsf:link type="document">
154 <gsf:icon file="lyrics.gif" select="collection"/>
155 </gsf:link>
156 </gsf:when>
157 <gsf:when test="equals" test-value="Song sheet">
158 <gsf:link type="document">
159 <gsf:icon file="tab.gif" select="collection"/>
160 </gsf:link>
161 </gsf:when>
162 <gsf:otherwise>
163 <gsf:link type="document">
164 <gsf:icon type="document"/>
165 </gsf:link>
166 </gsf:otherwise>
167 </gsf:switch>
168 </td>
169 <td valign="top">
170 <gsf:link type="source">
171 <gsf:choose-metadata>
172 <gsf:metadata name="thumbicon"/>
173 <gsf:metadata name="srcicon"/>
174 </gsf:choose-metadata>
175 </gsf:link>
176 </td>
177 <td valign="top">
178 <gsf:link type="document">
179 <xsl:call-template name="choose-title"/>
180 </gsf:link>
181 <gsf:switch>
182 <gsf:metadata name="Source"/>
183 <gsf:when test="exists">
184 <br/>
185 <i>(<gsf:metadata name="dc.Format"/>/<gsf:metadata name="FileFormat"/>)</i>
186 </gsf:when>
187 </gsf:switch>
188 </td>
189 </gsf:template>
190 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
191 <td valign="top">
192 <gsf:link style="static" type="classifier">
193 <gsf:icon type="classifier"/>
194 </gsf:link>
195 </td>
196 <td valign="top">
197 <gsf:link type="classifier">
198 <gsf:metadata name="Title"/>
199 </gsf:link>
200 </td>
201 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
202 </gsf:template>
203 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
204 <gsf:link type="classifier">
205 <gsf:metadata name="Title"/>
206 </gsf:link>
207 </gsf:template>
208 </format>
209 </classifier>
210 <classifier name="List">
211 <option name="-metadata" value="dc.Format"/>
212 <option name="-bookshelf_type" value="always"/>
213 <option name="-partition_type_within_level" value="none"/>
214 <option name="-sort_leaf_nodes_using" value="ex.Title"/>
215 <option name="-buttonname" value="Browse"/>
216 <option name="-filter_metadata" value="dc.Title"/>
217 <format>
218 <gsf:template match="documentNode">
219 <td valign="top">
220 <gsf:switch>
221 <gsf:metadata name="dc.Format"/>
222 <gsf:when test="equals" test-value="Audio">
223 <gsf:link type="document">
224 <gsf:icon file="mp3.png" select="collection"/>
225 </gsf:link>
226 </gsf:when>
227 <gsf:when test="equals" test-value="Lyrics">
228 <gsf:link type="document">
229 <gsf:icon file="lyrics.gif" select="collection"/>
230 </gsf:link>
231 </gsf:when>
232 <gsf:when test="equals" test-value="Song sheet">
233 <gsf:link type="document">
234 <gsf:icon file="tab.gif" select="collection"/>
235 </gsf:link>
236 </gsf:when>
237 <gsf:otherwise>
238 <gsf:link type="document">
239 <gsf:icon type="document"/>
240 </gsf:link>
241 </gsf:otherwise>
242 </gsf:switch>
243 </td>
244 <td valign="top">
245 <gsf:link type="source">
246 <gsf:choose-metadata>
247 <gsf:metadata name="thumbicon"/>
248 <gsf:metadata name="srcicon"/>
249 </gsf:choose-metadata>
250 </gsf:link>
251 </td>
252 <td valign="top">
253 <gsf:link type="document">
254 <xsl:call-template name="choose-title"/>
255 </gsf:link>
256 <gsf:switch>
257 <gsf:metadata name="Source"/>
258 <gsf:when test="exists">
259 <br/>
260 <i>(<gsf:metadata name="dc.Format"/>/<gsf:metadata name="FileFormat"/>)</i>
261 </gsf:when>
262 </gsf:switch>
263 </td>
264 </gsf:template>
265 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
266 <td valign="top">
267 <gsf:link style="static" type="classifier">
268 <gsf:icon type="classifier"/>
269 </gsf:link>
270 </td>
271 <td valign="top">
272 <gsf:link type="classifier">
273 <gsf:metadata name="Title"/>
274 </gsf:link>
275 </td>
276 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
277 </gsf:template>
278 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
279 <gsf:link type="classifier">
280 <gsf:metadata name="Title"/>
281 </gsf:link>
282 </gsf:template>
283 </format>
284 </classifier>
285 <classifier name="Hierarchy">
286 <option name="-metadata" value="dc.Subject"/>
287 <option name="-sort" value="dc.Title"/>
288 <option name="-buttonname" value="Genre"/>
289 <format>
290 <gsf:template match="documentNode">
291 <td valign="top">
292 <gsf:link type="document">
293 <gsf:icon type="document"/>
294 </gsf:link>
295 </td>
296 <td valign="top">
297 <gsf:link type="source">
298 <gsf:choose-metadata>
299 <gsf:metadata name="thumbicon"/>
300 <gsf:metadata name="srcicon"/>
301 </gsf:choose-metadata>
302 </gsf:link>
303 </td>
304 <td valign="top">
305 <gsf:link type="document">
306 <xsl:call-template name="choose-title"/>
307 </gsf:link>
308 <gsf:switch>
309 <gsf:metadata name="Source"/>
310 <gsf:when test="exists">
311 <br/>
312 <i>(<gsf:metadata name="Source"/>)</i>
313 </gsf:when>
314 </gsf:switch>
315 </td>
316 </gsf:template>
317 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
318 <td valign="top">
319 <gsf:link style="static" type="classifier">
320 <gsf:icon type="classifier"/>
321 </gsf:link>
322 </td>
323 <td valign="top">
324 <gsf:link type="classifier">
325 <gsf:metadata name="Title"/>
326 </gsf:link>
327 </td>
328 </gsf:template>
329 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
330 <gsf:link type="classifier">
331 <gsf:metadata name="Title"/>
332 </gsf:link>
333 </gsf:template>
334 </format>
335 </classifier>
336 <format>
337 <gsf:template match="documentNode">
338 <td valign="top">
339 <gsf:link type="document">
340 <gsf:icon type="document"/>
341 </gsf:link>
342 </td>
343 <td valign="top">
344 <gsf:link type="source">
345 <gsf:choose-metadata>
346 <gsf:metadata name="thumbicon"/>
347 <gsf:metadata name="srcicon"/>
348 </gsf:choose-metadata>
349 </gsf:link>
350 </td>
351 <td valign="top">
352 <gsf:link type="document">
353 <xsl:call-template name="choose-title"/>
354 </gsf:link>
355 <gsf:switch>
356 <gsf:metadata name="Source"/>
357 <gsf:when test="exists">
358 <br/>
359 <i>(<gsf:metadata name="Source"/>)</i>
360 </gsf:when>
361 </gsf:switch>
362 </td>
363 </gsf:template>
364 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
365 <td valign="top">
366 <gsf:link style="static" type="classifier">
367 <gsf:icon type="classifier"/>
368 </gsf:link>
369 </td>
370 <td valign="top">
371 <gsf:link type="classifier">
372 <gsf:metadata name="Title"/>
373 </gsf:link>
374 </td>
375 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
376 </gsf:template>
377 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
378 <gsf:link type="classifier">
379 <gsf:metadata name="Title"/>
380 </gsf:link>
381 </gsf:template>
382 </format>
383 </browse>
384 <display>
385 <format>
386 <gsf:template name="additionalHeaderContent-collection">
387 <style>span.tocSectionTitle{display:none;}</style>
388 </gsf:template>
389 <gsf:option name="TOC" value="true"/>
390 <gsf:option name="AllowUserComments" value="false"/>
391<!--
392Overwriting this template allows you to change the heading of the document.
393-->
394<!--
395<gsf:template name="documentHeading">
396<span style="font-weight:bold; font-size: 120%;">
397<xsl:call-template name="choose-title"/>
398</span>
399</gsf:template>
400-->
401<!--
402Overwriting 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.
403-->
404 <gsf:template name="documentContent">
405 <xsl:variable name="httpCollection">library/sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:variable>
406 <xsl:variable name="assocFilePath">
407 <gsf:metadata name="assocfilepath" select="root"/>
408 </xsl:variable>
409 <div id="gs-document">
410 <xsl:call-template name="documentPre"/>
411 <xsl:call-template name="wrappedSectionImage"/>
412 <div id="gs-document-text">
413 <xsl:call-template name="documentNodeText"/>
414 </div>
415 <div id="demo">
416 <div id="waveform">
417<!--
418Here be the waveform
419-->
420 <xsl:text> </xsl:text> </div>
421 <div id="wave-timeline">
422 <xsl:text> </xsl:text> </div>
423 <div>
424 <div class="controls">
425 <button class="btn btn-primary" data-action="play"><i class="glyphicon glyphicon-play"/>Play /<i class="glyphicon glyphicon-pause"/>Pause</button>
426 </div>
427 </div>
428 </div>
429 <gsf:variable name="mp3url"><xsl:value-of select="$httpCollection"/>/index/assoc/<xsl:value-of select="$assocFilePath"/>/<gsf:metadata name="SourceFile"/></gsf:variable>
430 <link href="ext/wavesurfer/css/style.css" rel="stylesheet"/>
431 <link href="ext/wavesurfer/css/ribbon.css" rel="stylesheet"/>
432 <script src="ext/wavesurfer/wavesurfer-3.3.0.js">
433 <xsl:text> </xsl:text> </script>
434 <script src="ext/wavesurfer/plugin/wavesurfer.cursor.js">
435 <xsl:text> </xsl:text> </script>
436 <script src="ext/wavesurfer/plugin/wavesurfer.timeline.js">
437 <xsl:text> </xsl:text> </script>
438 <script src="ext/wavesurfer/wavesurfer-player.js">
439 <xsl:text> </xsl:text> </script>
440 <gsf:script>document.addEventListener('DOMContentLoaded', function() {
441 // Load audio from URL
442 wavesurfer.load(gs.variables.mp3url);
443 });</gsf:script>
444 </div>
445 </gsf:template>
446<!--
447Overwriting this template can be used to change the content of section headings.
448-->
449<!--
450<gsf:template name="sectionHeading">
451<xsl:call-template name="choose-title"/>
452</gsf:template>
453-->
454<!--
455Overwriting this template can be used to change the content of the top-level section.
456-->
457<!--
458<gsf:template name="topLevelSectionContent">
459<xsl:call-template name="wrappedSectionImage"/>
460<xsl:call-template name="wrappedSectionText"/>
461</gsf:template>
462-->
463<!--
464Overwriting this template can be used to change the content of sections.
465-->
466<!--
467<gsf:template name="sectionContent">
468<xsl:call-template name="wrappedSectionImage"/>
469<xsl:call-template name="wrappedSectionText"/>
470</gsf:template>
471-->
472 </format>
473 </display>
474 <replaceListRef id="gs2-standard"/>
475 <replaceListRef id="gs2-image"/>
476 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
477 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
478 <serviceRack name="OAIPMH">
479 <setName>demow</setName>
480 <setDescription/><!-- uncomment the following and set the name attribute if
481 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
482 <ListMetadataFormats><!--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:
483 <metadataFormat metadataPrefix="prefix"/> -->
484 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
485 </ListMetadataFormats>
486 </serviceRack>
487 </serviceRackList>
488</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.