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 name="creator"></metadata>
|
---|
5 | <metadata name="maintainer"></metadata>
|
---|
6 | <metadata name="public">true</metadata>
|
---|
7 | </metadataList>
|
---|
8 | <displayItemList>
|
---|
9 | <displayItem assigned="true" lang="en" name="enumeratedName">1. Traditional MDL</displayItem>
|
---|
10 | <displayItem assigned="true" lang="en" name="name">Traditional MDL</displayItem>
|
---|
11 | <displayItem assigned="true" lang="en" name="description"></displayItem>
|
---|
12 | </displayItemList>
|
---|
13 | <!-- Global format statement -->
|
---|
14 | <format>
|
---|
15 | <gsf:template name="choose-title">
|
---|
16 |
|
---|
17 | <gsf:choose-metadata>
|
---|
18 | <gsf:metadata name="dc.Title"/>
|
---|
19 | <gsf:metadata name="exp.Title"/>
|
---|
20 | <gsf:metadata name="ex.dc.Title"/>
|
---|
21 | <gsf:metadata name="ex.ID3.Title"/>
|
---|
22 | <gsf:metadata name="ex.Title"/>
|
---|
23 | <gsf:metadata name="Title"/>
|
---|
24 | <gsf:default>Untitled</gsf:default>
|
---|
25 | </gsf:choose-metadata>
|
---|
26 |
|
---|
27 | <gsf:switch>
|
---|
28 | <gsf:metadata name='dc.Creator'/>
|
---|
29 | <gsf:when test='exists'>
|
---|
30 |
|
---|
31 | <gsf:switch>
|
---|
32 | <gsf:metadata name="dc.Creator"/>
|
---|
33 | <gsf:when test="notEquals" test-value="Unknown">
|
---|
34 |
|
---|
35 | by <i><gsf:metadata name='dc.Creator'/></i>
|
---|
36 | </gsf:when>
|
---|
37 | </gsf:switch>
|
---|
38 |
|
---|
39 | </gsf:when>
|
---|
40 | </gsf:switch>
|
---|
41 | </gsf:template>
|
---|
42 | </format>
|
---|
43 |
|
---|
44 | <search type="lucene">
|
---|
45 | <level name="document">
|
---|
46 | <displayItem lang="en" name="name">document</displayItem>
|
---|
47 | </level>
|
---|
48 | <level name="section">
|
---|
49 | <displayItem lang="en" name="name">section</displayItem>
|
---|
50 | </level>
|
---|
51 | <defaultLevel name="document"/>
|
---|
52 | <index name="text">
|
---|
53 | <displayItem lang="en" name="name">text</displayItem>
|
---|
54 | </index>
|
---|
55 | <index name="dc.Title,ex.dc.Title,ex.ID3.Title,Title">
|
---|
56 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
57 | </index>
|
---|
58 | <index name="Source">
|
---|
59 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
60 | </index>
|
---|
61 | <defaultIndex name="text"/>
|
---|
62 | <searchType name="plain"/>
|
---|
63 | <searchType name="simpleform"/>
|
---|
64 | <searchType name="advancedform"/>
|
---|
65 |
|
---|
66 |
|
---|
67 | <!-- Search Format Statement -->
|
---|
68 | <format>
|
---|
69 | <gsf:template match="documentNode">
|
---|
70 |
|
---|
71 | <gsf:variable name="cgiargFrameLength">
|
---|
72 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
|
---|
73 | </gsf:variable>
|
---|
74 |
|
---|
75 | <xsl:variable name="cgiargYScaleSimImg"><xsl:choose>
|
---|
76 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value != ''"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value"/></xsl:when>
|
---|
77 | <xsl:otherwise>0.5</xsl:otherwise>
|
---|
78 | </xsl:choose>
|
---|
79 | </xsl:variable>
|
---|
80 |
|
---|
81 | <td valign="top">
|
---|
82 | <gsf:icon type="document"/>
|
---|
83 | </td>
|
---|
84 | <td>
|
---|
85 | <xsl:choose>
|
---|
86 | <xsl:when test="@rank != 'NaN'">
|
---|
87 | (<script>
|
---|
88 | var rank=<xsl:value-of select="@rank"/>;
|
---|
89 | var perc=(rank-0.9)*100*10;
|
---|
90 | document.write(perc.toFixed(1));
|
---|
91 | </script>%)
|
---|
92 | </xsl:when>
|
---|
93 | </xsl:choose>
|
---|
94 |
|
---|
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"/>&p.frameLength=<xsl:value-of select="/page/pageRequest/paramList/param[@name='s1.length']/@value"/>&p.a=q&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&p.yScaleSimImg=<xsl:value-of select="$cgiargYScaleSimImg"/>
|
---|
99 |
|
---|
100 | </xsl:attribute>
|
---|
101 |
|
---|
102 | <xsl:call-template name="choose-title"/>
|
---|
103 | </a>
|
---|
104 | </xsl:when>
|
---|
105 | <xsl:otherwise>
|
---|
106 | <gsf:link>
|
---|
107 | <xsl:call-template name="choose-title"/>
|
---|
108 | </gsf:link>
|
---|
109 | </xsl:otherwise>
|
---|
110 | </xsl:choose>
|
---|
111 |
|
---|
112 | <gsf:switch>
|
---|
113 | <gsf:metadata name="artist"/>
|
---|
114 | <gsf:when test="exists">
|
---|
115 | by <gsf:metadata name="artist"/>
|
---|
116 | </gsf:when>
|
---|
117 | </gsf:switch>
|
---|
118 |
|
---|
119 | <gsf:switch>
|
---|
120 | <gsf:metadata name="js.LabelledStructure"/>
|
---|
121 | <gsf:when test="exists">
|
---|
122 | <br/><i style="font-size: 80%">(Labelled structure: <gsf:metadata name="js.LabelledStructure"/>)</i>
|
---|
123 | </gsf:when>
|
---|
124 | </gsf:switch>
|
---|
125 |
|
---|
126 | </td>
|
---|
127 | </gsf:template>
|
---|
128 | </format>
|
---|
129 |
|
---|
130 | </search>
|
---|
131 |
|
---|
132 | <infodb type="jdbm"/>
|
---|
133 |
|
---|
134 | <import>
|
---|
135 | <pluginList>
|
---|
136 | <plugin name="ZIPPlugin"/>
|
---|
137 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
138 |
|
---|
139 | <plugin name="EmbeddedMetadataPlugin">
|
---|
140 | <option name="-process_exp" value="(?i)\.mp3$"/>
|
---|
141 | </plugin>
|
---|
142 |
|
---|
143 | <plugin name="AudioDBPlugin">
|
---|
144 | <option name="-enable_streaming" value="mp3"/>
|
---|
145 | <option name="-enable_cache"/>
|
---|
146 | </plugin>
|
---|
147 |
|
---|
148 | <plugin name="TextPlugin"/>
|
---|
149 | <plugin name="HTMLPlugin"/>
|
---|
150 | <plugin name="EmailPlugin"/>
|
---|
151 | <plugin name="PDFPlugin"/>
|
---|
152 | <plugin name="RTFPlugin"/>
|
---|
153 | <plugin name="WordPlugin"/>
|
---|
154 | <plugin name="PostScriptPlugin"/>
|
---|
155 | <plugin name="PowerPointPlugin"/>
|
---|
156 | <plugin name="ExcelPlugin"/>
|
---|
157 | <plugin name="ImagePlugin"/>
|
---|
158 | <plugin name="ISISPlugin"/>
|
---|
159 | <plugin name="NulPlugin"/>
|
---|
160 | <plugin name="OAIPlugin"/>
|
---|
161 | <plugin name="MetadataXMLPlugin"/>
|
---|
162 | <plugin name="ArchivesInfPlugin"/>
|
---|
163 | <plugin name="DirectoryPlugin"/>
|
---|
164 | </pluginList>
|
---|
165 | </import>
|
---|
166 |
|
---|
167 | <importOption name="OIDtype" value="hash_on_full_filename"/>
|
---|
168 |
|
---|
169 | <browse>
|
---|
170 | <classifier name="AZCompactList">
|
---|
171 | <option name="-metadata" value="dc.Title;ex.dc.Title;ex.ID3.Title;Title"/>
|
---|
172 | <option name="-mingroup" value="2"/>
|
---|
173 | <option name="-removeprefix" value="(?i)Le|La|Les|The|A\\s+"/>
|
---|
174 | </classifier>
|
---|
175 |
|
---|
176 | <classifier name="AZCompactList">
|
---|
177 | <option name="-metadata" value="dc.Creator;ex.ID3.Artist"/>
|
---|
178 | <option name="-buttonname" value="Artists"/>
|
---|
179 | <option name="-mingroup" value="1"/>
|
---|
180 | <option name="-minnesting" value="40"/>
|
---|
181 | </classifier>
|
---|
182 |
|
---|
183 | <classifier name="AZCompactList">
|
---|
184 | <option name="-metadata" value="dc.Title.albumtitle;ex.ID3.Album"/>
|
---|
185 | <option name="-buttonname" value="Albums"/>
|
---|
186 | <option name="-mingroup" value="1"/>
|
---|
187 | <option name="-minnesting" value="40"/>
|
---|
188 | </classifier>
|
---|
189 |
|
---|
190 | <classifier name="AZCompactList">
|
---|
191 | <option name="-metadata" value="ex.ID3.Genre"/>
|
---|
192 | <option name="-buttonname" value="Genre"/>
|
---|
193 | <option name="-mingroup" value="1"/>
|
---|
194 | <option name="-minnesting" value="40"/>
|
---|
195 | </classifier>
|
---|
196 |
|
---|
197 |
|
---|
198 | <!--
|
---|
199 |
|
---|
200 | <classifier name="List">
|
---|
201 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
202 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
203 | </classifier>
|
---|
204 | <classifier name="List">
|
---|
205 | <option name="-metadata" value="dc.Creator"/>
|
---|
206 | <option name="-button_name" value="Artists"/>
|
---|
207 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
208 | </classifier>
|
---|
209 |
|
---|
210 | -->
|
---|
211 |
|
---|
212 | <format>
|
---|
213 | <gsf:template match="documentNode">
|
---|
214 | <td valign="top">
|
---|
215 | <gsf:link type="document">
|
---|
216 | <gsf:icon type="document"/>
|
---|
217 | </gsf:link>
|
---|
218 | </td>
|
---|
219 | <td valign="top">
|
---|
220 | <gsf:link type="source">
|
---|
221 | <gsf:choose-metadata>
|
---|
222 | <gsf:metadata name="thumbicon"/>
|
---|
223 | <gsf:metadata name="srcicon"/>
|
---|
224 | </gsf:choose-metadata>
|
---|
225 | </gsf:link>
|
---|
226 | </td>
|
---|
227 | <td valign="top">
|
---|
228 | <gsf:link type="document">
|
---|
229 | <!-- Defined in the global format statement -->
|
---|
230 | <xsl:call-template name="choose-title"/>
|
---|
231 |
|
---|
232 | <gsf:switch>
|
---|
233 | <gsf:metadata name="dc.Title" />
|
---|
234 | <gsf:when test="equals" test-value="Unknown">
|
---|
235 | <br/><i>(<gsf:metadata name="Source"/>)</i>
|
---|
236 | </gsf:when>
|
---|
237 | </gsf:switch>
|
---|
238 |
|
---|
239 | </gsf:link>
|
---|
240 | </td>
|
---|
241 | </gsf:template>
|
---|
242 |
|
---|
243 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
244 | <td valign="top">
|
---|
245 | <gsf:link type="classifier">
|
---|
246 | <gsf:icon type="classifier"/>
|
---|
247 | </gsf:link>
|
---|
248 | </td>
|
---|
249 | <td valign="top">
|
---|
250 | <gsf:link type="source">
|
---|
251 | <gsf:choose-metadata>
|
---|
252 | <gsf:metadata name="thumbicon"/>
|
---|
253 | <gsf:metadata name="srcicon"/>
|
---|
254 | </gsf:choose-metadata>
|
---|
255 | </gsf:link>
|
---|
256 | </td>
|
---|
257 | <td valign="top">
|
---|
258 | <!-- Defined in the global format statement -->
|
---|
259 | <xsl:call-template name="choose-title"/>
|
---|
260 | <gsf:switch>
|
---|
261 | <gsf:metadata name="Source"/>
|
---|
262 | <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
|
---|
263 | </gsf:switch>
|
---|
264 | </td>
|
---|
265 | </gsf:template>
|
---|
266 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
267 | <gsf:link type="classifier">
|
---|
268 | <gsf:metadata name="Title"/>
|
---|
269 | </gsf:link>
|
---|
270 | </gsf:template>
|
---|
271 | </format>
|
---|
272 | </browse>
|
---|
273 |
|
---|
274 | <display>
|
---|
275 | <format>
|
---|
276 | <gsf:option name="TOC" value="false"/>
|
---|
277 |
|
---|
278 | <!--
|
---|
279 | Overwriting this template allows you to change the heading of the document.
|
---|
280 | -->
|
---|
281 | <gsf:template name="documentHeading">
|
---|
282 |
|
---|
283 | <xsl:variable name="httpCollection">
|
---|
284 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
285 | </xsl:variable>
|
---|
286 |
|
---|
287 | <!-- Metadata derived from finger-printing -->
|
---|
288 |
|
---|
289 | <xsl:call-template name="metadata-block">
|
---|
290 | <xsl:with-param name="httpCollection" select="$httpCollection"/>
|
---|
291 | </xsl:call-template>
|
---|
292 |
|
---|
293 | </gsf:template>
|
---|
294 |
|
---|
295 |
|
---|
296 | <!--
|
---|
297 | Overwriting this template can be used to redefine the content of the whole document.
|
---|
298 | This is useful for simple documents, but not recommended for more complex documents
|
---|
299 | (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
|
---|
300 | -->
|
---|
301 | <!--
|
---|
302 | <gsf:template name="documentContent">
|
---|
303 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
304 | <xsl:call-template name="wrappedSectionText"/>
|
---|
305 | </gsf:template>
|
---|
306 | -->
|
---|
307 |
|
---|
308 | <!--
|
---|
309 | Overwriting this template can be used to change the content of section headings.
|
---|
310 | -->
|
---|
311 | <!--
|
---|
312 | <gsf:template name="sectionHeading">
|
---|
313 | <xsl:call-template name="choose-title"/>
|
---|
314 | </gsf:template>
|
---|
315 | -->
|
---|
316 |
|
---|
317 | <!--
|
---|
318 | Overwriting this template can be used to change the content of the top-level section.
|
---|
319 | -->
|
---|
320 | <!--
|
---|
321 | <gsf:template name="topLevelSectionContent">
|
---|
322 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
323 | <xsl:call-template name="wrappedSectionText"/>
|
---|
324 | </gsf:template>
|
---|
325 | -->
|
---|
326 |
|
---|
327 | <!--
|
---|
328 | Overwriting this template can be used to change the content of sections.
|
---|
329 | -->
|
---|
330 |
|
---|
331 | <!--
|
---|
332 | <gsf:template name="sectionContent">
|
---|
333 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
334 | <xsl:call-template name="wrappedSectionText"/>
|
---|
335 | </gsf:template>
|
---|
336 | -->
|
---|
337 |
|
---|
338 | <xsl:template name="additionalHeaderContent">
|
---|
339 |
|
---|
340 |
|
---|
341 | <xsl:call-template name="soundmanager2-header"/>
|
---|
342 | <xsl:call-template name="js-mad-header"/>
|
---|
343 |
|
---|
344 | <!-- Bespoke jquery-ui extension for turnstyle open/close blocks -->
|
---|
345 | <gsf:style src="ext/jquery-ui-extra/turnstyle-block.css"/>
|
---|
346 | <gsf:script src="ext/jquery-ui-extra/turnstyle-block.js"/>
|
---|
347 |
|
---|
348 | <!-- The Javascript DSP files for computing chroma features in the browser -->
|
---|
349 | <xsl:call-template name="javascript-dsp-header"/>
|
---|
350 |
|
---|
351 |
|
---|
352 | <!-- Javascript support for running, sending input into, monitoring, and stopping Meandre flows -->
|
---|
353 | <gsf:script src="ext/meandre/meandre-controller.js"/>
|
---|
354 |
|
---|
355 | <gsf:style>
|
---|
356 | .metadata-stripes td { padding: 4px; }
|
---|
357 | .metadata-stripes tr:nth-child(odd) {background: #CCC}
|
---|
358 | .metadata-stripes tr:nth-child(even) {background: #FFF}
|
---|
359 |
|
---|
360 | .vis-heading { font-style:italic; }
|
---|
361 |
|
---|
362 | #rightSidebar { display: none; }
|
---|
363 | </gsf:style>
|
---|
364 |
|
---|
365 | </xsl:template>
|
---|
366 |
|
---|
367 |
|
---|
368 | <xsl:template name="documentContent">
|
---|
369 |
|
---|
370 | <!--
|
---|
371 | <xsl:call-template name="init-document-xsl-vars"/>
|
---|
372 | -->
|
---|
373 |
|
---|
374 | <!-- declare $httpCollection = $httpPath (for better consistency with other places in Greenstone XSL files) -->
|
---|
375 | <xsl:variable name="httpCollection">
|
---|
376 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
377 | </xsl:variable>
|
---|
378 |
|
---|
379 | <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
|
---|
380 | <xsl:variable name="Source"><gsf:metadata name="Source" select="root"/></xsl:variable>
|
---|
381 |
|
---|
382 | <gsf:variable name="cgiargFrameOffset">
|
---|
383 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameOffset']/@value"/>
|
---|
384 | </gsf:variable>
|
---|
385 |
|
---|
386 | <gsf:variable name="cgiargFrameLength">
|
---|
387 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
|
---|
388 | </gsf:variable>
|
---|
389 |
|
---|
390 | <xsl:variable name="cgiargYScaleSimImg"><xsl:choose>
|
---|
391 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value != ''"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value"/></xsl:when>
|
---|
392 | <xsl:otherwise>0.5</xsl:otherwise>
|
---|
393 | </xsl:choose>
|
---|
394 | </xsl:variable>
|
---|
395 |
|
---|
396 | <!-- CAA = Content Analysis Algorithm -->
|
---|
397 | <xsl:variable name="cgiargCAAlgorithm">
|
---|
398 | <xsl:choose>
|
---|
399 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value != ''"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value"/></xsl:when>
|
---|
400 | <xsl:otherwise>1</xsl:otherwise>
|
---|
401 | </xsl:choose>
|
---|
402 | </xsl:variable>
|
---|
403 |
|
---|
404 | <!-- *** -->
|
---|
405 | <!-- Main Audio Player -->
|
---|
406 | <!-- *** -->
|
---|
407 |
|
---|
408 | <div class="documenttext">
|
---|
409 |
|
---|
410 | <!--
|
---|
411 | <xsl:call-template name="audio-icon-cache"/>
|
---|
412 | -->
|
---|
413 |
|
---|
414 | <xsl:call-template name="original-audio">
|
---|
415 | <xsl:with-param name="httpCollection" select="$httpCollection"/>
|
---|
416 | <xsl:with-param name="assocFilePath" select="$assocFilePath"/>
|
---|
417 | </xsl:call-template>
|
---|
418 |
|
---|
419 |
|
---|
420 | <hr/>
|
---|
421 |
|
---|
422 | <script>
|
---|
423 | <xsl:text disable-output-escaping="yes">
|
---|
424 | useFancyPlayer = 1;
|
---|
425 |
|
---|
426 | /* if (window.location.toString().match(/fancyplayer/i)) { */
|
---|
427 | if (useFancyPlayer) {
|
---|
428 | PP_CONFIG.usePeakData = true;
|
---|
429 | PP_CONFIG.useEQData = true;
|
---|
430 | // PP_CONFIG.useFavIcon = true;
|
---|
431 | }
|
---|
432 |
|
---|
433 | function onFinishSP()
|
---|
434 | {
|
---|
435 | soundManager._onfinish();
|
---|
436 | togglePlayVisual(mainPlayButton);
|
---|
437 | }
|
---|
438 |
|
---|
439 | var mySoundObj;
|
---|
440 |
|
---|
441 | function playFromOffset(id,frameOffset)
|
---|
442 | {
|
---|
443 | var msecOffset = 250 * frameOffset;
|
---|
444 | idElem = document.getElementById(id);
|
---|
445 | pagePlayer.handleClick({target:idElem}); /* fake a click */
|
---|
446 | soundManager.stopAll();
|
---|
447 |
|
---|
448 | var options = {};
|
---|
449 | options.position = msecOffset;
|
---|
450 |
|
---|
451 | soundManager.play(id,options);
|
---|
452 |
|
---|
453 | togglePlayMode = "pause";
|
---|
454 | playHighlightOff(document.getElementById("mainPlayButton"),32);
|
---|
455 | }
|
---|
456 |
|
---|
457 | function preSubmit(form)
|
---|
458 | {
|
---|
459 | var currentPosElem = document.getElementById("mysongCurrentPos");
|
---|
460 | var offsetInMSecs = currentPosElem.getAttribute("offsetInMSecs");
|
---|
461 | var frameOffset = Math.round(offsetInMSecs/250.0);
|
---|
462 | form.elements["s1.offset"].value = frameOffset;
|
---|
463 |
|
---|
464 | //var lengthInSecs = document.getElementById("mysongWindowDuration").innerHTML;
|
---|
465 | var lengthInSecs = form.elements["mysongWindowDuration"].value;
|
---|
466 |
|
---|
467 | var frameLength = Math.round(lengthInSecs*1000/250.0);
|
---|
468 | form.elements["s1.length"].value = frameLength;
|
---|
469 |
|
---|
470 | return true;
|
---|
471 | }
|
---|
472 |
|
---|
473 | function searchSubmit(frameOffset)
|
---|
474 | {
|
---|
475 | var form = document.getElementById("QueryForm");
|
---|
476 |
|
---|
477 | form.elements["s1.offset"].value = frameOffset;
|
---|
478 |
|
---|
479 | //var lengthInSecs = document.getElementById("mysongWindowDuration").innerHTML;
|
---|
480 | var lengthInSecs = form.elements["mysongWindowDuration"].value;
|
---|
481 |
|
---|
482 | var frameLength = Math.round(lengthInSecs*1000/250.0);
|
---|
483 | form.elements["s1.length"].value = frameLength;
|
---|
484 |
|
---|
485 | form.submit();
|
---|
486 | }
|
---|
487 |
|
---|
488 |
|
---|
489 |
|
---|
490 | function rescaleImage()
|
---|
491 | {
|
---|
492 | var form = document.getElementById("RescaleForm");
|
---|
493 |
|
---|
494 | var rescaleSize = form.elements["ResizeScale"].value;
|
---|
495 |
|
---|
496 | var currentURL = document.location.toString();
|
---|
497 | var newURL;
|
---|
498 | if (currentURL.match(/p.yScaleSimImg=(\d+(?:\.\d+))/)) {
|
---|
499 | newURL = currentURL.replace(/p.yScaleSimImg=(\d+(?:\.\d+))/,"p.yScaleSimImg="+rescaleSize);
|
---|
500 | }
|
---|
501 | else {
|
---|
502 | var urlParts = currentURL.split("#");
|
---|
503 | newURL = urlParts.shift();
|
---|
504 | newURL += "&p.yScaleSimImg="+rescaleSize;
|
---|
505 | newURL += "#" + urlParts.join("#");
|
---|
506 | }
|
---|
507 |
|
---|
508 | document.location = newURL;
|
---|
509 | }
|
---|
510 |
|
---|
511 | function updateCAAlgorithm()
|
---|
512 | {
|
---|
513 |
|
---|
514 | var form = document.getElementById("UpdateCAForm");
|
---|
515 |
|
---|
516 | var caaMenu = form.elements["caAlgorithm"];
|
---|
517 |
|
---|
518 | var caIndexPos = caaMenu.options[caaMenu.selectedIndex].value
|
---|
519 |
|
---|
520 | var currentURL = document.location.toString();
|
---|
521 | var newURL;
|
---|
522 | if (currentURL.match(/p.caAlgorithm=(\d+)/)) {
|
---|
523 | newURL = currentURL.replace(/p.caAlgorithm=(\d+)/,"p.caAlgorithm="+caIndexPos);
|
---|
524 | }
|
---|
525 | else {
|
---|
526 | var urlParts = currentURL.split("#");
|
---|
527 | newURL = urlParts.shift();
|
---|
528 | newURL += "&p.caAlgorithm="+caIndexPos;
|
---|
529 | newURL += "#" + urlParts.join("#");
|
---|
530 | }
|
---|
531 |
|
---|
532 | document.location = newURL;
|
---|
533 |
|
---|
534 | }
|
---|
535 |
|
---|
536 |
|
---|
537 |
|
---|
538 | </xsl:text>
|
---|
539 |
|
---|
540 | </script>
|
---|
541 |
|
---|
542 |
|
---|
543 | </div>
|
---|
544 | </xsl:template>
|
---|
545 |
|
---|
546 |
|
---|
547 |
|
---|
548 |
|
---|
549 | </format>
|
---|
550 | </display>
|
---|
551 |
|
---|
552 | <replaceListRef id="gs2-standard"/>
|
---|
553 | <replaceListRef id="gs2-image" />
|
---|
554 | <serviceRackList>
|
---|
555 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
556 | <serviceRack name="OAIPMH">
|
---|
557 | <ListMetadataFormats>
|
---|
558 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
559 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
560 | -->
|
---|
561 | <metadataFormat metadataPrefix="oai_dc">
|
---|
562 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
563 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
564 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
565 | <!--<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>-->
|
---|
566 | <mappingList>
|
---|
567 | <!--
|
---|
568 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
569 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
570 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
571 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
572 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
573 |
|
---|
574 | **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.
|
---|
575 |
|
---|
576 | **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.
|
---|
577 | -->
|
---|
578 | <mapping>dc:title,Title</mapping>
|
---|
579 | <!-- 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. -->
|
---|
580 | </mappingList>
|
---|
581 | </metadataFormat>
|
---|
582 | </ListMetadataFormats>
|
---|
583 | </serviceRack>
|
---|
584 | </serviceRackList>
|
---|
585 | </CollectionConfig>
|
---|