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"></metadata>
|
---|
5 | <metadata lang="en" name="maintainer"></metadata>
|
---|
6 | <metadata lang="en" name="public">true</metadata>
|
---|
7 | </metadataList>
|
---|
8 | <displayItemList>
|
---|
9 | <displayItem assigned="true" lang="en" name="name">AMC-Essentia</displayItem>
|
---|
10 | <displayItem assigned="true" lang="en" name="description">
|
---|
11 | <p>
|
---|
12 | This collection shows the capabilities of the
|
---|
13 | <a href="https://essentia.upf.edu/documentation/">Essentia</a> DSP library
|
---|
14 | in combination with Greenstone3, based on the
|
---|
15 | 253 MP3 files from
|
---|
16 | <a href="https://www.australianmusiccentre.com.au/">AMC</a>
|
---|
17 | </p>
|
---|
18 |
|
---|
19 | <p>
|
---|
20 | When the digital library collection is built, Essentia is used to compute
|
---|
21 | a range of audio fetures commonly use in Music Information Retrieval (MIR) for
|
---|
22 | content analysis based techniques. These features are bound to
|
---|
23 | the document in the digital library correspondig to the source MP3 file.
|
---|
24 | </p>
|
---|
25 |
|
---|
26 | </displayItem>
|
---|
27 | </displayItemList>
|
---|
28 | <search type="lucene">
|
---|
29 | <level name="document">
|
---|
30 | <displayItem lang="en" name="name">document</displayItem>
|
---|
31 | </level>
|
---|
32 | <!--
|
---|
33 | <level name="section">
|
---|
34 | <displayItem lang="en" name="name">section</displayItem>
|
---|
35 | </level>
|
---|
36 | -->
|
---|
37 | <defaultLevel name="document"/>
|
---|
38 | <index name="dc.Title,dc.Creator,LastFM.LastFMArtistWikiSummary">
|
---|
39 | <displayItem lang="en" name="name">all fields</displayItem>
|
---|
40 | </index>
|
---|
41 | <index name="dc.Title">
|
---|
42 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
43 | </index>
|
---|
44 | <index name="dc.Creator">
|
---|
45 | <displayItem lang="en" name="name">artists</displayItem>
|
---|
46 | </index>
|
---|
47 | <defaultIndex name="dc.Title,dc.Creator,LastFM.LastFMArtistWikiSummary"/>
|
---|
48 | <searchType name="plain"/>
|
---|
49 | <searchType name="simpleform"/>
|
---|
50 | <searchType name="advancedform"/>
|
---|
51 | <format>
|
---|
52 | <gsf:template match="documentNode">
|
---|
53 | <td valign="top">
|
---|
54 | <gsf:link type="document">
|
---|
55 | <gsf:icon type="document"/>
|
---|
56 | </gsf:link>
|
---|
57 | </td>
|
---|
58 | <td>
|
---|
59 | <gsf:switch>
|
---|
60 | <gsf:metadata name="Title" select="ancestors" separator=": "/>
|
---|
61 | <gsf:when test="exists">
|
---|
62 | <gsf:metadata name="Title" select="ancestors" separator=": "/>:
|
---|
63 | </gsf:when>
|
---|
64 | </gsf:switch>
|
---|
65 | <gsf:link type="document">
|
---|
66 | <gsf:metadata name="Title"/>
|
---|
67 | </gsf:link>
|
---|
68 | </td>
|
---|
69 | </gsf:template>
|
---|
70 | </format>
|
---|
71 | </search>
|
---|
72 | <infodb type="jdbm"/>
|
---|
73 | <import>
|
---|
74 | <pluginList>
|
---|
75 | <plugin name="ZIPPlugin"/>
|
---|
76 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
77 |
|
---|
78 | <plugin name="EmbeddedMetadataPlugin"/>
|
---|
79 | <plugin name="AMCMetadataJSONPlugin"/>
|
---|
80 |
|
---|
81 | <plugin name="EssentiaPlugin">
|
---|
82 | <!--
|
---|
83 | <option name="-compute_mir_features" value="true"/>
|
---|
84 | -->
|
---|
85 |
|
---|
86 | <option name="-compute_essentia_features" value="true"/>
|
---|
87 | <!--
|
---|
88 | <option name="-retrieve_mir_metadata" value="true"/>
|
---|
89 | -->
|
---|
90 | <option name="-enable_cache"/>
|
---|
91 | </plugin>
|
---|
92 |
|
---|
93 | <plugin name="TextPlugin"/>
|
---|
94 | <plugin name="HTMLPlugin"/>
|
---|
95 | <plugin name="EmailPlugin"/>
|
---|
96 | <plugin name="PDFPlugin"/>
|
---|
97 | <plugin name="RTFPlugin"/>
|
---|
98 | <plugin name="WordPlugin"/>
|
---|
99 | <plugin name="PostScriptPlugin"/>
|
---|
100 | <plugin name="PowerPointPlugin"/>
|
---|
101 | <plugin name="ExcelPlugin"/>
|
---|
102 | <plugin name="ImagePlugin"/>
|
---|
103 | <plugin name="ISISPlugin"/>
|
---|
104 | <plugin name="NulPlugin"/>
|
---|
105 | <plugin name="MetadataXMLPlugin"/>
|
---|
106 | <plugin name="ArchivesInfPlugin"/>
|
---|
107 | <plugin name="DirectoryPlugin"/>
|
---|
108 | </pluginList>
|
---|
109 | </import>
|
---|
110 | <importOption name="OIDtype" value="assigned"/>
|
---|
111 | <importOption name="OIDmetadata" value="amc.id"/>
|
---|
112 |
|
---|
113 | <browse>
|
---|
114 |
|
---|
115 | <classifier name="AZCompactList">
|
---|
116 | <option name="-metadata" value="dc.Title;amc.title;ex.amc.title;Title"/>
|
---|
117 | <option name="-mingroup" value="2"/>
|
---|
118 | </classifier>
|
---|
119 | <classifier name="AZCompactList">
|
---|
120 | <option name="-metadata" value="dc.Creator,amc.artist,ex.amc.artist"/>
|
---|
121 | <option name="-buttonname" value="Artists"/>
|
---|
122 | <option name="-mingroup" value="1"/>
|
---|
123 | <option name="-minnesting" value="40"/>
|
---|
124 | </classifier>
|
---|
125 | <format>
|
---|
126 | <gsf:template match="documentNode">
|
---|
127 | <td valign="top">
|
---|
128 | <gsf:link type="document">
|
---|
129 | <gsf:icon type="document"/>
|
---|
130 | </gsf:link>
|
---|
131 | </td>
|
---|
132 | <td valign="top">
|
---|
133 | <gsf:link type="source">
|
---|
134 | <gsf:choose-metadata>
|
---|
135 | <gsf:metadata name="thumbicon"/>
|
---|
136 | <gsf:metadata name="srcicon"/>
|
---|
137 | </gsf:choose-metadata>
|
---|
138 | </gsf:link>
|
---|
139 | </td>
|
---|
140 | <td valign="top">
|
---|
141 | <gsf:link type="document">
|
---|
142 | <gsf:choose-metadata>
|
---|
143 | <gsf:metadata name="dc.Title"/>
|
---|
144 | <gsf:metadata name="amc.title"/>
|
---|
145 | <gsf:metadata name="exp.Title"/>
|
---|
146 | <gsf:metadata name="Title"/>
|
---|
147 | <gsf:default>Untitled</gsf:default>
|
---|
148 | </gsf:choose-metadata>
|
---|
149 | </gsf:link>
|
---|
150 | </td>
|
---|
151 | </gsf:template>
|
---|
152 | <gsf:template match="classifierNode">
|
---|
153 | <td valign="top">
|
---|
154 | <gsf:link type="classifier">
|
---|
155 | <gsf:icon type="classifier"/>
|
---|
156 | </gsf:link>
|
---|
157 | </td>
|
---|
158 | <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
|
---|
159 | <td valign="top">
|
---|
160 | <gsf:link type="source">
|
---|
161 | <gsf:choose-metadata>
|
---|
162 | <gsf:metadata name="thumbicon"/>
|
---|
163 | <gsf:metadata name="srcicon"/>
|
---|
164 | </gsf:choose-metadata>
|
---|
165 | </gsf:link>
|
---|
166 | </td>
|
---|
167 | <td valign="top">
|
---|
168 | <gsf:link type="classifier">
|
---|
169 | <gsf:choose-metadata>
|
---|
170 | <gsf:metadata name="dc.Title"/>
|
---|
171 | <gsf:metadata name="amc.title"/>
|
---|
172 | <gsf:metadata name="exp.Title"/>
|
---|
173 | <gsf:metadata name="Title"/>
|
---|
174 | <gsf:default>Untitled</gsf:default>
|
---|
175 | </gsf:choose-metadata>
|
---|
176 | </gsf:link>
|
---|
177 | <gsf:switch>
|
---|
178 | <gsf:metadata name="Source"/>
|
---|
179 | <gsf:when test="exists">
|
---|
180 | <br/>
|
---|
181 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
182 | </gsf:when>
|
---|
183 | </gsf:switch>
|
---|
184 | </td>
|
---|
185 | </gsf:template>
|
---|
186 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
187 | <gsf:link type="horizontal">
|
---|
188 | <gsf:metadata name="Title"/>
|
---|
189 | </gsf:link>
|
---|
190 | </gsf:template>
|
---|
191 | </format>
|
---|
192 | <!--
|
---|
193 |
|
---|
194 | <classifier name="List">
|
---|
195 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
196 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
197 | <option name="-removeprefix" value="""/>
|
---|
198 | </classifier>
|
---|
199 | <classifier name="AZCompactList">
|
---|
200 | <option name="-metadata" value="dc.Type.genre"/>
|
---|
201 | <option name="-buttonname" value="Genre"/>
|
---|
202 | </classifier>
|
---|
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:metadata name="srclink"/>
|
---|
212 | <gsf:choose-metadata>
|
---|
213 | <gsf:metadata name="thumbicon"/>
|
---|
214 | <gsf:metadata name="srcicon"/>
|
---|
215 | </gsf:choose-metadata>
|
---|
216 | <gsf:metadata name="/srclink"/>
|
---|
217 | </td>
|
---|
218 | <td valign="top">
|
---|
219 | <gsf:choose-metadata>
|
---|
220 | <gsf:metadata name="dc.Title"/>
|
---|
221 | <gsf:metadata name="exp.Title"/>
|
---|
222 | <gsf:metadata name="Title"/>
|
---|
223 | <gsf:default>Untitled</gsf:default>
|
---|
224 | </gsf:choose-metadata>
|
---|
225 | <gsf:switch>
|
---|
226 | <gsf:metadata name="Source"/>
|
---|
227 | <gsf:when test="exists">
|
---|
228 | <br/>
|
---|
229 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
230 | </gsf:when>
|
---|
231 | </gsf:switch>
|
---|
232 | </td>
|
---|
233 | </gsf:template>
|
---|
234 | <gsf:template match="classifierNode">
|
---|
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:metadata name="srclink"/>
|
---|
242 | <gsf:choose-metadata>
|
---|
243 | <gsf:metadata name="thumbicon"/>
|
---|
244 | <gsf:metadata name="srcicon"/>
|
---|
245 | </gsf:choose-metadata>
|
---|
246 | <gsf:metadata name="/srclink"/>
|
---|
247 | </td>
|
---|
248 | <td valign="top">
|
---|
249 | <gsf:choose-metadata>
|
---|
250 | <gsf:metadata name="dc.Title"/>
|
---|
251 | <gsf:metadata name="exp.Title"/>
|
---|
252 | <gsf:metadata name="Title"/>
|
---|
253 | <gsf:default>Untitled</gsf:default>
|
---|
254 | </gsf:choose-metadata>
|
---|
255 | <gsf:switch>
|
---|
256 | <gsf:metadata name="Source"/>
|
---|
257 | <gsf:when test="exists">
|
---|
258 | <br/><i>(<gsf:metadata name="Source"/>)</i>
|
---|
259 | </gsf:when>
|
---|
260 | </gsf:switch>
|
---|
261 | </td>
|
---|
262 | </gsf:template>
|
---|
263 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
264 | <gsf:link type="horizontal">
|
---|
265 | <gsf:metadata name="Title"/>
|
---|
266 | </gsf:link>
|
---|
267 | </gsf:template>
|
---|
268 | </format>
|
---|
269 | -->
|
---|
270 | </browse>
|
---|
271 |
|
---|
272 |
|
---|
273 | <display>
|
---|
274 | <format>
|
---|
275 | <gsf:option name="TOC" value="false"/>
|
---|
276 | <gsf:template name="documentHeading">
|
---|
277 | <!-- title will be dsiplayed in playbar at top of page, so supress showing title here -->
|
---|
278 | <gsf:script src="interfaces/{$interface_name}/js/direct-edit-source.js"/>
|
---|
279 | <xsl:call-template name="init-direct-edit"/>
|
---|
280 | </gsf:template>
|
---|
281 |
|
---|
282 | <gsf:template name="documentContentXXX">
|
---|
283 | <xsl:param name="collName"/>
|
---|
284 | <xsl:variable name="docID" select="@docID"/>
|
---|
285 | </gsf:template>
|
---|
286 |
|
---|
287 | <!--
|
---|
288 | <xsl:variable name="httpCollection"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/></xsl:variable>
|
---|
289 | -->
|
---|
290 |
|
---|
291 |
|
---|
292 |
|
---|
293 |
|
---|
294 |
|
---|
295 | <xsl:template name="documentContent">
|
---|
296 | <xsl:variable name="httpCollection">library/sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:variable>
|
---|
297 | <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
|
---|
298 |
|
---|
299 | <xsl:variable name="cgiargFrameOffset">
|
---|
300 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameOffset']/@value"/>
|
---|
301 | </xsl:variable>
|
---|
302 | <xsl:variable name="lastfmtrackurl">
|
---|
303 | <gsf:metadata name="dc.Identifier.lastfmtrackurl"/>
|
---|
304 | </xsl:variable>
|
---|
305 | <xsl:variable name="imageUrls">
|
---|
306 | <gsf:metadata multiple="true" name="EchoNest.Artist-RelatedImage" separator="&quot;, &quot;"/>
|
---|
307 | </xsl:variable>
|
---|
308 | <xsl:variable name="echonestid">
|
---|
309 | <gsf:metadata name="dc.Identifier"/>
|
---|
310 | </xsl:variable>
|
---|
311 |
|
---|
312 | <!--
|
---|
313 | <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
|
---|
314 | -->
|
---|
315 |
|
---|
316 | <div class="documenttext" style="padding-bottom: 20px; width:100%;">
|
---|
317 | <style>
|
---|
318 | .doc-metadata td { padding: 7px; }
|
---|
319 | </style>
|
---|
320 | <table class="doc-metadata">
|
---|
321 | <tbody>
|
---|
322 | <tr style="background-color:#eee">
|
---|
323 | <td>
|
---|
324 | Title
|
---|
325 | </td>
|
---|
326 | <td>
|
---|
327 | <gsf:metadata name="amc.title"/>
|
---|
328 | </td>
|
---|
329 | </tr>
|
---|
330 |
|
---|
331 | <tr style="background-color:#fff">
|
---|
332 | <td>Artist</td>
|
---|
333 | <td><gsf:metadata name="amc.artist"/></td>
|
---|
334 | </tr>
|
---|
335 |
|
---|
336 | <tr style="background-color:#eee">
|
---|
337 | <td>Essentia MFCC Features:</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/pessentia.json">Download</a></td>
|
---|
338 | </tr>
|
---|
339 | </tbody>
|
---|
340 | </table>
|
---|
341 | </div>
|
---|
342 |
|
---|
343 |
|
---|
344 | <div class="documenttext">
|
---|
345 |
|
---|
346 |
|
---|
347 | <div id="demo">
|
---|
348 | <div id="waveform">
|
---|
349 | <!-- Here be the waveform -->
|
---|
350 | <xsl:text> </xsl:text>
|
---|
351 | </div>
|
---|
352 | <div id="wave-timeline"><xsl:text> </xsl:text></div>
|
---|
353 | <div id="wave-spectrogram"><xsl:text> </xsl:text></div>
|
---|
354 | <div id="wave-harmonic-pitch-class-profile"><xsl:text> </xsl:text></div>
|
---|
355 |
|
---|
356 | <div>
|
---|
357 | <div class="controls">
|
---|
358 | <button class="btn btn-primary" data-action="play">
|
---|
359 | <i class="glyphicon glyphicon-play"></i>
|
---|
360 | Play /
|
---|
361 | <i class="glyphicon glyphicon-pause"></i>
|
---|
362 | Pause
|
---|
363 | </button>
|
---|
364 | </div>
|
---|
365 | </div>
|
---|
366 | </div>
|
---|
367 |
|
---|
368 | <gsf:variable name="mp3url"><xsl:value-of select="$httpCollection"/>/index/assoc/<xsl:value-of select="$assocFilePath"/>/audio.mp3</gsf:variable>
|
---|
369 |
|
---|
370 | <script src="ext/audio/wavesurfer-player.js">
|
---|
371 | <xsl:text> </xsl:text>
|
---|
372 | </script>
|
---|
373 | <gsf:script>
|
---|
374 | document.addEventListener('DOMContentLoaded', function() {
|
---|
375 | // Load audio from URL
|
---|
376 | wavesurfer.load(gs.variables.mp3url);
|
---|
377 | });
|
---|
378 | </gsf:script>
|
---|
379 | </div>
|
---|
380 | </xsl:template>
|
---|
381 |
|
---|
382 | </format>
|
---|
383 | </display>
|
---|
384 |
|
---|
385 | <replaceListRef id="gs2-standard"/>
|
---|
386 | <serviceRackList>
|
---|
387 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
388 | <serviceRack name="OAIPMH">
|
---|
389 | <ListMetadataFormats>
|
---|
390 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
391 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
392 | -->
|
---|
393 | <metadataFormat metadataPrefix="oai_dc">
|
---|
394 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
395 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
396 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
397 | <!--<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>
|
---|
398 | -->
|
---|
399 | <mappingList>
|
---|
400 | <!--
|
---|
401 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
402 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
403 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
404 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
405 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
406 |
|
---|
407 | **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.
|
---|
408 |
|
---|
409 | **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.
|
---|
410 | -->
|
---|
411 | <mapping>dc.Title,Title</mapping>
|
---|
412 | <!-- 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. -->
|
---|
413 | </mappingList>
|
---|
414 | </metadataFormat>
|
---|
415 | </ListMetadataFormats>
|
---|
416 | </serviceRack>
|
---|
417 | </serviceRackList>
|
---|
418 | </CollectionConfig>
|
---|