[28433] | 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="name">Redefining Boundaries</displayItem>
|
---|
| 10 | <displayItem assigned="true" lang="en" name="description"></displayItem>
|
---|
| 11 | </displayItemList>
|
---|
| 12 | <!-- Global format statement -->
|
---|
| 13 | <format>
|
---|
| 14 | <gsf:template name="choose-title">
|
---|
| 15 |
|
---|
| 16 | <gsf:choose-metadata>
|
---|
| 17 | <gsf:metadata name="dc.Title"/>
|
---|
| 18 | <gsf:metadata name="exp.Title"/>
|
---|
| 19 | <gsf:metadata name="ex.dc.Title"/>
|
---|
| 20 | <gsf:metadata name="ex.Title"/>
|
---|
| 21 | <gsf:metadata name="Title"/>
|
---|
| 22 | <gsf:default>Untitled</gsf:default>
|
---|
| 23 | </gsf:choose-metadata>
|
---|
| 24 |
|
---|
| 25 | <gsf:switch>
|
---|
| 26 | <gsf:metadata name='dc.Creator'/>
|
---|
| 27 | <gsf:when test='exists'>
|
---|
| 28 |
|
---|
| 29 | <gsf:switch>
|
---|
| 30 | <gsf:metadata name="dc.Creator"/>
|
---|
| 31 | <gsf:when test="notEquals" test-value="Unknown">
|
---|
| 32 |
|
---|
| 33 | by <i><gsf:metadata name='dc.Creator'/></i>
|
---|
| 34 | </gsf:when>
|
---|
| 35 | </gsf:switch>
|
---|
| 36 |
|
---|
| 37 | </gsf:when>
|
---|
| 38 | </gsf:switch>
|
---|
| 39 | </gsf:template>
|
---|
| 40 | </format>
|
---|
| 41 |
|
---|
| 42 | <search type="mgpp">
|
---|
| 43 | <level name="document">
|
---|
| 44 | <displayItem lang="en" name="name">document</displayItem>
|
---|
| 45 | </level>
|
---|
| 46 | <level name="section">
|
---|
| 47 | <displayItem lang="en" name="name">section</displayItem>
|
---|
| 48 | </level>
|
---|
| 49 | <defaultLevel name="document"/>
|
---|
| 50 | <index name="text">
|
---|
| 51 | <displayItem lang="en" name="name">text</displayItem>
|
---|
| 52 | </index>
|
---|
| 53 | <index name="dc.Title,ex.dc.Title,Title">
|
---|
| 54 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
| 55 | </index>
|
---|
| 56 | <index name="Source">
|
---|
| 57 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
| 58 | </index>
|
---|
| 59 | <defaultIndex name="text"/>
|
---|
| 60 | <searchType name="plain"/>
|
---|
| 61 | <searchType name="simpleform"/>
|
---|
| 62 | <searchType name="advancedform"/>
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | <!-- Search Format Statement -->
|
---|
| 66 | <format>
|
---|
| 67 | <gsf:template match="documentNode">
|
---|
| 68 |
|
---|
| 69 | <gsf:variable name="cgiargFrameLength">
|
---|
| 70 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
|
---|
| 71 | </gsf:variable>
|
---|
| 72 |
|
---|
| 73 | <xsl:variable name="cgiargYScaleSimImg"><xsl:choose>
|
---|
| 74 | <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>
|
---|
| 75 | <xsl:otherwise>0.5</xsl:otherwise>
|
---|
| 76 | </xsl:choose>
|
---|
| 77 | </xsl:variable>
|
---|
| 78 |
|
---|
| 79 | <td valign="top">
|
---|
| 80 | <gsf:icon type="document"/>
|
---|
| 81 | </td>
|
---|
| 82 | <td>
|
---|
| 83 | <xsl:choose>
|
---|
| 84 | <xsl:when test="@rank != 'NaN'">
|
---|
| 85 | (<script>
|
---|
| 86 | var rank=<xsl:value-of select="@rank"/>;
|
---|
| 87 | var perc=(rank-0.9)*100*10;
|
---|
| 88 | document.write(perc.toFixed(1));
|
---|
| 89 | </script>%)
|
---|
| 90 | </xsl:when>
|
---|
| 91 | </xsl:choose>
|
---|
| 92 |
|
---|
| 93 | <xsl:choose>
|
---|
| 94 | <xsl:when test="/page/pageResponse/service[@name='AudioQuery']">
|
---|
| 95 | <a>
|
---|
| 96 | <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"/>
|
---|
| 97 |
|
---|
| 98 | </xsl:attribute>
|
---|
| 99 |
|
---|
| 100 | <xsl:call-template name="choose-title"/>
|
---|
| 101 | </a>
|
---|
| 102 | </xsl:when>
|
---|
| 103 | <xsl:otherwise>
|
---|
| 104 | <gsf:link>
|
---|
| 105 | <xsl:call-template name="choose-title"/>
|
---|
| 106 | </gsf:link>
|
---|
| 107 | </xsl:otherwise>
|
---|
| 108 | </xsl:choose>
|
---|
| 109 |
|
---|
| 110 | <gsf:switch>
|
---|
| 111 | <gsf:metadata name="artist"/>
|
---|
| 112 | <gsf:when test="exists">
|
---|
| 113 | by <gsf:metadata name="artist"/>
|
---|
| 114 | </gsf:when>
|
---|
| 115 | </gsf:switch>
|
---|
| 116 |
|
---|
| 117 | <gsf:switch>
|
---|
| 118 | <gsf:metadata name="js.LabelledStructure"/>
|
---|
| 119 | <gsf:when test="exists">
|
---|
| 120 | <br/><i style="font-size: 80%">(Labelled structure: <gsf:metadata name="js.LabelledStructure"/>)</i>
|
---|
| 121 | </gsf:when>
|
---|
| 122 | </gsf:switch>
|
---|
| 123 |
|
---|
| 124 | </td>
|
---|
| 125 | </gsf:template>
|
---|
| 126 | </format>
|
---|
| 127 |
|
---|
| 128 | </search>
|
---|
| 129 |
|
---|
| 130 | <search type="audioDB" orthogonal="true" />
|
---|
| 131 |
|
---|
| 132 | <infodb type="jdbm"/>
|
---|
| 133 |
|
---|
| 134 | <import>
|
---|
| 135 | <pluginList>
|
---|
| 136 | <plugin name="ZIPPlugin"/>
|
---|
| 137 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
| 138 | <plugin name="EmbeddedMetadataPlugin"/>
|
---|
| 139 |
|
---|
| 140 | <plugin name="AudioDBPlugin">
|
---|
| 141 | <option name="-compute_fft_features" value="true"/>
|
---|
| 142 | <option name="-enable_streaming" value="mp3"/>
|
---|
| 143 | <option name="-compute_mir_features" value="true"/>
|
---|
| 144 | <option name="-retrieve_mir_metadata" value="true"/>
|
---|
| 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 | <browse>
|
---|
| 168 | <classifier name="AZCompactList">
|
---|
| 169 | <option name="-metadata" value="dc.Title;ex.dc.Title;Title"/>
|
---|
| 170 | <option name="-mingroup" value="2"/>
|
---|
| 171 | <option name="-removeprefix" value="(?i)Le|La|Les|The|A\\s+"/>
|
---|
| 172 | </classifier>
|
---|
| 173 |
|
---|
| 174 | <classifier name="AZCompactList">
|
---|
| 175 | <option name="-metadata" value="dc.Creator"/>
|
---|
| 176 | <option name="-buttonname" value="Artists"/>
|
---|
| 177 | <option name="-mingroup" value="1"/>
|
---|
| 178 | <option name="-minnesting" value="40"/>
|
---|
| 179 | </classifier>
|
---|
| 180 |
|
---|
| 181 | <classifier name="AZCompactList">
|
---|
| 182 | <option name="-metadata" value="dc.Title.albumtitle"/>
|
---|
| 183 | <option name="-buttonname" value="Albums"/>
|
---|
| 184 | <option name="-mingroup" value="1"/>
|
---|
| 185 | <option name="-minnesting" value="40"/>
|
---|
| 186 | </classifier>
|
---|
| 187 |
|
---|
| 188 |
|
---|
| 189 | <!--
|
---|
| 190 |
|
---|
| 191 | <classifier name="List">
|
---|
| 192 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
| 193 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
| 194 | </classifier>
|
---|
| 195 | <classifier name="List">
|
---|
| 196 | <option name="-metadata" value="dc.Creator"/>
|
---|
| 197 | <option name="-button_name" value="Artists"/>
|
---|
| 198 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
| 199 | </classifier>
|
---|
| 200 |
|
---|
| 201 | -->
|
---|
| 202 |
|
---|
| 203 | <format>
|
---|
| 204 | <gsf:template match="documentNode">
|
---|
| 205 | <td valign="top">
|
---|
| 206 | <gsf:link type="document">
|
---|
| 207 | <gsf:icon type="document"/>
|
---|
| 208 | </gsf:link>
|
---|
| 209 | </td>
|
---|
| 210 | <td valign="top">
|
---|
| 211 | <gsf:link type="source">
|
---|
| 212 | <gsf:choose-metadata>
|
---|
| 213 | <gsf:metadata name="thumbicon"/>
|
---|
| 214 | <gsf:metadata name="srcicon"/>
|
---|
| 215 | </gsf:choose-metadata>
|
---|
| 216 | </gsf:link>
|
---|
| 217 | </td>
|
---|
| 218 | <td valign="top">
|
---|
| 219 | <gsf:link type="document">
|
---|
| 220 | <!-- Defined in the global format statement -->
|
---|
| 221 | <xsl:call-template name="choose-title"/>
|
---|
| 222 |
|
---|
| 223 | <gsf:switch>
|
---|
| 224 | <gsf:metadata name="dc.Title" />
|
---|
| 225 | <gsf:when test="equals" test-value="Unknown">
|
---|
| 226 | <br/><i>(<gsf:metadata name="Source"/>)</i>
|
---|
| 227 | </gsf:when>
|
---|
| 228 | </gsf:switch>
|
---|
| 229 |
|
---|
| 230 | </gsf:link>
|
---|
| 231 | </td>
|
---|
| 232 | </gsf:template>
|
---|
| 233 |
|
---|
| 234 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
| 235 | <td valign="top">
|
---|
| 236 | <gsf:link type="classifier">
|
---|
| 237 | <gsf:icon type="classifier"/>
|
---|
| 238 | </gsf:link>
|
---|
| 239 | </td>
|
---|
| 240 | <td valign="top">
|
---|
| 241 | <gsf:link type="source">
|
---|
| 242 | <gsf:choose-metadata>
|
---|
| 243 | <gsf:metadata name="thumbicon"/>
|
---|
| 244 | <gsf:metadata name="srcicon"/>
|
---|
| 245 | </gsf:choose-metadata>
|
---|
| 246 | </gsf:link>
|
---|
| 247 | </td>
|
---|
| 248 | <td valign="top">
|
---|
| 249 | <!-- Defined in the global format statement -->
|
---|
| 250 | <xsl:call-template name="choose-title"/>
|
---|
| 251 | <gsf:switch>
|
---|
| 252 | <gsf:metadata name="Source"/>
|
---|
| 253 | <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
|
---|
| 254 | </gsf:switch>
|
---|
| 255 | </td>
|
---|
| 256 | </gsf:template>
|
---|
| 257 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
| 258 | <gsf:link type="classifier">
|
---|
| 259 | <gsf:metadata name="Title"/>
|
---|
| 260 | </gsf:link>
|
---|
| 261 | </gsf:template>
|
---|
| 262 | </format>
|
---|
| 263 | </browse>
|
---|
| 264 |
|
---|
| 265 | <display>
|
---|
| 266 | <format>
|
---|
| 267 | <gsf:option name="TOC" value="false"/>
|
---|
| 268 |
|
---|
| 269 | <!--
|
---|
| 270 | Overwriting this template allows you to change the heading of the document.
|
---|
| 271 | -->
|
---|
| 272 | <gsf:template name="documentHeading">
|
---|
| 273 |
|
---|
| 274 | <xsl:variable name="httpCollection">
|
---|
| 275 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
| 276 | </xsl:variable>
|
---|
| 277 |
|
---|
| 278 | <!-- Metadata derived from finger-printing -->
|
---|
| 279 |
|
---|
| 280 | <xsl:call-template name="discovery-block">
|
---|
| 281 | <xsl:with-param name="httpCollection" select="$httpCollection"/>
|
---|
| 282 | </xsl:call-template>
|
---|
| 283 |
|
---|
| 284 | </gsf:template>
|
---|
| 285 |
|
---|
| 286 |
|
---|
| 287 | <!--
|
---|
| 288 | Overwriting this template can be used to redefine the content of the whole document.
|
---|
| 289 | This is useful for simple documents, but not recommended for more complex documents
|
---|
| 290 | (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
|
---|
| 291 | -->
|
---|
| 292 | <!--
|
---|
| 293 | <gsf:template name="documentContent">
|
---|
| 294 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
| 295 | <xsl:call-template name="wrappedSectionText"/>
|
---|
| 296 | </gsf:template>
|
---|
| 297 | -->
|
---|
| 298 |
|
---|
| 299 | <!--
|
---|
| 300 | Overwriting this template can be used to change the content of section headings.
|
---|
| 301 | -->
|
---|
| 302 | <!--
|
---|
| 303 | <gsf:template name="sectionHeading">
|
---|
| 304 | <xsl:call-template name="choose-title"/>
|
---|
| 305 | </gsf:template>
|
---|
| 306 | -->
|
---|
| 307 |
|
---|
| 308 | <!--
|
---|
| 309 | Overwriting this template can be used to change the content of the top-level section.
|
---|
| 310 | -->
|
---|
| 311 | <!--
|
---|
| 312 | <gsf:template name="topLevelSectionContent">
|
---|
| 313 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
| 314 | <xsl:call-template name="wrappedSectionText"/>
|
---|
| 315 | </gsf:template>
|
---|
| 316 | -->
|
---|
| 317 |
|
---|
| 318 | <!--
|
---|
| 319 | Overwriting this template can be used to change the content of sections.
|
---|
| 320 | -->
|
---|
| 321 |
|
---|
| 322 | <!--
|
---|
| 323 | <gsf:template name="sectionContent">
|
---|
| 324 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
| 325 | <xsl:call-template name="wrappedSectionText"/>
|
---|
| 326 | </gsf:template>
|
---|
| 327 | -->
|
---|
| 328 |
|
---|
| 329 | <xsl:template name="additionalHeaderContent">
|
---|
| 330 |
|
---|
| 331 |
|
---|
| 332 | <xsl:call-template name="soundmanager2-header"/>
|
---|
| 333 | <xsl:call-template name="js-mad-header"/>
|
---|
| 334 |
|
---|
| 335 | <!-- Bespoke jquery-ui extension for turnstyle open/close blocks -->
|
---|
| 336 | <gsf:style src="ext/jquery-ui-extra/turnstyle-block.css"/>
|
---|
| 337 | <gsf:script src="ext/jquery-ui-extra/turnstyle-block.js"/>
|
---|
| 338 |
|
---|
| 339 | <!-- The Javascript DSP files for computing chroma features in the browser -->
|
---|
| 340 | <xsl:call-template name="javascript-dsp-header"/>
|
---|
| 341 |
|
---|
| 342 |
|
---|
| 343 | <!-- Javascript support for running, sending input into, monitoring, and stopping Meandre flows -->
|
---|
| 344 | <gsf:script src="ext/meandre/meandre-controller.js"/>
|
---|
| 345 |
|
---|
| 346 | <gsf:style>
|
---|
| 347 | .metadata-stripes td { padding: 4px; }
|
---|
| 348 | .metadata-stripes tr:nth-child(odd) {background: #CCC}
|
---|
| 349 | .metadata-stripes tr:nth-child(even) {background: #FFF}
|
---|
| 350 |
|
---|
| 351 | .vis-heading { font-style:italic; }
|
---|
| 352 |
|
---|
| 353 | #rightSidebar { display: none; }
|
---|
| 354 | </gsf:style>
|
---|
| 355 |
|
---|
| 356 | </xsl:template>
|
---|
| 357 |
|
---|
| 358 |
|
---|
| 359 | <xsl:template name="documentContent">
|
---|
| 360 |
|
---|
| 361 | <!--
|
---|
| 362 | <xsl:call-template name="init-document-xsl-vars"/>
|
---|
| 363 | -->
|
---|
| 364 |
|
---|
| 365 | <!-- declare $httpCollection = $httpPath (for better consistency with other places in Greenstone XSL files) -->
|
---|
| 366 | <xsl:variable name="httpCollection">
|
---|
| 367 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
| 368 | </xsl:variable>
|
---|
| 369 |
|
---|
| 370 | <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
|
---|
| 371 | <xsl:variable name="Source"><gsf:metadata name="Source" select="root"/></xsl:variable>
|
---|
| 372 |
|
---|
| 373 | <gsf:variable name="cgiargFrameOffset">
|
---|
| 374 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameOffset']/@value"/>
|
---|
| 375 | </gsf:variable>
|
---|
| 376 |
|
---|
| 377 | <gsf:variable name="cgiargFrameLength">
|
---|
| 378 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
|
---|
| 379 | </gsf:variable>
|
---|
| 380 |
|
---|
| 381 | <xsl:variable name="cgiargYScaleSimImg"><xsl:choose>
|
---|
| 382 | <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>
|
---|
| 383 | <xsl:otherwise>0.5</xsl:otherwise>
|
---|
| 384 | </xsl:choose>
|
---|
| 385 | </xsl:variable>
|
---|
| 386 |
|
---|
| 387 | <!-- CAA = Content Analysis Algorithm -->
|
---|
| 388 | <xsl:variable name="cgiargCAAlgorithm">
|
---|
| 389 | <xsl:choose>
|
---|
| 390 | <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>
|
---|
| 391 | <xsl:otherwise>1</xsl:otherwise>
|
---|
| 392 | </xsl:choose>
|
---|
| 393 | </xsl:variable>
|
---|
| 394 |
|
---|
| 395 | <!-- *** -->
|
---|
| 396 | <!-- Main Audio Player -->
|
---|
| 397 | <!-- *** -->
|
---|
| 398 |
|
---|
| 399 | <div class="documenttext">
|
---|
| 400 |
|
---|
| 401 | <xsl:call-template name="audio-icon-cache"/>
|
---|
| 402 |
|
---|
| 403 | <ul class="playlist">
|
---|
| 404 | <li class="rounded" >
|
---|
| 405 |
|
---|
| 406 | <gsf:script src="{$httpCollection}/script2/hybrid-audio-player.js"/>
|
---|
| 407 |
|
---|
| 408 |
|
---|
| 409 | <a id="mysong" style="padding-bottom: 2px;"
|
---|
| 410 | onclick="togglePlayVisual(document.getElementById('mainPlayButton'))"
|
---|
| 411 | href="{$httpCollection}/index/assoc/{$assocFilePath}/doc.mp3">
|
---|
| 412 | <span>
|
---|
| 413 | <img id="mainPlayButton" src="ext/diy-audio-player/images/play32.png"
|
---|
| 414 | width="32"
|
---|
| 415 | height="32"
|
---|
| 416 | onmouseover="playHighlightOn(this)"
|
---|
| 417 | onmouseout="playHighlightOff(this)"
|
---|
| 418 | onclick="var event = arguments[0] || window.event; togglePlay(event,this)"
|
---|
| 419 | style="vertical-align: middle;"/>
|
---|
| 420 | Play/Pause
|
---|
| 421 | <span id="extraPlayText"></span>
|
---|
| 422 | </span>
|
---|
| 423 | </a>
|
---|
| 424 |
|
---|
| 425 | <gsf:script src="ext/diy-audio-player/script/audioDB-play.js"/>
|
---|
| 426 |
|
---|
| 427 | <xsl:choose>
|
---|
| 428 | <xsl:when test="($cgiargFrameOffset != '-1') and ($cgiargFrameOffset != '')">
|
---|
| 429 |
|
---|
| 430 | <div style="background-color: rgb(40%,40%,20%)">
|
---|
| 431 | <script type="text/javascript">
|
---|
| 432 | <xsl:text disable-output-escaping="yes">
|
---|
| 433 |
|
---|
| 434 | var frameOffsetStr=gs.variables.cgiargFrameOffset;
|
---|
| 435 | var frameLength=gs.variables.cgiargFrameLength;
|
---|
| 436 |
|
---|
| 437 | </xsl:text>
|
---|
| 438 | </script>
|
---|
| 439 |
|
---|
| 440 |
|
---|
| 441 | <svg xmlns="http://www.w3.org/2000/svg"
|
---|
| 442 | version="1.1"
|
---|
| 443 | id="svgAudioDBSegments"
|
---|
| 444 | width="100%" height="24"
|
---|
| 445 | onLoadXX="svgAudioDBInit()">
|
---|
| 446 | </svg>
|
---|
| 447 | </div>
|
---|
| 448 | </xsl:when>
|
---|
| 449 | </xsl:choose>
|
---|
| 450 |
|
---|
| 451 | <xsl:call-template name="structuredAudioPlayerBlock"/>
|
---|
| 452 |
|
---|
| 453 | <xsl:call-template name="processingPopup"/>
|
---|
| 454 |
|
---|
| 455 |
|
---|
| 456 | <div style="width: 100%; display: none;" id="doublePlay">
|
---|
| 457 |
|
---|
| 458 | <script type="text/javascript">
|
---|
| 459 | <xsl:text disable-output-escaping="yes">
|
---|
| 460 |
|
---|
| 461 | // At time of writing this code, this needs to be an OGG file to work in Firefox
|
---|
| 462 | var source = "</xsl:text><gsf:metadata name="Source" select="root"/><xsl:text disable-output-escaping="yes">";
|
---|
| 463 |
|
---|
| 464 | var self_sim_png = source.replace(/\.(ogg|mp3|wav)$/,".png");
|
---|
| 465 | var collect = "</xsl:text><xsl:value-of select="/page/pageResponse/collection/@name"/><xsl:text disable-output-escaping="yes">";
|
---|
| 466 |
|
---|
| 467 | </xsl:text>
|
---|
| 468 | </script>
|
---|
| 469 |
|
---|
| 470 | <gsf:script src="ext/diy-audio-player/script/similarity-matrix-play.js"/>
|
---|
| 471 |
|
---|
| 472 | <audio style="width: 49%;" id="leftsong" controls="controls" >
|
---|
| 473 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg" />
|
---|
| 474 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.mp3" />
|
---|
| 475 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav" />
|
---|
| 476 | </audio>
|
---|
| 477 | <audio style="width: 49%;" id="rightsong" controls="controls" >
|
---|
| 478 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg" />
|
---|
| 479 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.mp3" />
|
---|
| 480 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav" />
|
---|
| 481 | </audio>
|
---|
| 482 | </div>
|
---|
| 483 |
|
---|
| 484 |
|
---|
| 485 | <!-- Real Time Analysis (RTA) audio -->
|
---|
| 486 | <div style="width: 100%;">
|
---|
| 487 | <audio id="rta-audio-element" style="width: 100%;">
|
---|
| 488 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg"/>
|
---|
| 489 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.mp3"/>
|
---|
| 490 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav"/>
|
---|
| 491 | </audio>
|
---|
| 492 | </div>
|
---|
| 493 |
|
---|
| 494 | <xsl:call-template name="workflow-block"/>
|
---|
| 495 |
|
---|
| 496 | <div id="controlMarker"/>
|
---|
| 497 |
|
---|
| 498 | <div id="svg-canvas-overlay" style="position: relative">
|
---|
| 499 |
|
---|
| 500 | <!-- drawing canvas -->
|
---|
| 501 | <div style="width: 100%; position: absolute; left: 0px; top: 0px;">
|
---|
| 502 | <div style="position: relative">
|
---|
| 503 | <div>
|
---|
| 504 | <!-- **** better if 100% width, but issue with JS reading these values ??? -->
|
---|
| 505 | <canvas id="freq-plot"
|
---|
| 506 | width="941" height="494" style="background-color: #cccccc;"></canvas>
|
---|
| 507 | </div>
|
---|
| 508 | </div>
|
---|
| 509 | </div>
|
---|
| 510 |
|
---|
| 511 | <div style="width: 100%; position: absolute; left: 0px; top: 0px;">
|
---|
| 512 | <div style="position: relative">
|
---|
| 513 | <div>
|
---|
| 514 | <!-- **** better if 100% width, but issue with JS reading these values ??? -->
|
---|
| 515 | <canvas id="freq-plot-labels"
|
---|
| 516 | width="941" height="494" style="background-color: transparent"></canvas>
|
---|
| 517 | </div>
|
---|
| 518 | </div>
|
---|
| 519 | </div>
|
---|
| 520 |
|
---|
| 521 | <!-- left/right-mix circle cursor -->
|
---|
| 522 | <div style="background-color: transparent; position: relative; left: 0px; top: 0px;">
|
---|
| 523 | <svg xmlns="http://www.w3.org/2000/svg"
|
---|
| 524 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
| 525 | version="1.1"
|
---|
| 526 | id="svgSimilarityPlay"
|
---|
| 527 | width="100%"
|
---|
| 528 | onLoad="svgInitSimilarityPlay()">
|
---|
| 529 | <g id="simPlayLineGroup" transform="scale(1.0,{$cgiargYScaleSimImg})">
|
---|
| 530 | <!-- image loaded here, with yScaleSimImg applied to group -->
|
---|
| 531 | </g>
|
---|
| 532 | <g id="playtracker" transform="translate(0,0)"
|
---|
| 533 | onclick="dualPlay(evt)"
|
---|
| 534 | onmousemove="playTrackerMove(evt)"
|
---|
| 535 | onmouseout="playTrackerOff(evt)"
|
---|
| 536 | style="visibility: hidden">
|
---|
| 537 | <circle cx="0" cy="0" r="20"
|
---|
| 538 | stroke="black" stroke-width="1" fill="rgba(100%,100%,50%,0.7)" />
|
---|
| 539 | <circle cx="0" cy="0" r="1"
|
---|
| 540 | stroke="black" stroke-width="1" fill="black" />
|
---|
| 541 | <g transform="translate(-15,-15)" style="visibility: hidden;">
|
---|
| 542 | <image id="playtrackerBusy"
|
---|
| 543 | width="30" height="30"
|
---|
| 544 | xlink:href="ext/diy-audio-player/images/wait30trans.gif" />
|
---|
| 545 | </g>
|
---|
| 546 |
|
---|
| 547 | <g>
|
---|
| 548 | <g transform="rotate(-90)">
|
---|
| 549 | <g transform="translate(-20,-25)">
|
---|
| 550 | <text id="rightTime" style="font-size: 80%;">L: secs</text>
|
---|
| 551 | </g>
|
---|
| 552 | </g>
|
---|
| 553 | <g transform="translate(-20,30)">
|
---|
| 554 | <text id="leftTime" style="font-size: 80%;">R: secs</text>
|
---|
| 555 | </g>
|
---|
| 556 | </g>
|
---|
| 557 |
|
---|
| 558 | </g>
|
---|
| 559 | </svg>
|
---|
| 560 | </div>
|
---|
| 561 |
|
---|
| 562 |
|
---|
| 563 | </div><!-- end of svg-canvas-overly-->
|
---|
| 564 |
|
---|
| 565 | <xsl:call-template name="visualization-mode-block"/>
|
---|
| 566 |
|
---|
| 567 | </li>
|
---|
| 568 | </ul>
|
---|
| 569 |
|
---|
| 570 | <hr/>
|
---|
| 571 |
|
---|
| 572 | <xsl:call-template name="settings-form">
|
---|
| 573 | <xsl:with-param name="cgiargYScaleSimImg" select="$cgiargYScaleSimImg"/>
|
---|
| 574 | </xsl:call-template>
|
---|
| 575 |
|
---|
| 576 | <xsl:call-template name="computed-data">
|
---|
| 577 | <xsl:with-param name="httpCollection" select="$httpCollection"/>
|
---|
| 578 | <xsl:with-param name="assocFilePath" select="$assocFilePath"/>
|
---|
| 579 | </xsl:call-template>
|
---|
| 580 |
|
---|
| 581 |
|
---|
| 582 | <hr/>
|
---|
| 583 |
|
---|
| 584 | <script>
|
---|
| 585 | <xsl:text disable-output-escaping="yes">
|
---|
| 586 | useFancyPlayer = 1;
|
---|
| 587 |
|
---|
| 588 | /* if (window.location.toString().match(/fancyplayer/i)) { */
|
---|
| 589 | if (useFancyPlayer) {
|
---|
| 590 | PP_CONFIG.usePeakData = true;
|
---|
| 591 | PP_CONFIG.useEQData = true;
|
---|
| 592 | // PP_CONFIG.useFavIcon = true;
|
---|
| 593 | }
|
---|
| 594 |
|
---|
| 595 | function onFinishSP()
|
---|
| 596 | {
|
---|
| 597 | soundManager._onfinish();
|
---|
| 598 | togglePlayVisual(mainPlayButton);
|
---|
| 599 | }
|
---|
| 600 |
|
---|
| 601 | var mySoundObj;
|
---|
| 602 |
|
---|
| 603 | function playFromOffset(id,frameOffset)
|
---|
| 604 | {
|
---|
| 605 | var msecOffset = 250 * frameOffset;
|
---|
| 606 | idElem = document.getElementById(id);
|
---|
| 607 | pagePlayer.handleClick({target:idElem}); /* fake a click */
|
---|
| 608 | soundManager.stopAll();
|
---|
| 609 |
|
---|
| 610 | var options = {};
|
---|
| 611 | options.position = msecOffset;
|
---|
| 612 |
|
---|
| 613 | soundManager.play(id,options);
|
---|
| 614 |
|
---|
| 615 | togglePlayMode = "pause";
|
---|
| 616 | playHighlightOff(document.getElementById("mainPlayButton"),32);
|
---|
| 617 | }
|
---|
| 618 |
|
---|
| 619 | function preSubmit(form)
|
---|
| 620 | {
|
---|
| 621 | var currentPosElem = document.getElementById("mysongCurrentPos");
|
---|
| 622 | var offsetInMSecs = currentPosElem.getAttribute("offsetInMSecs");
|
---|
| 623 | var frameOffset = Math.round(offsetInMSecs/250.0);
|
---|
| 624 | form.elements["s1.offset"].value = frameOffset;
|
---|
| 625 |
|
---|
| 626 | //var lengthInSecs = document.getElementById("mysongWindowDuration").innerHTML;
|
---|
| 627 | var lengthInSecs = form.elements["mysongWindowDuration"].value;
|
---|
| 628 |
|
---|
| 629 | var frameLength = Math.round(lengthInSecs*1000/250.0);
|
---|
| 630 | form.elements["s1.length"].value = frameLength;
|
---|
| 631 |
|
---|
| 632 | return true;
|
---|
| 633 | }
|
---|
| 634 |
|
---|
| 635 | function searchSubmit(frameOffset)
|
---|
| 636 | {
|
---|
| 637 | var form = document.getElementById("QueryForm");
|
---|
| 638 |
|
---|
| 639 | form.elements["s1.offset"].value = frameOffset;
|
---|
| 640 |
|
---|
| 641 | //var lengthInSecs = document.getElementById("mysongWindowDuration").innerHTML;
|
---|
| 642 | var lengthInSecs = form.elements["mysongWindowDuration"].value;
|
---|
| 643 |
|
---|
| 644 | var frameLength = Math.round(lengthInSecs*1000/250.0);
|
---|
| 645 | form.elements["s1.length"].value = frameLength;
|
---|
| 646 |
|
---|
| 647 | form.submit();
|
---|
| 648 | }
|
---|
| 649 |
|
---|
| 650 |
|
---|
| 651 |
|
---|
| 652 | function rescaleImage()
|
---|
| 653 | {
|
---|
| 654 | var form = document.getElementById("RescaleForm");
|
---|
| 655 |
|
---|
| 656 | var rescaleSize = form.elements["ResizeScale"].value;
|
---|
| 657 |
|
---|
| 658 | var currentURL = document.location.toString();
|
---|
| 659 | var newURL;
|
---|
| 660 | if (currentURL.match(/p.yScaleSimImg=(\d+(?:\.\d+))/)) {
|
---|
| 661 | newURL = currentURL.replace(/p.yScaleSimImg=(\d+(?:\.\d+))/,"p.yScaleSimImg="+rescaleSize);
|
---|
| 662 | }
|
---|
| 663 | else {
|
---|
| 664 | var urlParts = currentURL.split("#");
|
---|
| 665 | newURL = urlParts.shift();
|
---|
| 666 | newURL += "&p.yScaleSimImg="+rescaleSize;
|
---|
| 667 | newURL += "#" + urlParts.join("#");
|
---|
| 668 | }
|
---|
| 669 |
|
---|
| 670 | document.location = newURL;
|
---|
| 671 | }
|
---|
| 672 |
|
---|
| 673 | function updateCAAlgorithm()
|
---|
| 674 | {
|
---|
| 675 |
|
---|
| 676 | var form = document.getElementById("UpdateCAForm");
|
---|
| 677 |
|
---|
| 678 | var caaMenu = form.elements["caAlgorithm"];
|
---|
| 679 |
|
---|
| 680 | var caIndexPos = caaMenu.options[caaMenu.selectedIndex].value
|
---|
| 681 |
|
---|
| 682 | var currentURL = document.location.toString();
|
---|
| 683 | var newURL;
|
---|
| 684 | if (currentURL.match(/p.caAlgorithm=(\d+)/)) {
|
---|
| 685 | newURL = currentURL.replace(/p.caAlgorithm=(\d+)/,"p.caAlgorithm="+caIndexPos);
|
---|
| 686 | }
|
---|
| 687 | else {
|
---|
| 688 | var urlParts = currentURL.split("#");
|
---|
| 689 | newURL = urlParts.shift();
|
---|
| 690 | newURL += "&p.caAlgorithm="+caIndexPos;
|
---|
| 691 | newURL += "#" + urlParts.join("#");
|
---|
| 692 | }
|
---|
| 693 |
|
---|
| 694 | document.location = newURL;
|
---|
| 695 |
|
---|
| 696 | }
|
---|
| 697 |
|
---|
| 698 |
|
---|
| 699 |
|
---|
| 700 | </xsl:text>
|
---|
| 701 |
|
---|
| 702 | </script>
|
---|
| 703 |
|
---|
| 704 |
|
---|
| 705 | </div>
|
---|
| 706 | </xsl:template>
|
---|
| 707 |
|
---|
| 708 |
|
---|
| 709 |
|
---|
| 710 |
|
---|
| 711 | </format>
|
---|
| 712 | </display>
|
---|
| 713 |
|
---|
| 714 | <replaceListRef id="gs2-standard"/>
|
---|
| 715 | <replaceListRef id="gs2-image" />
|
---|
| 716 | <serviceRackList>
|
---|
| 717 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
| 718 | <serviceRack name="OAIPMH">
|
---|
| 719 | <ListMetadataFormats>
|
---|
| 720 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
| 721 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
| 722 | -->
|
---|
| 723 | <metadataFormat metadataPrefix="oai_dc">
|
---|
| 724 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
| 725 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
| 726 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
| 727 | <!--<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>-->
|
---|
| 728 | <mappingList>
|
---|
| 729 | <!--
|
---|
| 730 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
| 731 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
| 732 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
| 733 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
| 734 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
| 735 |
|
---|
| 736 | **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.
|
---|
| 737 |
|
---|
| 738 | **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.
|
---|
| 739 | -->
|
---|
| 740 | <mapping>dc:title,Title</mapping>
|
---|
| 741 | <!-- 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. -->
|
---|
| 742 | </mappingList>
|
---|
| 743 | </metadataFormat>
|
---|
| 744 | </ListMetadataFormats>
|
---|
| 745 | </serviceRack>
|
---|
| 746 | </serviceRackList>
|
---|
| 747 | </CollectionConfig>
|
---|