source: main/trunk/model-cols/paradise-gardens/etc/collectionConfig - Copy.xml@ 26152

Last change on this file since 26152 was 26152, checked in by sjm84, 9 years ago

Adding the bulk of the collection

  • Property svn:executable set to *
File size: 14.8 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><metadata lang="en" name="creator"></metadata><metadata lang="en" name="maintainer"></metadata><metadata lang="en" name="public">true</metadata></metadataList><displayItemList><displayItem assigned="true" lang="en" name="description">
4
5&lt;style&gt;
6#projname { font-variant: small-caps;}
7&lt;/style&gt;
8
9&lt;h3&gt;Paradise Gardens&lt;/h3&gt;
10
11&lt;p&gt;Welcome to the &lt;span class=&quot;projname&quot;&gt;Tipple&lt;/span&gt; gateway to the
12Paradise Gardens, part the city of Hamilton&apos;s &lt;a
13href=&quot;http://en.wikipedia.org/wiki/Hamilton_Gardens&quot;&gt;Public
14Gardens&lt;/a&gt;, located in the Waikato region of New Zealand.
15&lt;/p&gt;
16
17&lt;p&gt;Through this web portal you can access information about various
18locations within the Paradise Gardens in your web
19browser&amp;mdash;however, there is no substitute for being there, and the
20&lt;i&gt;best&lt;/i&gt; way to experience this information is by walking around
21the gardens in person with this information available on your mobile
22phone through the &lt;a href=&quot;&quot;&gt;Tipple mobile app&lt;/a&gt;
23&lt;/p&gt;
24
25&lt;h3&gt;What is Tipple?&lt;/h3&gt;
26
27&lt;p&gt;&lt;span class=&quot;projname&quot;&gt;Tipple&lt;/span&gt; is research project at the
28Department of Computer Science, University of Waikato. In this
29project we are exploring the confluence of two forms of information
30source: a Tourist Information Provider (TIP) information system, and a
31spatially aware Digital Library (DL). We call the resulting hybrid,
32&lt;span class=&quot;projname&quot;&gt;Tipple&lt;/span&gt; as &apos;TipDL&apos; is a bit of a mouthful.
33&lt;/p&gt;
34
35&lt;p&gt;The nett result is a mobile applications that let&apos;s you know about
36places of interest, when you are nearby ...
37
38&lt;/p&gt;
39
40
41 </displayItem><displayItem assigned="true" lang="en" name="name">Paradise Gardens</displayItem></displayItemList><search type="lucene"><level name="document"><displayItem lang="en" name="name">document</displayItem></level><level name="section"><displayItem lang="en" name="name">section</displayItem></level><defaultLevel name="document"/><index name="text"><displayItem lang="en" name="name">text</displayItem></index><index name="Title"><displayItem lang="en" name="name">titles</displayItem></index><defaultIndex name="text"/><searchType name="plain"/><searchType name="simpleform"/><searchType name="advancedform"/><format>
42 <xsl:template name="additionalHeaderContent">
43 <meta content="initial-scale=1.0, user-scalable=no" name="viewport"/>
44 <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"><xsl:text> </xsl:text></script>
45 <script src="sites/localsite/collect/tipple-paradise-gardens/js/map-scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
46 <script type="text/javascript">window.onload = initialize;</script>
47 </xsl:template>
48
49 <gsf:template match="documentNode">
50 <td valign="top">
51 <gsf:link type="document">
52 <gsf:icon type="document"/>
53 </gsf:link>
54 </td>
55 <td>
56 <gsf:switch>
57 <gsf:metadata name="Title" select="ancestors" separator=": "/>
58 <gsf:when test="exists">
59 <gsf:metadata name="Title" select="ancestors" separator=": "/>:
60 </gsf:when>
61 </gsf:switch>
62 <gsf:link type="document">
63 <gsf:metadata name="Title"/>
64 </gsf:link>
65 </td>
66 <td style="padding-left:5px; padding-right:5px;" valign="top">
67 <a href="javascript:focusDocument('{@nodeID}');"><img src="sites/localsite/collect/tipple-paradise-gardens/images/map_marker.png"/></a>
68 </td>
69 <div style="display:none;">
70 <gsf:metadata name="Latitude"/>
71 <gsf:metadata name="Longitude"/>
72 </div>
73 </gsf:template>
74
75 <xsl:template name="resultsPage">
76 <div id="jsonNodes" style="display:none;">
77 <xsl:text>[</xsl:text>
78 <xsl:for-each select="//documentNode">
79 <xsl:text>{</xsl:text>
80 <xsl:text disable-output-escaping="yes">"nodeID":"</xsl:text><xsl:value-of select="@nodeID"/><xsl:text disable-output-escaping="yes">",</xsl:text>
81 <xsl:text disable-output-escaping="yes">"title":"</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/><xsl:text disable-output-escaping="yes">",</xsl:text>
82 <xsl:text disable-output-escaping="yes">"lat":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Latitude']"/><xsl:text>,</xsl:text>
83 <xsl:text disable-output-escaping="yes">"lng":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Longitude']"/>
84 <xsl:text>},</xsl:text>
85 </xsl:for-each>
86 <xsl:text>]</xsl:text>
87 </div>
88
89 <table style="width:100%;"><tbody><tr><td style="width:50%; vertical-align:top;">
90 <xsl:call-template name="displayTermInfo"/>
91 <xsl:call-template name="displayResults"/>
92 </td>
93 <td style="width:50%; vertical-align:top;">
94 <div id="map_canvas" style="margin:0px auto; width:450px; height:500px;"><xsl:text> </xsl:text></div>
95 </td></tr></tbody></table>
96 </xsl:template>
97 </format></search><infodb type="jdbm"/><import><pluginList><plugin name="ZIPPlugin"/><plugin name="GreenstoneXMLPlugin"/><plugin name="TextPlugin"/><plugin name="HTMLPlugin"><option name="-metadata_fields" value="Title,Longitude,Latitude,Radius"/></plugin><plugin name="EmailPlugin"/><plugin name="PDFPlugin"/><plugin name="RTFPlugin"/><plugin name="WordPlugin"/><plugin name="PostScriptPlugin"/><plugin name="PowerPointPlugin"/><plugin name="ExcelPlugin"/><plugin name="ImagePlugin"/><plugin name="ISISPlugin"/><plugin name="NulPlugin"/><plugin name="OAIPlugin"/><plugin name="MetadataXMLPlugin"/><plugin name="ArchivesInfPlugin"/><plugin name="DirectoryPlugin"/></pluginList></import><browse><classifier name="List"><option name="-metadata" value="dc.Title;Title"/><option name="-partition_type_within_level" value="approximate_size"/></classifier><format>
98 <xsl:template name="additionalHeaderContent">
99 <meta content="initial-scale=1.0, user-scalable=no" name="viewport"/>
100 <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"><xsl:text> </xsl:text></script>
101 <script src="sites/localsite/collect/tipple-paradise-gardens/js/map-scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
102 <script type="text/javascript">window.onload = function(){initialize();openStoredClassifiers();}</script>
103 </xsl:template>
104
105 <xsl:template match="/page/pageResponse">
106 <script src="interfaces/{$interface_name}/js/classifier_scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
107
108 <div id="jsonNodes" style="display:none;">
109 <xsl:text>[</xsl:text>
110 <xsl:for-each select="//documentNode">
111 <xsl:text>{</xsl:text>
112 <xsl:text disable-output-escaping="yes">"nodeID":"</xsl:text><xsl:value-of select="@nodeID"/><xsl:text disable-output-escaping="yes">",</xsl:text>
113 <xsl:text disable-output-escaping="yes">"title":"</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/><xsl:text disable-output-escaping="yes">",</xsl:text>
114 <xsl:text disable-output-escaping="yes">"lat":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Latitude']"/><xsl:text>,</xsl:text>
115 <xsl:text disable-output-escaping="yes">"lng":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Longitude']"/>
116 <xsl:text>},</xsl:text>
117 </xsl:for-each>
118 <xsl:text>]</xsl:text>
119 </div>
120
121 <table style="width:100%;"><tbody><tr><td style="width:50%; vertical-align:top;">
122 <div id="results">
123 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
124 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
125
126 <xsl:apply-templates select="classifier">
127 <xsl:with-param name="collName" select="$collName"/>
128 <xsl:with-param name="serviceName" select="$serviceName"/>
129 </xsl:apply-templates>
130 </div>
131 </td>
132 <td style="width:50%; vertical-align:top;">
133 <div id="map_canvas" style="margin:0px auto; width:450px; height:500px;"><xsl:text> </xsl:text></div>
134 </td></tr></tbody></table>
135 </xsl:template>
136
137 <gsf:template match="documentNode">
138 <div id="item{@nodeID}">
139 <td valign="top">
140 <gsf:link type="document">
141 <gsf:icon type="document"/>
142 </gsf:link>
143 </td>
144 <td valign="top">
145 <gsf:link type="source">
146 <gsf:choose-metadata>
147 <gsf:metadata name="thumbicon"/>
148 <gsf:metadata name="srcicon"/>
149 </gsf:choose-metadata>
150 </gsf:link>
151 </td>
152 <td valign="top">
153 <gsf:choose-metadata>
154 <gsf:metadata name="dc.Title"/>
155 <gsf:metadata name="exp.Title"/>
156 <gsf:metadata name="Title"/>
157 <gsf:default>Untitled</gsf:default>
158 </gsf:choose-metadata>
159 </td>
160 <td style="padding-left:5px; padding-right:5px;" valign="top">
161 <a href="javascript:focusDocument('{@nodeID}');"><img src="sites/localsite/collect/tipple-paradise-gardens/images/map_marker.png"/></a>
162 </td>
163 </div>
164 <div id="lat{@nodeID}" style="display:none;"><gsf:metadata name="Latitude"/></div>
165 <div id="lng{@nodeID}" style="display:none;"><gsf:metadata name="Longitude"/></div>
166 </gsf:template>
167
168 <gsf:template match="classifierNode">
169 <td class="classifierLink" valign="top">
170 <gsf:link type="classifier">
171 <gsf:icon type="classifier"/>
172 </gsf:link>
173 </td>
174 <td valign="top">
175 <gsf:link type="source">
176 <gsf:choose-metadata>
177 <gsf:metadata name="thumbicon"/>
178 <gsf:metadata name="srcicon"/>
179 </gsf:choose-metadata>
180 </gsf:link>
181 </td>
182 <td valign="top">
183 <gsf:choose-metadata>
184 <gsf:metadata name="dc.Title"/>
185 <gsf:metadata name="exp.Title"/>
186 <gsf:metadata name="Title"/>
187 <gsf:default>Untitled</gsf:default>
188 </gsf:choose-metadata>
189 <gsf:switch>
190 <gsf:metadata name="Source"/>
191 <gsf:when test="exists">
192 <br/><i>(<gsf:metadata name="Source"/>)</i>
193 </gsf:when>
194 </gsf:switch>
195 </td>
196 </gsf:template>
197
198 <gsf:template match="classifierNode" mode="horizontal">
199 <gsf:link type="horizontal">
200 <gsf:metadata name="Title"/>
201 </gsf:link>
202 </gsf:template>
203 </format></browse><display><format>
204 <gsf:option name="sideBar" value="false"/>
205 <xsl:template name="additionalHeaderContent">
206 <meta content="initial-scale=1.0, user-scalable=no" name="viewport"/>
207 <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"><xsl:text> </xsl:text></script>
208 <script src="sites/localsite/collect/tipple-paradise-gardens/js/map-scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
209 <script type="text/javascript">window.onload = initialize;</script>
210 </xsl:template>
211
212 <xsl:template match="documentNode" mode="document">
213 Find documents within <input id="distanceText" maxlength="5" size="4"/> km of here <button onclick="performDistanceSearch('{@nodeID}', document.getElementById('distanceText').innerHTML);">Search</button>
214
215 <div id="map_canvas" style="margin:0px auto; width:900px; height:500px;"><xsl:text> </xsl:text></div>
216
217 <div id="jsonNodes" style="display:none;">
218 <xsl:text>[</xsl:text>
219 <xsl:for-each select="//documentNode">
220 <xsl:text>{</xsl:text>
221 <xsl:text disable-output-escaping="yes">"nodeID":"</xsl:text><xsl:value-of select="@nodeID"/><xsl:text disable-output-escaping="yes">",</xsl:text>
222 <xsl:text disable-output-escaping="yes">"title":"</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/><xsl:text disable-output-escaping="yes">",</xsl:text>
223 <xsl:text disable-output-escaping="yes">"lat":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Latitude']"/><xsl:text>,</xsl:text>
224 <xsl:text disable-output-escaping="yes">"lng":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Longitude']"/>
225 <xsl:text>},</xsl:text>
226 </xsl:for-each>
227 <xsl:text>]</xsl:text>
228 </div>
229
230 <xsl:for-each select="nodeContent">
231 <xsl:for-each select="node()">
232 <xsl:choose>
233 <xsl:when test="not(name())">
234 <xsl:value-of disable-output-escaping="yes" select="."/>
235 </xsl:when>
236 <xsl:otherwise>
237 <xsl:apply-templates select="."/>
238 </xsl:otherwise>
239 </xsl:choose>
240 </xsl:for-each>
241 </xsl:for-each><xsl:text> </xsl:text>
242 </xsl:template>
243 </format></display><replaceListRef id="gs2-standard"/><replaceListRef id="gs2-image"/><serviceRackList>
244 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
245 <serviceRack name="OAIPMH">
246 <ListMetadataFormats>
247 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
248 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
249 -->
250 <metadataFormat metadataPrefix="oai_dc">
251 <metadataPrefix>oai_dc</metadataPrefix>
252 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
253 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
254 <!--<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>
255 -->
256 <mappingList>
257 <!--
258 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
259 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
260 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
261 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
262 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
263
264 **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.
265
266 **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.
267 -->
268 <mapping>dc.Title,Title</mapping>
269 <!-- 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. -->
270 </mappingList>
271 </metadataFormat>
272 </ListMetadataFormats>
273 </serviceRack>
274 </serviceRackList></CollectionConfig>
Note: See TracBrowser for help on using the repository browser.