root/main/trunk/model-sites-dev/respooled/collect/popup-video-respooled/etc/collectionConfig.xml @ 29890

Revision 29890, 16.0 KB (checked in by davidb, 4 years ago)

Basic popup functionality added in (hard-wired for now)

  • Property svn:mime-type set to text/plain
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"/>
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="name">Popup Videos Respooled</displayItem>
10        <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,ex.ID3.Title,Title">titles</displayItem>
11        <displayItem assigned="true" lang="en" name="dc.Creator,ex.dc.Creator,ex.ID3.Artist,Artist">artist</displayItem>
12        <displayItem assigned="true" lang="en" name="salami.overlayNote">annotations</displayItem>
13        <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
14        <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
15        <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
16        <displayItem assigned="true" lang="en" name="document">document</displayItem>
17        <displayItem assigned="true" lang="en" name="section">section</displayItem>
18    </displayItemList>
19    <format>  <gsf:template name="choose-title">
20    <gsf:choose-metadata>
21      <gsf:metadata name="dc.Title"/>
22      <gsf:metadata name="exp.Title"/>
23      <gsf:metadata name="ex.dc.Title"/>
24      <gsf:metadata name="ex.ID3.Title"/>
25      <gsf:metadata name="ex.Title"/>
26      <gsf:metadata name="Title"/>
27      <gsf:default>Untitled</gsf:default>
28    </gsf:choose-metadata>
29    <gsf:switch>
30      <gsf:metadata name="dc.Creator"/>
31      <gsf:when test="exists">
32        <gsf:switch>
33          <gsf:metadata name="dc.Description"/>
34          <gsf:when test="notEquals" test-value="Unknown">
35 
36              <gsf:metadata name="dc.Description"/>
37
38          </gsf:when>
39        </gsf:switch>
40      </gsf:when>
41    </gsf:switch>
42  </gsf:template>
43
44</format>
45    <search type="lucene">
46        <level name="document">
47            <displayItem lang="en" name="name">document</displayItem>
48        </level>
49        <defaultLevel name="document"/>
50        <index name="dc.Title,ex.dc.Title,ex.ID3.Title,Title">
51            <displayItem lang="en" name="name">titles</displayItem>
52        </index>
53        <index name="dc.Creator,ex.dc.Creator,ex.ID3.Artist,Artist">
54            <displayItem lang="en" name="name">artist</displayItem>
55        </index>
56        <index name="salami.overlayNote">
57            <displayItem lang="en" name="name">annotations</displayItem>
58        </index>
59        <defaultIndex name="dc.Title,ex.dc.Title,ex.ID3.Title,Title"/>
60        <indexOption name="casefold"/>
61        <indexOption name="stem"/>
62        <searchType name="plain"/>
63        <searchType name="simpleform"/>
64        <searchType name="advancedform"/>
65        <format>
66            <gsf:template match="documentNode">
67                <gsf:variable name="cgiargFrameLength">
68                    <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
69                </gsf:variable>
70                <xsl:variable name="cgiargYScaleSimImg">
71                    <xsl:choose>
72                        <xsl:when test="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value != ''">
73                            <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value"/>
74                        </xsl:when>
75                        <xsl:otherwise>0.5</xsl:otherwise>
76                    </xsl:choose>
77                </xsl:variable>
78                <td valign="top">
79                    <gsf:icon type="document"/>
80                </td>
81                <td>
82                    <xsl:choose>
83                        <xsl:when test="@rank != 'NaN'">
84                            <script>if (gs.cgiParams.s ==<gsf:quot/>AudioQuery<gsf:quot/>) {
85              var rank=<xsl:value-of select="@rank"/>;
86              var perc=(rank-0.9)*100*10;
87              document.write(<gsf:quot/>(<gsf:quot/>+perc.toFixed(1)+<gsf:quot/>%)<gsf:quot/>);
88        }</script>
89                        </xsl:when>
90                    </xsl:choose>
91                    <xsl:choose>
92                        <xsl:when test="/page/pageResponse/service[@name='AudioQuery']">
93                            <a>
94                                <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"/>&amp;p.frameLength=<xsl:value-of select="/page/pageRequest/paramList/param[@name='s1.length']/@value"/>&amp;p.a=q&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;p.yScaleSimImg=<xsl:value-of select="$cgiargYScaleSimImg"/></xsl:attribute>
95                                <xsl:call-template name="choose-title"/>
96                            </a>
97                        </xsl:when>
98                        <xsl:otherwise>
99                            <gsf:link>
100                                <xsl:call-template name="choose-title"/>
101                            </gsf:link>
102                        </xsl:otherwise>
103                    </xsl:choose>
104                    <gsf:switch>
105                        <gsf:metadata name="artist"/>
106                        <gsf:when test="exists">by<gsf:metadata name="artist"/></gsf:when>
107                    </gsf:switch>
108                    <gsf:switch>
109                        <gsf:metadata name="js.LabelledStructure"/>
110                        <gsf:when test="exists">
111                            <br/>
112                            <i style="font-size: 80%">(Labelled structure:<gsf:metadata name="js.LabelledStructure"/>)</i>
113                        </gsf:when>
114                    </gsf:switch>
115                </td>
116            </gsf:template>
117        </format>
118    </search>
119    <infodb type="jdbm"/>
120    <import>
121        <pluginList>
122            <plugin name="ZIPPlugin"/>
123            <plugin name="GreenstoneXMLPlugin"/>
124            <plugin name="UnknownPlugin">
125                <option name="-process_exp" value="(i?)\.mp4$"/>
126                <option name="-OIDtype" value="hash_on_full_filename"/>
127                <option name="-file_rename_method" value="base64"/>
128            </plugin>
129            <plugin name="TextPlugin"/>
130            <plugin name="HTMLPlugin"/>
131            <plugin name="EmailPlugin"/>
132            <plugin name="PDFPlugin"/>
133            <plugin name="RTFPlugin"/>
134            <plugin name="WordPlugin"/>
135            <plugin name="PostScriptPlugin"/>
136            <plugin name="PowerPointPlugin"/>
137            <plugin name="ExcelPlugin"/>
138            <plugin name="ImagePlugin"/>
139            <plugin name="ISISPlugin"/>
140            <plugin name="NulPlugin"/>
141            <plugin name="OAIPlugin"/>
142            <plugin name="MetadataXMLPlugin"/>
143            <plugin name="ArchivesInfPlugin"/>
144            <plugin name="DirectoryPlugin"/>
145        </pluginList>
146    </import>
147    <browse>
148        <classifier name="AZCompactList">
149            <option name="-metadata" value="dc.Title;ex.dc.Title;ex.ID3.Title;Title"/>
150            <option name="-mingroup" value="2"/>
151            <option name="-removeprefix" value="(?i)Le|La|Les|The|A\\s+"/>
152        </classifier>
153        <classifier name="AZCompactList">
154            <option name="-metadata" value="dc.Creator;ex.dc.Creator;ex.ID3.Artist;Artist"/>
155            <option name="-buttonname" value="Artists"/>
156            <option name="-mingroup" value="1"/>
157            <option name="-minnesting" value="40"/>
158        </classifier>
159        <classifier name="AZCompactList">
160            <option name="-metadata" value="dc.Title.albumtitle"/>
161            <option name="-buttonname" value="Albums"/>
162            <option name="-mingroup" value="1"/>
163            <option name="-minnesting" value="40"/>
164        </classifier>
165        <format>
166            <gsf:template match="documentNode">
167                <td valign="top">
168                    <gsf:link type="document">
169                        <gsf:icon type="document"/>
170                    </gsf:link>
171                </td>
172<!--
173<td valign="top">
174                    <gsf:link type="source">
175                        <gsf:choose-metadata>
176                            <gsf:metadata name="thumbicon"/>
177                            <gsf:metadata name="srcicon"/>
178                        </gsf:choose-metadata>
179                    </gsf:link>
180                </td>
181-->
182                <td valign="top">
183                    <gsf:link type="document">
184<!--
185Defined in the global format statement
186-->
187                        <xsl:call-template name="choose-title"/>
188                        <gsf:switch>
189                            <gsf:metadata name="dc.Title"/>
190                            <gsf:when test="equals" test-value="Unknown">
191                                <br/>
192                                <i>(<gsf:metadata name="Source"/>)</i>
193                            </gsf:when>
194                        </gsf:switch>
195                    </gsf:link>
196                </td>
197            </gsf:template>
198            <gsf:template match="classifierNode[@classifierStyle = 'VList']">
199                <td valign="top">
200                    <gsf:link type="classifier">
201                        <gsf:icon type="classifier"/>
202                    </gsf:link>
203                </td>
204                <td valign="top">
205                    <gsf:link type="source">
206                        <gsf:choose-metadata>
207                            <gsf:metadata name="thumbicon"/>
208                            <gsf:metadata name="srcicon"/>
209                        </gsf:choose-metadata>
210                    </gsf:link>
211                </td>
212                <td valign="top">
213<!--
214Defined in the global format statement
215-->
216                    <xsl:call-template name="choose-title"/>
217                    <gsf:switch>
218                        <gsf:metadata name="Source"/>
219                        <gsf:when test="exists">
220                            <br/>
221                            <i>(<gsf:metadata name="Source"/>)</i>
222                        </gsf:when>
223                    </gsf:switch>
224                </td>
225            </gsf:template>
226            <gsf:template match="classifierNode[@classifierStyle = 'HList']">
227                <gsf:link type="classifier">
228                    <gsf:metadata name="Title"/>
229                </gsf:link>
230            </gsf:template>
231        </format>
232    </browse>
233    <display>
234        <format>  <gsf:option name="TOC" value="false"/>
235<!--
236Overwriting this template allows you to change the heading of the document.
237-->
238  <gsf:template name="documentHeading">
239    <gsf:metadata hidden="true" name="assocfilepath" select="root"/>
240    <xsl:variable name="httpCollection">
241      <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
242    </xsl:variable>
243<!--
244Metadata derived from finger-printing
245-->
246<!--
247<xsl:call-template name="discovery-block">
248<xsl:with-param name="httpCollection" select="$httpCollection"/>
249</xsl:call-template>
250-->
251    <h3>
252      <xsl:call-template name="choose-title"/>
253    </h3>
254  </gsf:template>
255<!--
256Overwriting this template can be used to redefine the content of the whole document. This is useful for simple documents, but not recommended for more complex documents (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
257-->
258<!--
259<gsf:template name="documentContent">
260<xsl:call-template name="wrappedSectionImage"/>
261<xsl:call-template name="wrappedSectionText"/>
262</gsf:template>
263-->
264<!--
265Overwriting this template can be used to change the content of section headings.
266-->
267<!--
268<gsf:template name="sectionHeading">
269<xsl:call-template name="choose-title"/>
270</gsf:template>
271-->
272<!--
273Overwriting this template can be used to change the content of the top-level section.
274-->
275<!--
276<gsf:template name="topLevelSectionContent">
277<xsl:call-template name="wrappedSectionImage"/>
278<xsl:call-template name="wrappedSectionText"/>
279</gsf:template>
280-->
281<!--
282Overwriting this template can be used to change the content of sections.
283-->
284<!--
285<gsf:template name="sectionContent">
286<xsl:call-template name="wrappedSectionImage"/>
287<xsl:call-template name="wrappedSectionText"/>
288</gsf:template>
289-->
290  <xsl:template name="additionalHeaderContent">
291    <gsf:variable name="httpCollection">
292      <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
293    </gsf:variable>
294    <gsf:script src="{$httpCollection}/js/pep.js"/>
295    <gsf:link src="{$httpCollection}/style/jtab-helper.css"/>
296    <gsf:script src="{$httpCollection}/js/raphael.js"/>
297    <gsf:script src="{$httpCollection}/js/jtab.js"/>
298<!--
299<xsl:call-template name="soundmanager2-header"/>
300<xsl:call-template name="js-mad-header"/>
301-->
302<!--
303Bespoke jquery-ui extension for turnstyle open/close blocks
304-->
305    <gsf:style src="ext/jquery-ui-extra/turnstyle-block.css"/>
306    <gsf:script src="ext/jquery-ui-extra/turnstyle-block.js"/>
307<!--
308The Javascript DSP files for computing chroma features in the browser
309-->
310    <xsl:call-template name="javascript-dsp-header"/>
311<!--
312Javascript support for running, sending input into, monitoring, and stopping Meandre flows
313-->
314<!--
315<gsf:script src="ext/meandre/meandre-controller.js"/>
316<gsf:style src="ext/photo-notes/PhotoNotes-1.5.css"/>
317<gsf:style src="ext/photo-notes/annotator.min.css"/>
318<gsf:script src="ext/photo-notes/BrowserDetect.js"/>
319<gsf:script src="ext/photo-notes/PhotoNotes-1.5.js"/>
320<gsf:script src="ext/photo-notes/main-ingest.js"/>
321<gsf:script src="ext/photo-notes/main-notes.js"/>
322<gsf:script src="{$httpCollection}/script2/main-play-notes.js"/>
323-->
324    <gsf:style src="{$httpCollection}/style/media-player.css"/>
325    <gsf:script src="{$httpCollection}/js/media-player.js"/>
326    <gsf:style src="{$httpCollection}/style/audiosynth.css"/>
327    <gsf:script src="{$httpCollection}/js/audiosynth.js"/>
328    <gsf:script src="{$httpCollection}/js/audiosynth.view.js"/>
329    <gsf:script src="{$httpCollection}/js/in-the-groove.js"/>
330    <gsf:script src="{$httpCollection}/js/jquery-drums.js"/>
331    <gsf:style src="{$httpCollection}/style/jam-guitar.css"/>
332    <gsf:script src="{$httpCollection}/js/jam-guitar.js"/>
333    <gsf:script src="{$httpCollection}/js/game-on.js"/>
334
335    <gsf:style  src="{$httpCollection}/js/jquery.qtip.min.css"/>
336    <gsf:script src="{$httpCollection}/js/jquery.qtip.min.js"/>
337    <gsf:script src="{$httpCollection}/js/qtip-popups.js"/>
338<!--
339MIDI.js library
340-->
341    <gsf:script src="{$httpCollection}/js/midi/inc/shim/Base64.js"/>
342    <gsf:script src="{$httpCollection}/js/midi/inc/shim/Base64binary.js"/>
343    <gsf:script src="{$httpCollection}/js/midi/inc/shim/WebAudioAPI.js"/>
344<!--
345midi.js package
346-->
347    <gsf:script src="{$httpCollection}/js/midi/audioDetect.js"/>
348    <gsf:script src="{$httpCollection}/js/midi/gm.js"/>
349    <gsf:script src="{$httpCollection}/js/midi/loader.js"/>
350    <gsf:script src="{$httpCollection}/js/midi/plugin.audiotag.js"/>
351    <gsf:script src="{$httpCollection}/js/midi/plugin.webaudio.js"/>
352    <gsf:script src="{$httpCollection}/js/midi/plugin.webmidi.js"/>
353<!--
354utils
355-->
356    <gsf:script src="{$httpCollection}/js/midi/util/dom_request_xhr.js"/>
357    <gsf:script src="{$httpCollection}/js/midi/util/dom_request_script.js"/>
358    <gsf:script src="{$httpCollection}/js/respool-midi.js"/>
359    <gsf:style>.metadata-stripes td { padding: 4px; } .metadata-stripes tr:nth-child(odd) {background: #CCC} .metadata-stripes tr:nth-child(even) {background: #FFF} .vis-heading { font-style:italic; } #rightSidebar { display: none; } #gs_content { border: 0px; margin-top: 10px; min-height: 600px; padding: 0px 10px 10px; }</gsf:style>
360  </xsl:template>
361
362</format>
363    </display>
364    <replaceListRef id="gs2-standard"/>
365    <replaceListRef id="gs2-image"/>
366    <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
367        <serviceRack name="OAIPMH">
368            <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
369        The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
370    -->
371                <metadataFormat metadataPrefix="oai_dc">
372                    <metadataPrefix>oai_dc</metadataPrefix>
373                    <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
374                    <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>-->
375                    <mappingList><!--
376         The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
377         The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
378         searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
379         number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
380         if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
381         
382         **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.
383         
384         **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.
385        -->
386                        <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. -->
387                    </mappingList>
388                </metadataFormat>
389            </ListMetadataFormats>
390        </serviceRack>
391    </serviceRackList>
392    <importOptions>
393        <option name="OIDtype" value="hash_on_full_filename"/>
394    </importOptions>
395</CollectionConfig>
Note: See TracBrowser for help on using the browser.