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="description">Digital Library collection demonstrating an interactive digital music stand. Music scores from the Mutopia Project</displayItem>
|
---|
10 | <displayItem assigned="true" lang="en" name="name">Digital Music Stand</displayItem>
|
---|
11 | <displayItem assigned="true" lang="en" name="text">text</displayItem>
|
---|
12 | <displayItem assigned="true" lang="en" name="mp.title">titles</displayItem>
|
---|
13 | <displayItem assigned="true" lang="en" name="mp.titleInitialLetter">initial letter</displayItem>
|
---|
14 | <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
|
---|
15 | <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
|
---|
16 | <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
|
---|
17 | <displayItem assigned="true" lang="en" name="document">document</displayItem>
|
---|
18 | <displayItem assigned="true" lang="en" name="section">page</displayItem>
|
---|
19 | </displayItemList>
|
---|
20 | <format/>
|
---|
21 | <search type="lucene">
|
---|
22 | <level name="document">
|
---|
23 | <displayItem lang="en" name="name">document</displayItem>
|
---|
24 | </level>
|
---|
25 | <level name="section">
|
---|
26 | <displayItem lang="en" name="name">page</displayItem>
|
---|
27 | </level>
|
---|
28 | <defaultLevel name="document"/>
|
---|
29 | <index name="text">
|
---|
30 | <displayItem lang="en" name="name">text</displayItem>
|
---|
31 | </index>
|
---|
32 | <index name="mp.title">
|
---|
33 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
34 | </index>
|
---|
35 | <index name="mp.titleInitialLetter">
|
---|
36 | <displayItem lang="en" name="name">initial letter</displayItem>
|
---|
37 | </index>
|
---|
38 | <defaultIndex name="mp.title"/>
|
---|
39 | <searchType name="plain"/>
|
---|
40 | <searchType name="simpleform"/>
|
---|
41 | <searchType name="advancedform"/>
|
---|
42 | <format>
|
---|
43 | <gsf:template match="documentNode">
|
---|
44 | <tr class="document">
|
---|
45 | <xsl:variable name="DocOID">
|
---|
46 | <xsl:value-of select="@nodeID"/>
|
---|
47 | </xsl:variable>
|
---|
48 | <xsl:variable name="httpCollection">
|
---|
49 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
50 | </xsl:variable>
|
---|
51 | <xsl:variable name="httpCollectionImages">
|
---|
52 | <xsl:value-of select="{$httpCollection}"/>/images
|
---|
53 | </xsl:variable>
|
---|
54 |
|
---|
55 | <xsl:variable name="assocFilePath">
|
---|
56 | <gsf:metadata name="assocfilepath"/>
|
---|
57 | </xsl:variable>
|
---|
58 | <xsl:variable name="FilenameRoot">
|
---|
59 | <gsf:metadata name="FilenameRoot"/>
|
---|
60 | </xsl:variable>
|
---|
61 | <xsl:variable name="NumPages">
|
---|
62 | <gsf:metadata name="NumPages" select="first"/>
|
---|
63 | </xsl:variable>
|
---|
64 | <xsl:variable name="MaxImageWidth">
|
---|
65 | <gsf:metadata name="MaxImageWidth"/>
|
---|
66 | </xsl:variable>
|
---|
67 | <xsl:variable name="MaxImageHeight">
|
---|
68 | <gsf:metadata name="MaxImageHeight"/>
|
---|
69 | </xsl:variable>
|
---|
70 | <td valign="top">
|
---|
71 | <a href="" onclick="return openMusicStand('{$DocOID}','{$FilenameRoot}','.png','{$NumPages}',{$MaxImageWidth},{$MaxImageHeight});">
|
---|
72 | <img src="{$httpCollection}/images/music-stand.png"/>
|
---|
73 | </a>
|
---|
74 | </td>
|
---|
75 | <td valign="top">
|
---|
76 | <a href="{$httpCollection}/index/assoc/{$assocFilePath}/doc.pdf">
|
---|
77 | <gsf:choose-metadata>
|
---|
78 | <gsf:metadata name="thumbicon"/>
|
---|
79 | <gsf:metadata name="srcicon"/>
|
---|
80 | </gsf:choose-metadata>
|
---|
81 | </a>
|
---|
82 | </td>
|
---|
83 | <td valign="top"><gsf:choose-metadata><gsf:metadata name="mp.title"/><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata>typeset by<gsf:metadata name="mp.composer"/><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td>
|
---|
84 | </tr>
|
---|
85 | </gsf:template>
|
---|
86 | </format>
|
---|
87 | </search>
|
---|
88 | <infodb type="jdbm"/>
|
---|
89 | <import>
|
---|
90 | <pluginList>
|
---|
91 | <plugin name="ZIPPlugin"/>
|
---|
92 | <plugin name="GreenstoneXMLPlugin">
|
---|
93 | <option name="-block_exp" value="(?i)(index\\.html?\\??.*)|(\\.log)|(\\-let\\.pdf)|(\\.ps\\.gz)|(\\.ps)|(\\.zip)|(\\-preview\\.png)|(\\.i?ly)|(\\.mid)|(\\.pbm)$"/>
|
---|
94 | </plugin>
|
---|
95 | <plugin name="TextPlugin"/>
|
---|
96 | <plugin name="HTMLPlugin"/>
|
---|
97 | <plugin name="EmailPlugin"/>
|
---|
98 | <plugin name="PDFPlugin">
|
---|
99 | <option name="-convert_to" value="pagedimg_png"/>
|
---|
100 | <option name="-associate_ext" value="ly,mid"/>
|
---|
101 | </plugin>
|
---|
102 | <plugin name="RTFPlugin"/>
|
---|
103 | <plugin name="WordPlugin"/>
|
---|
104 | <plugin name="PostScriptPlugin"/>
|
---|
105 | <plugin name="PowerPointPlugin"/>
|
---|
106 | <plugin name="ExcelPlugin"/>
|
---|
107 | <plugin name="ImagePlugin"/>
|
---|
108 | <plugin name="ISISPlugin"/>
|
---|
109 | <plugin name="NulPlugin"/>
|
---|
110 | <plugin name="OAIPlugin"/>
|
---|
111 | <plugin name="SimpleRDFMetadataPlugin"/>
|
---|
112 | <plugin name="MetadataXMLPlugin"/>
|
---|
113 | <plugin name="ArchivesInfPlugin"/>
|
---|
114 | <plugin name="DirectoryPlugin"/>
|
---|
115 | </pluginList>
|
---|
116 | </import>
|
---|
117 | <browse>
|
---|
118 | <classifier name="AZCompactList">
|
---|
119 | <option name="-metadata" value="mp.title"/>
|
---|
120 | <option name="-buttonname" value="titles a-z"/>
|
---|
121 | <option name="-mingroup" value="1"/>
|
---|
122 | <option name="-removeprefix" value="(The|Die|Das|Der|Le|La|Les)\\s+"/>
|
---|
123 | <option name="-removesuffix" value="\\s+(,|\\(.*?\\)|\\-\\s+.*?)"/>
|
---|
124 | </classifier>
|
---|
125 | <format>
|
---|
126 | <gsf:template match="documentNode">
|
---|
127 | <td valign="top">
|
---|
128 | <xsl:variable name="DocOID">
|
---|
129 | <xsl:value-of select="@nodeID"/>
|
---|
130 | </xsl:variable>
|
---|
131 | <xsl:variable name="httpCollection">
|
---|
132 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
133 | </xsl:variable>
|
---|
134 | <xsl:variable name="httpCollectionExternal">http://www.nzdl.org/greenstone3-nema/sites/localsite/collect/<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:variable>
|
---|
135 |
|
---|
136 | <xsl:variable name="assocFilePath">
|
---|
137 | <gsf:metadata name="assocfilepath"/>
|
---|
138 | </xsl:variable>
|
---|
139 | <xsl:variable name="FilenameRoot">
|
---|
140 | <gsf:metadata name="FilenameRoot"/>
|
---|
141 | </xsl:variable>
|
---|
142 | <xsl:variable name="NumPages">
|
---|
143 | <gsf:metadata name="NumPages" pos="first"/>
|
---|
144 | </xsl:variable>
|
---|
145 | <xsl:variable name="MaxImageWidth">
|
---|
146 | <gsf:metadata name="MaxImageWidth"/>
|
---|
147 | </xsl:variable>
|
---|
148 | <xsl:variable name="MaxImageHeight">
|
---|
149 | <gsf:metadata name="MaxImageHeight"/>
|
---|
150 | </xsl:variable>
|
---|
151 | <a href="" onclick="return openMusicStand('{$DocOID}','{$FilenameRoot}','.png','{$NumPages}',{$MaxImageWidth},{$MaxImageHeight});">
|
---|
152 | <img src="{$httpCollection}/images/music-stand.png"/>
|
---|
153 | </a>
|
---|
154 | </td>
|
---|
155 | <td valign="top">
|
---|
156 | <gsf:link type="source">
|
---|
157 | <gsf:choose-metadata>
|
---|
158 | <gsf:metadata name="thumbicon"/>
|
---|
159 | <gsf:metadata name="srcicon"/>
|
---|
160 | </gsf:choose-metadata>
|
---|
161 | </gsf:link>
|
---|
162 | </td>
|
---|
163 | <td valign="top"><gsf:choose-metadata><gsf:metadata name="mp.title"/><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata> by <gsf:metadata name="mp.composer"/><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td>
|
---|
164 | </gsf:template>
|
---|
165 | <gsf:template match="classifierNode">
|
---|
166 | <td valign="top">
|
---|
167 | <gsf:link type="classifier">
|
---|
168 | <gsf:icon type="classifier"/>
|
---|
169 | </gsf:link>
|
---|
170 | </td>
|
---|
171 | <td valign="top">
|
---|
172 | <gsf:link type="source">
|
---|
173 | <gsf:choose-metadata>
|
---|
174 | <gsf:metadata name="thumbicon"/>
|
---|
175 | <gsf:metadata name="srcicon"/>
|
---|
176 | </gsf:choose-metadata>
|
---|
177 | </gsf:link>
|
---|
178 | </td>
|
---|
179 | <td valign="top">
|
---|
180 | <gsf:choose-metadata>
|
---|
181 | <gsf:metadata name="dc.Title"/>
|
---|
182 | <gsf:metadata name="exp.Title"/>
|
---|
183 | <gsf:metadata name="Title"/>
|
---|
184 | <gsf:default>Untitled</gsf:default>
|
---|
185 | </gsf:choose-metadata>
|
---|
186 | <gsf:switch>
|
---|
187 | <gsf:metadata name="Source"/>
|
---|
188 | <gsf:when test="exists">
|
---|
189 | <br/>
|
---|
190 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
191 | </gsf:when>
|
---|
192 | </gsf:switch>
|
---|
193 | </td>
|
---|
194 | </gsf:template>
|
---|
195 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
196 | <gsf:link type="horizontal">
|
---|
197 | <gsf:metadata name="Title"/>
|
---|
198 | </gsf:link>
|
---|
199 | </gsf:template>
|
---|
200 |
|
---|
201 | <xsl:template name="additionalHeaderContent-collection">
|
---|
202 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/musicstand-util.js" />
|
---|
203 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/musicstand-open.js" />
|
---|
204 | </xsl:template>
|
---|
205 |
|
---|
206 |
|
---|
207 |
|
---|
208 |
|
---|
209 | </format>
|
---|
210 | </browse>
|
---|
211 | <display>
|
---|
212 | <format>
|
---|
213 | <gsf:metadata name="mp.title"/>
|
---|
214 | <gsf:metadata name="mp.composer"/>
|
---|
215 | <gsf:option name="TOC" value="false"/>
|
---|
216 | <xsl:template name="additionalHeaderContent-collection">
|
---|
217 | <!--
|
---|
218 | <xsl:template name="create-html-header">
|
---|
219 | <title><xsl:call-template name="pageTitle"/> ::<xsl:call-template name="siteName"/></title>
|
---|
220 | <link href="interfaces/{$interface_name}/style/core.css" rel="stylesheet" type="text/css"/>
|
---|
221 | <link href="favicon.ico" rel="shortcut icon"/>
|
---|
222 | <xsl:call-template name="setup-gs-variable"/>
|
---|
223 | -->
|
---|
224 | <xsl:variable name="httpCollection">
|
---|
225 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
226 | </xsl:variable>
|
---|
227 |
|
---|
228 | <gsf:variable name="httpCollectionImages"><xsl:value-of select="$httpCollection"/>/images</gsf:variable>
|
---|
229 |
|
---|
230 | <gsf:variable name="cgiParamPageWidth">
|
---|
231 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 'pageWidth']/@value"/>
|
---|
232 | </gsf:variable>
|
---|
233 | <gsf:variable name="cgiParamPageHeight">
|
---|
234 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 'pageHeight']/@value"/>
|
---|
235 | </gsf:variable>
|
---|
236 |
|
---|
237 |
|
---|
238 | <gsf:variable name="postitBgCol">
|
---|
239 | <xsl:choose>
|
---|
240 | <xsl:when test="/page/pageRequest/userContext/@uid = '1'">rgba(255,200,200,0.7)</xsl:when>
|
---|
241 | <xsl:otherwise>rgba(250,250,200,0.7)</xsl:otherwise>
|
---|
242 | </xsl:choose>
|
---|
243 | </gsf:variable>
|
---|
244 |
|
---|
245 | <gsf:variable name="postitSelCol">
|
---|
246 | <xsl:choose>
|
---|
247 | <xsl:when test="/page/pageRequest/userContext/@uid = '1'">rgba(128,0,0,0.7)</xsl:when>
|
---|
248 | <xsl:otherwise>rgba(150,110,0,0.7)</xsl:otherwise>
|
---|
249 | </xsl:choose>
|
---|
250 | </gsf:variable>
|
---|
251 |
|
---|
252 | <xsl:call-template name="init-direct-edit"/>
|
---|
253 |
|
---|
254 |
|
---|
255 | <!--
|
---|
256 | <xsl:if test="/page/pageRequest/userContext/@uid = '1'">
|
---|
257 | <script type="text/javascript">
|
---|
258 | // User is logged in
|
---|
259 | gs.username
|
---|
260 | <xsl:text disable-output-escaping="yes"> = "</xsl:text>
|
---|
261 | <xsl:value-of select="/page/pageRequest/userContext/@username"/>
|
---|
262 | <xsl:text disable-output-escaping="yes">";</xsl:text>
|
---|
263 | </script>
|
---|
264 | </xsl:if>
|
---|
265 | -->
|
---|
266 |
|
---|
267 |
|
---|
268 | <style>
|
---|
269 | #nextpagediv,#nextpage-lr-div {
|
---|
270 | position: absolute;
|
---|
271 | top:0px; left:0px;
|
---|
272 | width:<xsl:value-of select="$cgiParamPageWidth"/>px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
273 | z-index:3;
|
---|
274 | background-color:white;
|
---|
275 | clip:rect(0px<xsl:value-of select="$cgiParamPageWidth"/>px<xsl:value-of select="$cgiParamPageHeight"/>px 0px)
|
---|
276 | }
|
---|
277 |
|
---|
278 | #prevpagediv, #prevpage-lr-div {
|
---|
279 | position: absolute;
|
---|
280 | top:0px; left:0px;
|
---|
281 | width:<xsl:value-of select="$cgiParamPageWidth"/>px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
282 | z-index:3;
|
---|
283 | background-color:white;
|
---|
284 | clip:rect(0px<xsl:value-of select="$cgiParamPageWidth"/>px<xsl:value-of select="$cgiParamPageHeight"/>px 0px)
|
---|
285 | }
|
---|
286 |
|
---|
287 | #animedgebleed, #animedgebleed-lr {
|
---|
288 | position: absolute;
|
---|
289 | top:0px; left:0px;
|
---|
290 | width:<xsl:value-of select="$cgiParamPageWidth"/>px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
291 | z-index:2;
|
---|
292 | background-color:#800000;
|
---|
293 | clip:rect(0px<xsl:value-of select="$cgiParamPageWidth"/>px<xsl:value-of select="$cgiParamPageHeight"/>px 0px)
|
---|
294 | }
|
---|
295 |
|
---|
296 | #loading {
|
---|
297 | position: absolute;
|
---|
298 | top:0px; left:0px;
|
---|
299 | width:<xsl:value-of select="$cgiParamPageWidth"/>px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
300 | z-index:4;
|
---|
301 | display: block;
|
---|
302 | }
|
---|
303 |
|
---|
304 | #sliderbg {
|
---|
305 | position: absolute;
|
---|
306 | top:0px; left:0px;
|
---|
307 | width:20px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
308 | z-index:3;
|
---|
309 | background-color:#e0e0c0;
|
---|
310 | }
|
---|
311 |
|
---|
312 | #slidertrackOLD {
|
---|
313 | width: 1px; height:<xsl:value-of select="$cgiParamPageHeight"/>px;
|
---|
314 | }
|
---|
315 |
|
---|
316 | #sliderpos {
|
---|
317 | position: absolute;
|
---|
318 | top:0px; left:-8px;
|
---|
319 | z-index:5;
|
---|
320 | }
|
---|
321 |
|
---|
322 |
|
---|
323 | div.annotationNote {
|
---|
324 | position: absolute;
|
---|
325 | visibility: visible;
|
---|
326 | z-index: 2;
|
---|
327 | background: <xsl:value-of select="$postitBgCol"/>;
|
---|
328 | font-size: 10pt;
|
---|
329 | }
|
---|
330 |
|
---|
331 |
|
---|
332 | </style>
|
---|
333 |
|
---|
334 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/yui/yahoo/yahoo.js" />
|
---|
335 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/yui/event/event.js" />
|
---|
336 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/yui/dom/dom.js" />
|
---|
337 |
|
---|
338 |
|
---|
339 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/musicstand-util.js" />
|
---|
340 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/musicstand.js" />
|
---|
341 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/annotate.js" />
|
---|
342 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/musicstand-main.js" />
|
---|
343 | <gsf:script src="sites/{$site_name}/collect/{$collNameChecked}/script/annotate-main.js" />
|
---|
344 | </xsl:template>
|
---|
345 |
|
---|
346 | </format>
|
---|
347 | </display>
|
---|
348 |
|
---|
349 | <replaceListRef id="gs2-standard"/>
|
---|
350 | <replaceListRef id="gs2-image"/>
|
---|
351 | <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
352 | <serviceRack name="OAIPMH">
|
---|
353 | <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
354 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
355 | -->
|
---|
356 | <metadataFormat metadataPrefix="oai_dc">
|
---|
357 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
358 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
359 | <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>
|
---|
360 | -->
|
---|
361 | <mappingList><!--
|
---|
362 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
363 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
364 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
365 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
366 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
367 |
|
---|
368 | **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.
|
---|
369 |
|
---|
370 | **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.
|
---|
371 | -->
|
---|
372 | <mapping>dc.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. -->
|
---|
373 | </mappingList>
|
---|
374 | </metadataFormat>
|
---|
375 | </ListMetadataFormats>
|
---|
376 | </serviceRack>
|
---|
377 | </serviceRackList>
|
---|
378 | </CollectionConfig>
|
---|