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">AMC + audioDB </displayItem>
|
---|
10 | <displayItem assigned="true" lang="en" name="description">
|
---|
11 | <p>
|
---|
12 | Demonstration collection, based on the represented artists as the Australian Music Centre.
|
---|
13 | The collection demonstrates an experimental extension of Greenstone3, which
|
---|
14 | provides a music-based content-similarity search based on the Locality Sensitive Hashing (LSH)
|
---|
15 | algorithm provided by audioDB.
|
---|
16 | </p>
|
---|
17 |
|
---|
18 | <p>
|
---|
19 | The collection contains 1,200 clips of audio. Use the browse by title or composer tabs above
|
---|
20 | to navigate your way to a song, or else use the quick search box (upper-right) to locate
|
---|
21 | a song of interest. Details on how to perform a content-based audio search are given
|
---|
22 | on the page for playing a song.
|
---|
23 | </p>
|
---|
24 |
|
---|
25 | </displayItem>
|
---|
26 | <displayItem assigned="true" lang="en" name="amc.title">titles</displayItem>
|
---|
27 | <displayItem assigned="true" lang="en" name="amc.artist">artists</displayItem>
|
---|
28 | <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
|
---|
29 | <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
|
---|
30 | <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
|
---|
31 | <displayItem assigned="true" lang="en" name="document">document</displayItem>
|
---|
32 | <displayItem assigned="true" lang="en" name="section">section</displayItem>
|
---|
33 | </displayItemList>
|
---|
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="amc.title">
|
---|
44 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
45 | </index>
|
---|
46 | <index name="amc.artist">
|
---|
47 | <displayItem lang="en" name="name">artists</displayItem>
|
---|
48 | </index>
|
---|
49 | <defaultIndex name="amc.title"/>
|
---|
50 | <indexOption name="casefold"/>
|
---|
51 | <indexOption name="stem"/>
|
---|
52 | <searchType name="plain"/>
|
---|
53 | <searchType name="simpleform"/>
|
---|
54 | <searchType name="advancedform"/>
|
---|
55 | <format>
|
---|
56 | <gsf:template match="documentNode">
|
---|
57 | <td valign="top">
|
---|
58 | <gsf:icon type="document"/>
|
---|
59 | </td>
|
---|
60 |
|
---|
61 | <td>
|
---|
62 | <xsl:if test="/page/pageResponse/service/@name = 'AudioQuery'">
|
---|
63 | (<script>
|
---|
64 | var rank=<xsl:value-of select="@rank"/>;
|
---|
65 | var perc=(rank-0.9)*100*10;
|
---|
66 | document.write(perc.toFixed(1));
|
---|
67 | </script>%)
|
---|
68 | </xsl:if>
|
---|
69 | <a>
|
---|
70 | <xsl:choose>
|
---|
71 | <xsl:when test="/page/pageResponse/collection/@name">
|
---|
72 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.frameOffset=<xsl:value-of select="@frameOffset"/>&p.a=q&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&hl=on&ed=1#<xsl:value-of select="@nodeID"/></xsl:attribute>
|
---|
73 | </xsl:when>
|
---|
74 | <xsl:when test="@collection">
|
---|
75 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="@collection"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>p.frameOffset=<xsl:value-of select="@frameOffset"/>&p.a=q&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&hl=on&ed=1#<xsl:value-of select="@nodeID"/></xsl:attribute>
|
---|
76 | </xsl:when>
|
---|
77 | </xsl:choose>
|
---|
78 |
|
---|
79 | <gsf:metadata name="amc.title"/>
|
---|
80 | by <gsf:metadata name="amc.artist"/>
|
---|
81 | </a>
|
---|
82 | <xsl:if test="/page/pageResponse/service/@name = 'AudioQuery'">
|
---|
83 | <span style="font-style: italics; font-size: 90%" >
|
---|
84 | Matching offset @
|
---|
85 | <script>
|
---|
86 | <xsl:text disable-output-escaping="yes">
|
---|
87 | var frameOffsetStr="</xsl:text><xsl:value-of select="@frameOffset"/><xsl:text disable-output-escaping="yes">";
|
---|
88 | var frameOffsetList = frameOffsetStr.split(",");
|
---|
89 | for(i=0; i < frameOffsetList.length; i++) {
|
---|
90 | var frameOffset = frameOffsetList[i];
|
---|
91 | var offsetInSecs=(250*frameOffset)/1000.0;
|
---|
92 | if (i > 0) { document.write(", "); }
|
---|
93 | document.write(offsetInSecs.toFixed(2));
|
---|
94 | }
|
---|
95 | </xsl:text>
|
---|
96 | </script> secs
|
---|
97 | </span>
|
---|
98 | </xsl:if>
|
---|
99 |
|
---|
100 | </td>
|
---|
101 | </gsf:template>
|
---|
102 |
|
---|
103 |
|
---|
104 |
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 | </format>
|
---|
109 | </search>
|
---|
110 |
|
---|
111 | <search type="audioDB" orthogonal="true">
|
---|
112 | </search>
|
---|
113 |
|
---|
114 | <infodb type="jdbm"/>
|
---|
115 | <import>
|
---|
116 | <pluginList>
|
---|
117 | <plugin name="ZIPPlugin"/>
|
---|
118 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
119 | <plugin name="EmbeddedMetadataPlugin"/>
|
---|
120 | <plugin name="AMCMetadataJSONPlugin"/>
|
---|
121 |
|
---|
122 | <plugin name="AudioDBPlugin">
|
---|
123 | <option name="-compute_fft_features" value="true"/>
|
---|
124 | <option name="-enable_streaming" value="mp3"/>
|
---|
125 | <option name="-enable_cache"/>
|
---|
126 | <option name="-process_exp" value="(?i)(\.m4a)$"/>
|
---|
127 | </plugin>
|
---|
128 |
|
---|
129 |
|
---|
130 | <plugin name="TextPlugin"/>
|
---|
131 | <plugin name="TextPlugin"/>
|
---|
132 | <plugin name="HTMLPlugin"/>
|
---|
133 | <plugin name="EmailPlugin"/>
|
---|
134 | <plugin name="PDFPlugin"/>
|
---|
135 | <plugin name="RTFPlugin"/>
|
---|
136 | <plugin name="WordPlugin"/>
|
---|
137 | <plugin name="PostScriptPlugin"/>
|
---|
138 | <plugin name="PowerPointPlugin"/>
|
---|
139 | <plugin name="ExcelPlugin"/>
|
---|
140 | <plugin name="ImagePlugin"/>
|
---|
141 | <plugin name="ISISPlugin"/>
|
---|
142 | <plugin name="NulPlugin"/>
|
---|
143 | <plugin name="OAIPlugin"/>
|
---|
144 | <plugin name="MetadataXMLPlugin"/>
|
---|
145 | <plugin name="ArchivesInfPlugin"/>
|
---|
146 | <plugin name="DirectoryPlugin"/>
|
---|
147 | </pluginList>
|
---|
148 | </import>
|
---|
149 | <browse>
|
---|
150 | <classifier name="AZCompactList">
|
---|
151 | <option name="-metadata" value="dc.Title;amc.title;ex.amc.title;Title"/>
|
---|
152 | <option name="-mingroup" value="2"/>
|
---|
153 | </classifier>
|
---|
154 | <classifier name="AZCompactList">
|
---|
155 | <option name="-metadata" value="dc.Creator,amc.artist,ex.amc.artist"/>
|
---|
156 | <option name="-buttonname" value="Artists"/>
|
---|
157 | <option name="-mingroup" value="1"/>
|
---|
158 | <option name="-minnesting" value="40"/>
|
---|
159 | </classifier>
|
---|
160 | <format>
|
---|
161 | <gsf:template match="documentNode">
|
---|
162 | <td valign="top">
|
---|
163 | <gsf:link type="document">
|
---|
164 | <gsf:icon type="document"/>
|
---|
165 | </gsf:link>
|
---|
166 | </td>
|
---|
167 | <td valign="top">
|
---|
168 | <gsf:link type="source">
|
---|
169 | <gsf:choose-metadata>
|
---|
170 | <gsf:metadata name="thumbicon"/>
|
---|
171 | <gsf:metadata name="srcicon"/>
|
---|
172 | </gsf:choose-metadata>
|
---|
173 | </gsf:link>
|
---|
174 | </td>
|
---|
175 | <td valign="top">
|
---|
176 | <gsf:link type="document">
|
---|
177 | <gsf:choose-metadata>
|
---|
178 | <gsf:metadata name="dc.Title"/>
|
---|
179 | <gsf:metadata name="amc.title"/>
|
---|
180 | <gsf:metadata name="exp.Title"/>
|
---|
181 | <gsf:metadata name="Title"/>
|
---|
182 | <gsf:default>Untitled</gsf:default>
|
---|
183 | </gsf:choose-metadata>
|
---|
184 | </gsf:link>
|
---|
185 | </td>
|
---|
186 | </gsf:template>
|
---|
187 | <gsf:template match="classifierNode">
|
---|
188 | <td valign="top">
|
---|
189 | <gsf:link type="classifier">
|
---|
190 | <gsf:icon type="classifier"/>
|
---|
191 | </gsf:link>
|
---|
192 | </td>
|
---|
193 | <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
|
---|
194 | <td valign="top">
|
---|
195 | <gsf:link type="source">
|
---|
196 | <gsf:choose-metadata>
|
---|
197 | <gsf:metadata name="thumbicon"/>
|
---|
198 | <gsf:metadata name="srcicon"/>
|
---|
199 | </gsf:choose-metadata>
|
---|
200 | </gsf:link>
|
---|
201 | </td>
|
---|
202 | <td valign="top">
|
---|
203 | <gsf:link type="classifier">
|
---|
204 | <gsf:choose-metadata>
|
---|
205 | <gsf:metadata name="dc.Title"/>
|
---|
206 | <gsf:metadata name="amc.title"/>
|
---|
207 | <gsf:metadata name="exp.Title"/>
|
---|
208 | <gsf:metadata name="Title"/>
|
---|
209 | <gsf:default>Untitled</gsf:default>
|
---|
210 | </gsf:choose-metadata>
|
---|
211 | </gsf:link>
|
---|
212 | <gsf:switch>
|
---|
213 | <gsf:metadata name="Source"/>
|
---|
214 | <gsf:when test="exists">
|
---|
215 | <br/>
|
---|
216 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
217 | </gsf:when>
|
---|
218 | </gsf:switch>
|
---|
219 | </td>
|
---|
220 | </gsf:template>
|
---|
221 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
222 | <gsf:link type="horizontal">
|
---|
223 | <gsf:metadata name="Title"/>
|
---|
224 | </gsf:link>
|
---|
225 | </gsf:template>
|
---|
226 | </format>
|
---|
227 | </browse>
|
---|
228 | <display>
|
---|
229 | <format>
|
---|
230 | <gsf:option name="TOC" value="false"/>
|
---|
231 | <gsf:template name="documentHeading">
|
---|
232 | <!-- title will be dsiplayed in playbar at top of page, so supress showing title here -->
|
---|
233 | <gsf:script src="interfaces/{$interface_name}/js/direct-edit-source.js"/>
|
---|
234 | <xsl:call-template name="init-direct-edit"/>
|
---|
235 |
|
---|
236 | </gsf:template>
|
---|
237 | <gsf:template name="documentContentXXX">
|
---|
238 | <xsl:param name="collName"/>
|
---|
239 | <xsl:variable name="docID" select="@docID"/>
|
---|
240 | </gsf:template>
|
---|
241 |
|
---|
242 | <xsl:template name="documentContent">
|
---|
243 | <xsl:variable name="httpCollection">
|
---|
244 | sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="/page/pageResponse/collection/@name"/>
|
---|
245 | </xsl:variable>
|
---|
246 | <xsl:variable name="assocFilePath">
|
---|
247 | <gsf:metadata name="assocfilepath" select="root"/>
|
---|
248 | </xsl:variable>
|
---|
249 | <xsl:variable name="cgiargFrameOffset">
|
---|
250 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameOffset']/@value"/>
|
---|
251 | </xsl:variable>
|
---|
252 | <xsl:variable name="lastfmtrackurl">
|
---|
253 | <gsf:metadata name="dc.Identifier.lastfmtrackurl"/>
|
---|
254 | </xsl:variable>
|
---|
255 | <xsl:variable name="imageUrls">
|
---|
256 | <gsf:metadata multiple="true" name="EchoNest.Artist-RelatedImage" separator="&quot;, &quot;"/>
|
---|
257 | </xsl:variable>
|
---|
258 | <xsl:variable name="echonestid">
|
---|
259 | <gsf:metadata name="dc.Identifier"/>
|
---|
260 | </xsl:variable>
|
---|
261 | <div class="documenttext">
|
---|
262 |
|
---|
263 | <ul class="playlist">
|
---|
264 | <style>
|
---|
265 | ul.playlist li {
|
---|
266 | background-color: #87A41C;
|
---|
267 | }
|
---|
268 |
|
---|
269 | ul.playlist li.sm2_playing {
|
---|
270 | background-color: #657C0D;
|
---|
271 | }
|
---|
272 |
|
---|
273 | ul.playlist li:hover {
|
---|
274 | background-color: #778410;
|
---|
275 | }
|
---|
276 |
|
---|
277 | </style>
|
---|
278 | <li class="rounded">
|
---|
279 | <a href="{$httpCollection}/index/assoc/{$assocFilePath}/doc.mp3" id="mysong">Play all of: <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="amc.title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata></a>
|
---|
280 | </li>
|
---|
281 | </ul>
|
---|
282 |
|
---|
283 | <ul style="font-size: 80%; margin-top: 10px; font-style: italics; ">
|
---|
284 | <li>Click on the green bar above <b>to start</b> playing.</li>
|
---|
285 | <li>Click again in play area (outside of time-line) <b>to pause</b>.</li>
|
---|
286 | <li>Click <b>within time-line</b> to jump to that section of song
|
---|
287 | (assuming enough buffered downloading has occurred).</li>
|
---|
288 | </ul>
|
---|
289 | <!--
|
---|
290 | only put in the "Play match @ offset if got a valid offset value
|
---|
291 | -->
|
---|
292 | <xsl:choose>
|
---|
293 | <xsl:when test="$cgiargFrameOffset != '' and $cgiargFrameOffset != '-1'">
|
---|
294 | <hr/>
|
---|
295 |
|
---|
296 | <div style="cursor: pointer;">
|
---|
297 | <i>Play match @ offset <span id="mysongOffset"/></i>
|
---|
298 | </div>
|
---|
299 | </xsl:when>
|
---|
300 | </xsl:choose>
|
---|
301 | <hr/>
|
---|
302 | <form action="{$library_name}" method="get" name="QueryForm">
|
---|
303 | <input name="a" type="hidden" value="q"/>
|
---|
304 | <input name="sa" type="hidden">
|
---|
305 | <xsl:attribute name="value">
|
---|
306 | <xsl:value-of select="/page/pageRequest/@subaction"/>
|
---|
307 | </xsl:attribute>
|
---|
308 | </input>
|
---|
309 | <input name="rt" type="hidden" value="rd"/>
|
---|
310 | <input name="s" type="hidden" value="AudioQuery"/>
|
---|
311 | <input name="c" type="hidden" value="{$collName}"/>
|
---|
312 | <xsl:if test="not(paramList/param[@name='startPage'])">
|
---|
313 | <input name="startPage" type="hidden" value="1"/>
|
---|
314 | </xsl:if>
|
---|
315 | <xsl:choose>
|
---|
316 | <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.maxDocs']">
|
---|
317 | <input name="s1.maxDocs" type="hidden">
|
---|
318 | <xsl:attribute name="value">
|
---|
319 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.maxDocs']/@value"/>
|
---|
320 | </xsl:attribute>
|
---|
321 | </input>
|
---|
322 | </xsl:when>
|
---|
323 | <xsl:otherwise>
|
---|
324 | <input name="s1.maxDocs" type="hidden" value="100"/>
|
---|
325 | </xsl:otherwise>
|
---|
326 | </xsl:choose>
|
---|
327 | <xsl:choose>
|
---|
328 | <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.hitsPerPage']">
|
---|
329 | <input name="s1.hitsPerPage" type="hidden">
|
---|
330 | <xsl:attribute name="value">
|
---|
331 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.hitsPerPage']/@value"/>
|
---|
332 | </xsl:attribute>
|
---|
333 | </input>
|
---|
334 | </xsl:when>
|
---|
335 | <xsl:otherwise>
|
---|
336 | <input name="s1.hitsPerPage" type="hidden" value="20"/>
|
---|
337 | </xsl:otherwise>
|
---|
338 | </xsl:choose>
|
---|
339 | <input name="q" type="hidden" value="{$assocFilePath}" />
|
---|
340 | <input name="s1.query" type="hidden" value="{$assocFilePath}" />
|
---|
341 |
|
---|
342 | <input name="s1.offset" type="hidden" value="0"/>
|
---|
343 | <input name="s1.length" type="hidden" value="200"/>
|
---|
344 | <div style="font-style: italics;">Start audio-based query @ offset <span id="mysongCurrentPos">0 secs</span>,
|
---|
345 | with excerpt lasting <span class="editable-offset" id="mysongWindowDuration" style="cursor: pointer; border: 1px solid black; padding: 3px; width: 200px; min-width: 200px;">3.0</span> secs:<input onclick="preSubmit(this.form);" type="submit" value="Search"/></div>
|
---|
346 | <ul style="font-size: 80%; margin-top: 8px; font-style: italics;">
|
---|
347 | <li>Use the <b>Play all of</b> bar to get to the part of the song you are interested in.</li>
|
---|
348 | <li>... the <b>query @ offset</b> value will change accordingly as the song progresses.</li>
|
---|
349 | <li>Click <b>pause</b> (anywhere outside of the time-line) to mark the spot you want to start the new music query.</li>
|
---|
350 | <li>Optionally click on the <b>excerpt lasting</b> value and edit, if you want to change the length of excerpt used in the match.</li>
|
---|
351 | <li>Finally, click the <b>Search</b> button to initiate the new query.</li>
|
---|
352 | </ul>
|
---|
353 | </form>
|
---|
354 | <hr/>
|
---|
355 | <script>
|
---|
356 | <xsl:text disable-output-escaping="yes">if (window.location.toString().match(/fancyplayer/i)) {
|
---|
357 | PP_CONFIG.usePeakData = true;
|
---|
358 | PP_CONFIG.useEQData = true;
|
---|
359 | PP_CONFIG.useFavIcon = true;
|
---|
360 | }
|
---|
361 |
|
---|
362 | function playFromOffset(id,frameOffset)
|
---|
363 | {
|
---|
364 | var msecOffset = 250 * frameOffset;
|
---|
365 | idElem = document.getElementById(id);
|
---|
366 | pagePlayer.handleClick({target:idElem}); /* fake a click */
|
---|
367 | soundManager.stopAll();
|
---|
368 | /* soundManager.setPosition(id,5000); */
|
---|
369 | soundManager.play(id,{position: msecOffset});
|
---|
370 | }
|
---|
371 |
|
---|
372 | function preSubmit(form)
|
---|
373 | {
|
---|
374 | var currentPosElem = document.getElementById("mysongCurrentPos");
|
---|
375 | var offsetInMSecs = currentPosElem.getAttribute("offsetInMSecs");
|
---|
376 | var frameOffset = Math.round(offsetInMSecs/250.0);
|
---|
377 | form.elements["s1.offset"].value = frameOffset;
|
---|
378 |
|
---|
379 | var lengthInSecs = document.getElementById("mysongWindowDuration").innerHTML;
|
---|
380 |
|
---|
381 | var frameLength = Math.round(lengthInSecs*1000/250.0);
|
---|
382 | form.elements["s1.length"].value = frameLength;
|
---|
383 |
|
---|
384 | return true;
|
---|
385 | }</xsl:text>
|
---|
386 | <xsl:choose>
|
---|
387 | <xsl:when test="$cgiargFrameOffset != '-1'">
|
---|
388 | <xsl:text disable-output-escaping="yes">var allOffsets = "";
|
---|
389 | var frameOffsetStr="</xsl:text>
|
---|
390 | <xsl:value-of select="$cgiargFrameOffset"/>
|
---|
391 | <xsl:text disable-output-escaping="yes">";
|
---|
392 | var frameOffsetList = frameOffsetStr.split(",");
|
---|
393 | frameOffsetList.sort(function(a,b){return a-b});
|
---|
394 |
|
---|
395 | for (i=0; i < frameOffsetList.length; i++) {
|
---|
396 | var frameOffset = frameOffsetList[i];
|
---|
397 | var offsetInSecs=(250*frameOffset)/1000.0;
|
---|
398 |
|
---|
399 | if (i > 0) { allOffsets += ", "; }
|
---|
400 |
|
---|
401 | var span_attr = "class=\"spanbuttonoff\" style=\"cursor: pointer;\"";
|
---|
402 | span_attr += " onmouseover=\"this.className='spanbuttonon'\"";
|
---|
403 | span_attr += " onmouseout=\"this.className='spanbuttonoff'\"";
|
---|
404 | span_attr += " onclick=\"playFromOffset('mysong'," + frameOffset + ")\"";
|
---|
405 |
|
---|
406 | allOffsets += "<span " + span_attr + ">" + offsetInSecs + "</span>";
|
---|
407 | }
|
---|
408 |
|
---|
409 | var jumpDurationSpan = document.getElementById("mysongOffset");
|
---|
410 | jumpDurationSpan.innerHTML = allOffsets + " secs";</xsl:text>
|
---|
411 | </xsl:when>
|
---|
412 | <xsl:otherwise>var frameOffset=-1;</xsl:otherwise>
|
---|
413 | </xsl:choose>
|
---|
414 | </script>
|
---|
415 | </div>
|
---|
416 | </xsl:template>
|
---|
417 | <!--
|
---|
418 | Creates a header for the html page
|
---|
419 | -->
|
---|
420 | <xsl:template name="create-html-headerXXXX">
|
---|
421 | <title><xsl:call-template name="pageTitle"/> ::<xsl:call-template name="siteName"/></title>
|
---|
422 | <link href="interfaces/{$interface_name}/style/core.css" rel="stylesheet" type="text/css"/>
|
---|
423 | <link href="favicon.ico" rel="shortcut icon"/>
|
---|
424 | <!--
|
---|
425 | Hook in Seaweed: seamless web editing
|
---|
426 | -->
|
---|
427 | <script src="interfaces/{$interface_name}/js/direct-edit-source.js" type="text/javascript">
|
---|
428 | <xsl:text> </xsl:text> </script>
|
---|
429 | <!--
|
---|
430 | Page player core CSS
|
---|
431 | -->
|
---|
432 | <link href="ext/audioDB/css/page-player.css" rel="stylesheet" type="text/css"/>
|
---|
433 | <!--
|
---|
434 | soundManager.useFlashBlock: related CSS
|
---|
435 | -->
|
---|
436 | <link href="ext/audioDB/css/flashblock.css" rel="stylesheet" type="text/css"/>
|
---|
437 | <!--
|
---|
438 | optional: annotations/sub-tracks/notes, and alternate themes
|
---|
439 | -->
|
---|
440 | <link href="ext/audioDB/css/optional-annotations.css" rel="stylesheet" type="text/css"/>
|
---|
441 | <link href="ext/audioDB/css/optional-themes.css" rel="stylesheet" type="text/css"/>
|
---|
442 | <style type="text/css">ul.playlist li .comment {font-size:0.65em;opacity:0.5}</style>
|
---|
443 | <!--
|
---|
444 | soundManager API
|
---|
445 | -->
|
---|
446 | <script src="ext/audioDB/script/soundmanager2-nodebug.js">
|
---|
447 | <xsl:text> </xsl:text> </script>
|
---|
448 | <script>
|
---|
449 | <xsl:text disable-output-escaping="yes">/* init Seaweed */
|
---|
450 |
|
---|
451 |
|
---|
452 | de.onready(function() {
|
---|
453 | try {
|
---|
454 | de.init();
|
---|
455 |
|
---|
456 | de.doc.declarePropertySets({
|
---|
457 | offset: {
|
---|
458 | phMarkup: '[Enter offset value]',
|
---|
459 | name: "offset"
|
---|
460 | }
|
---|
461 | });
|
---|
462 | }
|
---|
463 | catch (err) {
|
---|
464 | alert("Seaweed failed to initialise: " + err.message);
|
---|
465 | }
|
---|
466 | });
|
---|
467 |
|
---|
468 | /* --------
|
---|
469 |
|
---|
470 | Config override: This demo uses shiny flash 9 stuff, overwriting Flash 8-based defaults
|
---|
471 | Alternate PP_CONFIG object must be defined before soundManager.onready()/onload() fire.
|
---|
472 | Alternately, edit the config in page-player.js to simply use the values below by default
|
---|
473 |
|
---|
474 | -------- */
|
---|
475 |
|
---|
476 | /* demo only, but you can use these settings too.. */
|
---|
477 | soundManager.flashVersion = 9;
|
---|
478 | soundManager.preferFlash = true; /* for visualization effects */
|
---|
479 | soundManager.useHighPerformance = true; /* keep flash on screen, boost performance */
|
---|
480 | soundManager.wmode = "transparent"; /* transparent SWF, if possible */
|
---|
481 | soundManager.useFastPolling = true; /* increased JS callback frequency */
|
---|
482 | soundManager.url = "ext/audioDB/swf/";
|
---|
483 |
|
---|
484 | /* custom page player configuration */
|
---|
485 |
|
---|
486 | var PP_CONFIG = {
|
---|
487 | autoStart: false, /* begin playing first sound when page loads */
|
---|
488 | playNext: false, /* stop after one sound, or play through list until end */
|
---|
489 | useThrottling: false, /* try to rate-limit potentially-expensive calls (eg. dragging position around) */
|
---|
490 | usePeakData: true, /* [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU */
|
---|
491 | useWaveformData: false,/* [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY */
|
---|
492 | useEQData: false, /* [Flash 9 only] show EQ (frequency spectrum) data */
|
---|
493 | useFavIcon: false, /* try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU */
|
---|
494 | useMovieStar: true /* Flash 9.0r115+ only: Support for a subset of MPEG4 formats. */
|
---|
495 | }</xsl:text>
|
---|
496 | </script>
|
---|
497 | <!--
|
---|
498 | Page player main script
|
---|
499 | -->
|
---|
500 | <script src="ext/audioDB/script/page-player.js">
|
---|
501 | <xsl:text> </xsl:text> </script>
|
---|
502 | <!--
|
---|
503 | optional: Metadata UI prototype (not needed unless you want the bottom-most demo bits)
|
---|
504 | -->
|
---|
505 | <script src="ext/audioDB/script/optional-page-player-metadata.js">
|
---|
506 | <xsl:text> </xsl:text> </script>
|
---|
507 | </xsl:template>
|
---|
508 |
|
---|
509 |
|
---|
510 |
|
---|
511 | <xsl:template name="additionalHeaderContent">
|
---|
512 | <!--
|
---|
513 | Page player core CSS
|
---|
514 | -->
|
---|
515 | <link href="ext/audioDB/css/page-player.css" rel="stylesheet" type="text/css"/>
|
---|
516 | <!--
|
---|
517 | soundManager.useFlashBlock: related CSS
|
---|
518 | -->
|
---|
519 | <link href="ext/audioDB/css/flashblock.css" rel="stylesheet" type="text/css"/>
|
---|
520 | <!--
|
---|
521 | optional: annotations/sub-tracks/notes, and alternate themes
|
---|
522 | -->
|
---|
523 | <link href="ext/audioDB/css/optional-annotations.css" rel="stylesheet" type="text/css"/>
|
---|
524 | <link href="ext/audioDB/css/optional-themes.css" rel="stylesheet" type="text/css"/>
|
---|
525 | <style type="text/css">ul.playlist li .comment {font-size:0.65em;opacity:0.5}</style>
|
---|
526 | <!--
|
---|
527 | soundManager API
|
---|
528 | -->
|
---|
529 | <script src="ext/audioDB/script/soundmanager2-nodebug.js">
|
---|
530 | <xsl:text> </xsl:text> </script>
|
---|
531 | <script>
|
---|
532 | <xsl:text disable-output-escaping="yes">
|
---|
533 |
|
---|
534 | /* --------
|
---|
535 |
|
---|
536 | Config override: This demo uses shiny flash 9 stuff, overwriting Flash 8-based defaults
|
---|
537 | Alternate PP_CONFIG object must be defined before soundManager.onready()/onload() fire.
|
---|
538 | Alternately, edit the config in page-player.js to simply use the values below by default
|
---|
539 |
|
---|
540 | -------- */
|
---|
541 |
|
---|
542 | /* demo only, but you can use these settings too.. */
|
---|
543 | soundManager.flashVersion = 9;
|
---|
544 | soundManager.preferFlash = true; /* for visualization effects */
|
---|
545 | soundManager.useHighPerformance = true; /* keep flash on screen, boost performance */
|
---|
546 | soundManager.wmode = "transparent"; /* transparent SWF, if possible */
|
---|
547 | soundManager.useFastPolling = true; /* increased JS callback frequency */
|
---|
548 | soundManager.url = "ext/audioDB/swf/";
|
---|
549 |
|
---|
550 | /* custom page player configuration */
|
---|
551 |
|
---|
552 | var PP_CONFIG = {
|
---|
553 | autoStart: false, /* begin playing first sound when page loads */
|
---|
554 | playNext: false, /* stop after one sound, or play through list until end */
|
---|
555 | useThrottling: false, /* try to rate-limit potentially-expensive calls (eg. dragging position around) */
|
---|
556 | usePeakData: true, /* [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU */
|
---|
557 | useWaveformData: false,/* [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY */
|
---|
558 | useEQData: false, /* [Flash 9 only] show EQ (frequency spectrum) data */
|
---|
559 | useFavIcon: false, /* try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU */
|
---|
560 | useMovieStar: true /* Flash 9.0r115+ only: Support for a subset of MPEG4 formats. */
|
---|
561 | }</xsl:text>
|
---|
562 | </script>
|
---|
563 | <!--
|
---|
564 | Page player main script
|
---|
565 | -->
|
---|
566 | <script src="ext/audioDB/script/page-player.js">
|
---|
567 | <xsl:text> </xsl:text> </script>
|
---|
568 | <!--
|
---|
569 | optional: Metadata UI prototype (not needed unless you want the bottom-most demo bits)
|
---|
570 | -->
|
---|
571 | <script src="ext/audioDB/script/optional-page-player-metadata.js">
|
---|
572 | <xsl:text> </xsl:text> </script>
|
---|
573 | </xsl:template>
|
---|
574 |
|
---|
575 |
|
---|
576 |
|
---|
577 |
|
---|
578 |
|
---|
579 | </format>
|
---|
580 | </display>
|
---|
581 | <replaceListRef id="gs2-standard"/>
|
---|
582 | <replaceListRef id="gs2-image"/>
|
---|
583 | <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
584 | <serviceRack name="OAIPMH">
|
---|
585 | <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
586 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
587 | -->
|
---|
588 | <metadataFormat metadataPrefix="oai_dc">
|
---|
589 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
590 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
591 | <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>
|
---|
592 | -->
|
---|
593 | <mappingList><!--
|
---|
594 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
595 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
596 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
597 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
598 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
599 |
|
---|
600 | **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.
|
---|
601 |
|
---|
602 | **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.
|
---|
603 | -->
|
---|
604 | <mapping>dc.Title,amc.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. -->
|
---|
605 | </mappingList>
|
---|
606 | </metadataFormat>
|
---|
607 | </ListMetadataFormats>
|
---|
608 | </serviceRack>
|
---|
609 | </serviceRackList>
|
---|
610 | </CollectionConfig>
|
---|