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

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

Change to specifying the About page text done through about.xml so it can include xslt tags

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