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

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

Initial collection design

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