source: main/trunk/model-sites-dev/respooled/collect/popup-video-respooled/etc/collectionConfig.xml@ 29877

Last change on this file since 29877 was 29877, checked in by davidb, 9 years ago

Work developing a guitar to play, and recording notes on piano when played (with the radio button set to record)

  • Property svn:mime-type set to text/plain
File size: 16.1 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">
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="name">Popup Videos Respooled</displayItem>
10 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,ex.ID3.Title,Title">titles</displayItem>
11 <displayItem assigned="true" lang="en" name="dc.Creator,ex.dc.Creator,ex.ID3.Artist,Artist">artist</displayItem>
12 <displayItem assigned="true" lang="en" name="salami.overlayNote">annotations</displayItem>
13 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
14 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
15 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
16 <displayItem assigned="true" lang="en" name="document">document</displayItem>
17 <displayItem assigned="true" lang="en" name="section">section</displayItem>
18 </displayItemList>
19 <format>
20 <gsf:template name="choose-title">
21 <gsf:choose-metadata>
22 <gsf:metadata name="dc.Title"/>
23 <gsf:metadata name="exp.Title"/>
24 <gsf:metadata name="ex.dc.Title"/>
25 <gsf:metadata name="ex.ID3.Title"/>
26 <gsf:metadata name="ex.Title"/>
27 <gsf:metadata name="Title"/>
28 <gsf:default>Untitled</gsf:default>
29 </gsf:choose-metadata>
30 <gsf:switch>
31 <gsf:metadata name="dc.Creator"/>
32 <gsf:when test="exists">
33 <gsf:switch>
34 <gsf:metadata name="dc.Creator"/>
35 <gsf:when test="notEquals" test-value="Unknown">
36 by
37 <i><gsf:metadata name="dc.Creator"/></i>
38 </gsf:when>
39 </gsf:switch>
40 </gsf:when>
41 </gsf:switch>
42 </gsf:template>
43 </format>
44 <search type="lucene">
45 <level name="document">
46 <displayItem lang="en" name="name">document</displayItem>
47 </level>
48<!--
49 <level name="section">
50 <displayItem lang="en" name="name">section</displayItem>
51 </level>
52-->
53 <defaultLevel name="document"/>
54 <index name="dc.Title,ex.dc.Title,ex.ID3.Title,Title">
55 <displayItem lang="en" name="name">titles</displayItem>
56 </index>
57 <index name="dc.Creator,ex.dc.Creator,ex.ID3.Artist,Artist">
58 <displayItem lang="en" name="name">artist</displayItem>
59 </index>
60 <index name="salami.overlayNote">
61 <displayItem lang="en" name="name">annotations</displayItem>
62 </index>
63 <defaultIndex name="dc.Title,ex.dc.Title,ex.ID3.Title,Title"/>
64 <indexOption name="casefold"/>
65 <indexOption name="stem"/>
66 <searchType name="plain"/>
67 <searchType name="simpleform"/>
68 <searchType name="advancedform"/>
69 <format>
70 <gsf:template match="documentNode">
71 <gsf:variable name="cgiargFrameLength">
72 <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
73 </gsf:variable>
74 <xsl:variable name="cgiargYScaleSimImg">
75 <xsl:choose>
76 <xsl:when test="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value != ''">
77 <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value"/>
78 </xsl:when>
79 <xsl:otherwise>0.5</xsl:otherwise>
80 </xsl:choose>
81 </xsl:variable>
82 <td valign="top">
83 <gsf:icon type="document"/>
84 </td>
85 <td>
86 <xsl:choose>
87 <xsl:when test="@rank != 'NaN'">
88 <script>if (gs.cgiParams.s ==<gsf:quot/>AudioQuery<gsf:quot/>) {
89 var rank=<xsl:value-of select="@rank"/>;
90 var perc=(rank-0.9)*100*10;
91 document.write(<gsf:quot/>(<gsf:quot/>+perc.toFixed(1)+<gsf:quot/>%)<gsf:quot/>);
92 }</script>
93 </xsl:when>
94 </xsl:choose>
95 <xsl:choose>
96 <xsl:when test="/page/pageResponse/service[@name='AudioQuery']">
97 <a>
98 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection/@name"/>/document/<xsl:value-of select="@nodeID"/>?p.frameOffset=<xsl:value-of select="@frameOffset"/>&amp;p.frameLength=<xsl:value-of select="/page/pageRequest/paramList/param[@name='s1.length']/@value"/>&amp;p.a=q&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;p.yScaleSimImg=<xsl:value-of select="$cgiargYScaleSimImg"/></xsl:attribute>
99 <xsl:call-template name="choose-title"/>
100 </a>
101 </xsl:when>
102 <xsl:otherwise>
103 <gsf:link>
104 <xsl:call-template name="choose-title"/>
105 </gsf:link>
106 </xsl:otherwise>
107 </xsl:choose>
108 <gsf:switch>
109 <gsf:metadata name="artist"/>
110 <gsf:when test="exists">
111 by
112 <gsf:metadata name="artist"/>
113 </gsf:when>
114 </gsf:switch>
115 <gsf:switch>
116 <gsf:metadata name="js.LabelledStructure"/>
117 <gsf:when test="exists">
118 <br/>
119 <i style="font-size: 80%">(Labelled structure:<gsf:metadata name="js.LabelledStructure"/>)</i>
120 </gsf:when>
121 </gsf:switch>
122 </td>
123 </gsf:template>
124 </format>
125 </search>
126 <infodb type="jdbm"/>
127 <import>
128 <pluginList>
129 <plugin name="ZIPPlugin"/>
130 <plugin name="GreenstoneXMLPlugin"/>
131<!--
132 <plugin name="EmbeddedMetadataPlugin">
133 <option name="-process_exp" value="(?i)\.mp4$"/>
134 </plugin>
135-->
136 <plugin name="UnknownPlugin">
137 <option name="-process_exp" value="(i?)\.mp4$"/>
138 <option name="-OIDtype" value="hash_on_full_filename"/>
139 <option name="-file_rename_method" value="base64"/>
140
141 </plugin>
142 <plugin name="TextPlugin"/>
143 <plugin name="HTMLPlugin"/>
144 <plugin name="EmailPlugin"/>
145 <plugin name="PDFPlugin"/>
146 <plugin name="RTFPlugin"/>
147 <plugin name="WordPlugin"/>
148 <plugin name="PostScriptPlugin"/>
149 <plugin name="PowerPointPlugin"/>
150 <plugin name="ExcelPlugin"/>
151 <plugin name="ImagePlugin"/>
152 <plugin name="ISISPlugin"/>
153 <plugin name="NulPlugin"/>
154 <plugin name="OAIPlugin"/>
155 <plugin name="MetadataXMLPlugin"/>
156 <plugin name="ArchivesInfPlugin"/>
157 <plugin name="DirectoryPlugin"/>
158 </pluginList>
159 </import>
160 <browse>
161 <classifier name="AZCompactList">
162 <option name="-metadata" value="dc.Title;ex.dc.Title;ex.ID3.Title;Title"/>
163 <option name="-mingroup" value="2"/>
164 <option name="-removeprefix" value="(?i)Le|La|Les|The|A\\s+"/>
165 </classifier>
166 <classifier name="AZCompactList">
167 <option name="-metadata" value="dc.Creator;ex.dc.Creator;ex.ID3.Artist;Artist"/>
168 <option name="-buttonname" value="Artists"/>
169 <option name="-mingroup" value="1"/>
170 <option name="-minnesting" value="40"/>
171 </classifier>
172 <classifier name="AZCompactList">
173 <option name="-metadata" value="dc.Title.albumtitle"/>
174 <option name="-buttonname" value="Albums"/>
175 <option name="-mingroup" value="1"/>
176 <option name="-minnesting" value="40"/>
177 </classifier>
178 <format>
179 <gsf:template match="documentNode">
180 <td valign="top">
181 <gsf:link type="document">
182 <gsf:icon type="document"/>
183 </gsf:link>
184 </td>
185<!--
186 <td valign="top">
187 <gsf:link type="source">
188 <gsf:choose-metadata>
189 <gsf:metadata name="thumbicon"/>
190 <gsf:metadata name="srcicon"/>
191 </gsf:choose-metadata>
192 </gsf:link>
193 </td>
194-->
195 <td valign="top">
196 <gsf:link type="document">
197<!--
198Defined in the global format statement
199-->
200 <xsl:call-template name="choose-title"/>
201 <gsf:switch>
202 <gsf:metadata name="dc.Title"/>
203 <gsf:when test="equals" test-value="Unknown">
204 <br/>
205 <i>(<gsf:metadata name="Source"/>)</i>
206 </gsf:when>
207 </gsf:switch>
208 </gsf:link>
209 </td>
210 </gsf:template>
211 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
212 <td valign="top">
213 <gsf:link type="classifier">
214 <gsf:icon type="classifier"/>
215 </gsf:link>
216 </td>
217 <td valign="top">
218 <gsf:link type="source">
219 <gsf:choose-metadata>
220 <gsf:metadata name="thumbicon"/>
221 <gsf:metadata name="srcicon"/>
222 </gsf:choose-metadata>
223 </gsf:link>
224 </td>
225 <td valign="top">
226<!--
227Defined in the global format statement
228-->
229 <xsl:call-template name="choose-title"/>
230 <gsf:switch>
231 <gsf:metadata name="Source"/>
232 <gsf:when test="exists">
233 <br/>
234 <i>(<gsf:metadata name="Source"/>)</i>
235 </gsf:when>
236 </gsf:switch>
237 </td>
238 </gsf:template>
239 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
240 <gsf:link type="classifier">
241 <gsf:metadata name="Title"/>
242 </gsf:link>
243 </gsf:template>
244 </format>
245 </browse>
246 <display>
247 <format>
248 <gsf:option name="TOC" value="false"/>
249<!--
250Overwriting this template allows you to change the heading of the document.
251-->
252 <gsf:template name="documentHeading">
253 <gsf:metadata name="assocfilepath" select="root" hidden="true"/>
254
255 <xsl:variable name="httpCollection">
256 <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
257 </xsl:variable>
258<!--
259Metadata derived from finger-printing
260-->
261<!--
262 <xsl:call-template name="discovery-block">
263 <xsl:with-param name="httpCollection" select="$httpCollection"/>
264 </xsl:call-template>
265-->
266 <h3><xsl:call-template name="choose-title"/></h3>
267
268 </gsf:template>
269<!--
270Overwriting 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 <xsl:call-template name="wrappedSectionImage"/>
277 <xsl:call-template name="wrappedSectionText"/>
278 </gsf:template>
279-->
280<!--
281Overwriting this template can be used to change the content of section headings.
282-->
283<!--
284<gsf:template name="sectionHeading">
285 <xsl:call-template name="choose-title"/>
286 </gsf:template>
287-->
288<!--
289Overwriting this template can be used to change the content of the top-level section.
290-->
291<!--
292<gsf:template name="topLevelSectionContent">
293 <xsl:call-template name="wrappedSectionImage"/>
294 <xsl:call-template name="wrappedSectionText"/>
295 </gsf:template>
296-->
297<!--
298Overwriting this template can be used to change the content of sections.
299-->
300<!--
301<gsf:template name="sectionContent">
302 <xsl:call-template name="wrappedSectionImage"/>
303 <xsl:call-template name="wrappedSectionText"/>
304 </gsf:template>
305-->
306 <xsl:template name="additionalHeaderContent">
307 <gsf:variable name="httpCollection">
308 <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
309 </gsf:variable>
310<!--
311 <xsl:call-template name="soundmanager2-header"/>
312 <xsl:call-template name="js-mad-header"/>
313-->
314 <!--
315 Bespoke jquery-ui extension for turnstyle open/close blocks
316 -->
317 <gsf:style src="ext/jquery-ui-extra/turnstyle-block.css"/>
318 <gsf:script src="ext/jquery-ui-extra/turnstyle-block.js"/>
319 <!--
320 The Javascript DSP files for computing chroma features in the browser
321 -->
322 <xsl:call-template name="javascript-dsp-header"/>
323 <!--
324 Javascript support for running, sending input into, monitoring, and stopping Meandre flows
325 -->
326<!--
327 <gsf:script src="ext/meandre/meandre-controller.js"/>
328 <gsf:style src="ext/photo-notes/PhotoNotes-1.5.css"/>
329 <gsf:style src="ext/photo-notes/annotator.min.css"/>
330 <gsf:script src="ext/photo-notes/BrowserDetect.js"/>
331 <gsf:script src="ext/photo-notes/PhotoNotes-1.5.js"/>
332 <gsf:script src="ext/photo-notes/main-ingest.js"/>
333 <gsf:script src="ext/photo-notes/main-notes.js"/>
334 <gsf:script src="{$httpCollection}/script2/main-play-notes.js"/>
335-->
336 <gsf:style src="{$httpCollection}/style/media-player.css" />
337 <gsf:script src="{$httpCollection}/js/media-player.js"/>
338
339 <gsf:style src="{$httpCollection}/style/audiosynth.css" />
340 <gsf:script src="{$httpCollection}/js/audiosynth.js"/>
341 <gsf:script src="{$httpCollection}/js/audiosynth.view.js"/>
342
343 <gsf:script src="{$httpCollection}/js/in-the-groove.js" />
344
345 <gsf:script src="{$httpCollection}/js/jquery-drums.js" />
346
347 <gsf:style src="{$httpCollection}/style/jam-guitar.css" />
348 <gsf:script src="{$httpCollection}/js/jam-guitar.js"/>
349
350
351 <!-- MIDI.js library -->
352
353
354 <gsf:script src="{$httpCollection}/js/midi/inc/shim/Base64.js"/>
355 <gsf:script src="{$httpCollection}/js/midi/inc/shim/Base64binary.js"/>
356 <gsf:script src="{$httpCollection}/js/midi/inc/shim/WebAudioAPI.js"/>
357 <!-- midi.js package -->
358 <gsf:script src="{$httpCollection}/js/midi/audioDetect.js"/>
359 <gsf:script src="{$httpCollection}/js/midi/gm.js"/>
360 <gsf:script src="{$httpCollection}/js/midi/loader.js"/>
361 <gsf:script src="{$httpCollection}/js/midi/plugin.audiotag.js"/>
362 <gsf:script src="{$httpCollection}/js/midi/plugin.webaudio.js"/>
363 <gsf:script src="{$httpCollection}/js/midi/plugin.webmidi.js"/>
364 <!-- utils -->
365 <gsf:script src="{$httpCollection}/js/midi/util/dom_request_xhr.js"/>
366 <gsf:script src="{$httpCollection}/js/midi/util/dom_request_script.js"/>
367
368 <gsf:script src="{$httpCollection}/js/respool-midi.js"/>
369
370 <gsf:style>
371 .metadata-stripes td { padding: 4px; }
372 .metadata-stripes tr:nth-child(odd) {background: #CCC}
373 .metadata-stripes tr:nth-child(even) {background: #FFF}
374
375 .vis-heading { font-style:italic; }
376
377 #rightSidebar { display: none; }
378
379 #gs_content {
380 border: 0px;
381 margin-top: 10px;
382 min-height: 600px;
383 padding: 0px 10px 10px;
384 }
385
386 </gsf:style>
387 </xsl:template>
388
389 </format>
390 </display>
391 <replaceListRef id="gs2-standard"/>
392 <replaceListRef id="gs2-image"/>
393 <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
394 <serviceRack name="OAIPMH">
395 <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
396 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
397 -->
398 <metadataFormat metadataPrefix="oai_dc">
399 <metadataPrefix>oai_dc</metadataPrefix>
400 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
401 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace><!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>-->
402 <mappingList><!--
403 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
404 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
405 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
406 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
407 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
408
409 **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
410
411 **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
412 -->
413 <mapping>dc:title,Title</mapping><!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
414 </mappingList>
415 </metadataFormat>
416 </ListMetadataFormats>
417 </serviceRack>
418 </serviceRackList>
419 <importOptions>
420 <option name="OIDtype" value="hash_on_full_filename"/>
421 </importOptions>
422</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.