source: main/trunk/model-sites-dev/mars/collect/cosi-slac/etc/collectionConfig.xml@ 30449

Last change on this file since 30449 was 30449, checked in by davidb, 8 years ago

Tidy up on rogue quote bookshelf icon

File size: 10.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <metadataList>
4 <metadata lang="en" name="creator"></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">cosi-slac</displayItem>
10 <displayItem assigned="true" lang="en" name="description">
11 &lt;p&gt;
12 This collection shows the capabilities of
13 &lt;a href="http://jmir.sourceforge.net/jAudio.html"&gt;jAudio&lt;/a&gt;
14 and
15 &lt;a href="http://jmir.sourceforge.net/jSongMiner.html"&gt;jSongMiner&lt;/a&gt;
16 in combination with Greenstone3, based on the
17 250 MP3 files from the
18 &lt;a href="http://jmir.sourceforge.net/Codaich.html"&gt;SLAC&lt;/a&gt;
19 (Symbolic Lyrical Audio Cultural) dataset which&#x2014;broadly speaking&#x2014;spans
20 5 broad genre, with 50 examples of each:
21 &lt;ul&gt;
22 &lt;li&gt;Modern Blues and Traditional Blues;
23 &lt;li&gt;Baroque and Romantic;
24 &lt;li&gt;Bebop and Swing;
25 &lt;li&gt;Hardcore Rap and Pop Rap; and
26 &lt;li&gt;Alternative Rock and Metal.
27 &lt;/ul&gt;
28 &lt;/p&gt;
29
30 &lt;p&gt;
31 When the digital library collection is built, jAudio is used to compute
32 a range of audio fetures commonly
33 used in the field of Music Information Retrieval (MIR). These features are bound to
34 the document in the digital library correspondig to the source MP3 file. Similarly,
35 jSongMiner is used to undertake audio-fingerprinting of the source MP3 files, and
36 seek out matches at sites such as LastFM and EchoNest. Again, the results of
37 this process (a rich set of metadata about a song) is bound into the digital
38 library collection.
39 &lt;/p&gt;
40
41 </displayItem>
42 </displayItemList>
43 <search type="lucene">
44 <level name="document">
45 <displayItem lang="en" name="name">document</displayItem>
46 </level>
47 <level name="section">
48 <displayItem lang="en" name="name">section</displayItem>
49 </level>
50 <defaultLevel name="document"/>
51 <index name="text">
52 <displayItem lang="en" name="name">text</displayItem>
53 </index>
54 <index name="Title">
55 <displayItem lang="en" name="name">titles</displayItem>
56 </index>
57 <index name="Source">
58 <displayItem lang="en" name="name">filenames</displayItem>
59 </index>
60 <defaultIndex name="text"/>
61 <searchType name="plain"/>
62 <searchType name="simpleform"/>
63 <searchType name="advancedform"/>
64 <format>
65 <gsf:template match="documentNode">
66 <td valign="top">
67 <gsf:link type="document">
68 <gsf:icon type="document"/>
69 </gsf:link>
70 </td>
71 <td>
72 <gsf:switch>
73 <gsf:metadata name="Title" select="ancestors" separator=": "/>
74 <gsf:when test="exists">
75 <gsf:metadata name="Title" select="ancestors" separator=": "/>:
76 </gsf:when>
77 </gsf:switch>
78 <gsf:link type="document">
79 <gsf:metadata name="Title"/>
80 </gsf:link>
81 </td>
82 </gsf:template>
83 </format>
84 </search>
85 <infodb type="jdbm"/>
86 <import>
87 <pluginList>
88 <plugin name="ZIPPlugin"/>
89 <plugin name="GreenstoneXMLPlugin"/>
90
91 <plugin name="EmbeddedMetadataPlugin"/>
92
93 <plugin name="MusicIRPlugin">
94 <option name="-compute_mir_features" value="true"/>
95 <option name="-retrieve_mir_metadata" value="true"/>
96 <option name="-enable_cache"/>
97 </plugin>
98
99 <plugin name="TextPlugin"/>
100 <plugin name="HTMLPlugin"/>
101 <plugin name="EmailPlugin"/>
102 <plugin name="PDFPlugin"/>
103 <plugin name="RTFPlugin"/>
104 <plugin name="WordPlugin"/>
105 <plugin name="PostScriptPlugin"/>
106 <plugin name="PowerPointPlugin"/>
107 <plugin name="ExcelPlugin"/>
108 <plugin name="ImagePlugin"/>
109 <plugin name="ISISPlugin"/>
110 <plugin name="NulPlugin"/>
111 <plugin name="MetadataXMLPlugin"/>
112 <plugin name="ArchivesInfPlugin"/>
113 <plugin name="DirectoryPlugin"/>
114 </pluginList>
115 </import>
116 <browse>
117 <classifier name="List">
118 <option name="-metadata" value="dc.Title;Title"/>
119 <option name="-partition_type_within_level" value="approximate_size"/>
120 <option name="-removeprefix" value="&quot;"/>
121 </classifier>
122 <classifier name="AZCompactList">
123 <option name="-metadata" value="dc.Type.genre"/>
124 <option name="-buttonname" value="Genre"/>
125 </classifier>
126 <format>
127 <gsf:template match="documentNode">
128 <td valign="top">
129 <gsf:link type="document">
130 <gsf:icon type="document"/>
131 </gsf:link>
132 </td>
133 <td valign="top">
134 <gsf:metadata name="srclink"/>
135 <gsf:choose-metadata>
136 <gsf:metadata name="thumbicon"/>
137 <gsf:metadata name="srcicon"/>
138 </gsf:choose-metadata>
139 <gsf:metadata name="/srclink"/>
140 </td>
141 <td valign="top">
142 <gsf:choose-metadata>
143 <gsf:metadata name="dc.Title"/>
144 <gsf:metadata name="exp.Title"/>
145 <gsf:metadata name="Title"/>
146 <gsf:default>Untitled</gsf:default>
147 </gsf:choose-metadata>
148 <gsf:switch>
149 <gsf:metadata name="Source"/>
150 <gsf:when test="exists">
151 <br/>
152 <i>(<gsf:metadata name="Source"/>)</i>
153 </gsf:when>
154 </gsf:switch>
155 </td>
156 </gsf:template>
157 <gsf:template match="classifierNode">
158 <td valign="top">
159 <gsf:link type="classifier">
160 <gsf:icon type="classifier"/>
161 </gsf:link>
162 </td>
163 <td valign="top">
164 <gsf:metadata name="srclink"/>
165 <gsf:choose-metadata>
166 <gsf:metadata name="thumbicon"/>
167 <gsf:metadata name="srcicon"/>
168 </gsf:choose-metadata>
169 <gsf:metadata name="/srclink"/>
170 </td>
171 <td valign="top">
172 <gsf:choose-metadata>
173 <gsf:metadata name="dc.Title"/>
174 <gsf:metadata name="exp.Title"/>
175 <gsf:metadata name="Title"/>
176 <gsf:default>Untitled</gsf:default>
177 </gsf:choose-metadata>
178 <gsf:switch>
179 <gsf:metadata name="Source"/>
180 <gsf:when test="exists">
181 <br/><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 </browse>
193 <display>
194 <format>
195 <gsf:option name="TOC" value="false"/>
196
197 <xsl:template name="documentContent">
198
199 <xsl:variable name="httpCollection"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/></xsl:variable>
200
201 <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
202
203 <xsl:variable name="lastfmtrackurl">
204 <gsf:metadata name="dc.Identifier.lastfmtrackurl"/>
205 </xsl:variable>
206
207 <xsl:variable name="echonestid">
208 <gsf:metadata name="dc.Identifier"/>
209 </xsl:variable>
210
211 <div class="documenttext">
212
213<table>
214 <tbody>
215 <tr style="background-color:#afa">
216 <td>
217 Title
218 </td>
219 <td>
220 <gsf:metadata name="dc.Title"/>
221 </td>
222 </tr>
223
224 <tr style="background-color:#ffa">
225 <td>Album Title</td>
226 <td><gsf:metadata name="dc.Title.albumtitle"/></td>
227 </tr>
228
229 <tr style="background-color:#afa">
230 <td>Artist</td>
231 <td><gsf:metadata name="dc.Creator"/></td>
232 </tr>
233
234 <tr style="background-color:#ffa" valign='top'>
235 <td>Artist Summary</td>
236 <td><i><gsf:metadata name="LastFM.LastFMArtistWikiSummary"/></i></td>
237 </tr>
238
239 <tr style="background-color:#afa">
240 <td>Identifier</td>
241 <td>
242 <gsf:metadata name="dc.Identifier"/><br />
243
244 <xsl:copy-of select="$lastfmtrackurl"/><br />
245 (<a href="{$lastfmtrackurl}" target="#lastfm">Visit @ LastFM</a>)
246 </td>
247 </tr>
248
249 <tr style="background-color:#ffa">
250 <td>jAudio Features</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jaudio.xml">download ACE XML feature values file</a></td>
251 </tr>
252
253 <tr style="background-color:#afa">
254 <td>jSongMiner Metadata</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jsongminer.xml">download ACE XML classifications file</a></td>
255 </tr>
256
257
258
259
260 </tbody>
261</table>
262
263 </div>
264 </xsl:template>
265
266
267 </format>
268
269 </display>
270
271
272 <replaceListRef id="gs2-standard"/>
273 <serviceRackList>
274 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
275 <serviceRack name="OAIPMH">
276 <ListMetadataFormats>
277 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
278 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
279 -->
280 <metadataFormat metadataPrefix="oai_dc">
281 <metadataPrefix>oai_dc</metadataPrefix>
282 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
283 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
284 <!--<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>
285 -->
286 <mappingList>
287 <!--
288 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
289 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
290 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
291 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
292 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
293
294 **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.
295
296 **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.
297 -->
298 <mapping>dc.Title,Title</mapping>
299 <!-- 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. -->
300 </mappingList>
301 </metadataFormat>
302 </ListMetadataFormats>
303 </serviceRack>
304 </serviceRackList>
305</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.