source: main/trunk/model-cols/niupepa/etc/collectionConfig.xml@ 26341

Last change on this file since 26341 was 26341, checked in by kjdon, 12 years ago

indexoption xml changed, added rollover text to abstract/commentary links on doc page

File size: 13.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>
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">A sample of niupepa papers</displayItem>
10 <displayItem assigned="true" lang="en" name="name">niupepa: māori newspapers</displayItem>
11 </displayItemList>
12 <format>
13 <gsf:template name="choose-icon">
14 <gsf:switch>
15 <gsf:metadata name="DocType"/>
16 <gsf:when test="equals" test-value="Commentary">
17 <gsf:icon file="icomm.gif" select="collection"/>
18 </gsf:when>
19 <gsf:when test="equals" test-value="Abstract">
20 <gsf:icon file="iabstr.gif" select="collection"/>
21 </gsf:when>
22 <gsf:when test="equals" test-value="Niupepa">
23 <gsf:icon file="np.gif" select="collection"/>
24 </gsf:when>
25 <gsf:otherwise>
26 <gsf:icon type="document"/>
27 </gsf:otherwise>
28 </gsf:switch>
29 </gsf:template>
30 <gsf:template name="title-plain">
31 <gsf:choose-metadata>
32 <gsf:metadata name="Series" select="root"/>
33 <gsf:metadata name="Series"/>
34 </gsf:choose-metadata>
35 <xsl:text>: </xsl:text>
36 <gsf:switch>
37 <gsf:metadata name="Title" select="ancestors"/>
38 <gsf:when test="exists">
39 <gsf:metadata name="Title" select="ancestors"/><xsl:text>: </xsl:text>
40 </gsf:when>
41 </gsf:switch>
42 <gsf:metadata name="Title"/>
43 </gsf:template>
44 </format>
45 <search type="mgpp">
46 <level name="section">
47 <displayItem lang="en" name="name">section</displayItem>
48 </level>
49 <defaultLevel name="section"/>
50 <index name="text">
51 <displayItem lang="en" name="name">text</displayItem>
52 </index>
53 <defaultIndex name="text"/>
54 <indexOption name="accentfold" default="on"/>
55 <indexOption name="casefold" default="on"/>
56 <indexOption name="stem" default="off"/>
57 <indexSubcollection name="abstract,commentary,niupepa">
58 <displayItem lang="en" name="name">papers, commentaries and abstracts</displayItem>
59 <displayItem lang="mi" name="name">ngā niupepa, kupu whakataki, me ngā rāpopoto</displayItem>
60 </indexSubcollection>
61 <indexSubcollection name="niupepa">
62 <displayItem lang="en" name="name">newspapers</displayItem>
63 <displayItem lang="mi" name="name">ngā niupepa anake</displayItem>
64 </indexSubcollection>
65 <indexSubcollection name="commentary">
66 <displayItem lang="en" name="name">bibliographic commentaries</displayItem>
67 <displayItem lang="mi" name="name">ngā kupu whakataki anake</displayItem>0
68 </indexSubcollection>
69 <indexSubcollection name="abstract">
70 <displayItem lang="en" name="name">english abstracts</displayItem>
71 <displayItem lang="mi" name="name">ngā rāpopoto reo Pākehā anake</displayItem>
72 </indexSubcollection>
73 <subcollection filter="DocType/Commentary/" name="commentary"/>
74 <subcollection filter="DocType/Abstract/" name="abstract"/>
75 <subcollection filter="DocType/Niupepa/" name="niupepa"/>
76 <searchType name="plain"/>
77 <format>
78 <gsf:template name="title-with-link">
79 <gsf:choose-metadata>
80 <gsf:metadata name="Series" select="root"/>
81 <gsf:metadata name="Series"/>
82 </gsf:choose-metadata>
83 <xsl:text>: </xsl:text>
84 <gsf:switch>
85 <gsf:metadata name="Title" select="ancestors"/>
86 <gsf:when test="exists">
87 <gsf:metadata name="Title" select="ancestors"/><xsl:text>: </xsl:text>
88 </gsf:when>
89 </gsf:switch>
90 <gsf:link type="document">
91 <gsf:metadata name="Title"/>
92 </gsf:link>
93 </gsf:template>
94 <gsf:template match="documentNode">
95 <td valign="top">
96 <gsf:link type="document">
97 <xsl:call-template name="choose-icon"/>
98 </gsf:link>
99 </td>
100 <td>
101 <xsl:call-template name="title-with-link"/>
102 </td>
103 </gsf:template>
104 </format>
105 </search>
106 <infodb type="gdbm"/>
107 <import>
108 <pluginList>
109 <plugin name="ZIPPlugin"/>
110 <plugin name="GreenstoneXMLPlugin"/>
111 <plugin name="CommentaryPlugin"/>
112 <plugin name="NiupepaPlugin">
113 <option name="-enable_cache"/>
114 <option name="-OIDtype" value="filename"/>
115 <option name="-process_exp" value="\.item$"/>
116 <option name="-create_thumbnail" value="true"/>
117 <option name="-create_screenview" value="true"/>
118 </plugin>
119 <plugin name="AbstractPlugin"/>
120 <plugin name="MetadataXMLPlugin"/>
121 <plugin name="ArchivesInfPlugin"/>
122 <plugin name="DirectoryPlugin"/>
123 </pluginList>
124 </import>
125 <browse>
126 <classifier name="List">
127 <option name="-metadata" value="Series"/>
128 <option name="-sort_leaf_nodes_using" value="ex.Date"/>
129 <option name="-bookshelf_type" value="always"/>
130 <option name="-partition_type_within_level" value="none"/>
131 <option name="-filter_metadata" value="DocType"/>
132 <option name="-filter_regex" value="(?i)(niupepa|commentary)"/>
133 <format>
134 <gsf:template match="documentNode">
135 <td valign="top">
136 <gsf:switch>
137 <gsf:metadata name="abstract"/>
138 <gsf:when test="exists">
139 <gsf:link OIDmetadata="abstract" type="document">
140 <gsf:icon file="iabstr.gif" select="collection"/>
141 </gsf:link>
142 </gsf:when>
143 </gsf:switch>
144 </td>
145 <td valign="top">
146 <gsf:link type="document">
147 <xsl:call-template name="choose-icon"/>
148 </gsf:link>
149 </td>
150 <td valign="top">
151 <gsf:metadata name="Title"/>
152 <xsl:text> </xsl:text> <i><gsf:metadata format="formatDate" name="Date"/></i>
153 </td>
154 </gsf:template>
155 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
156 <td valign="top">
157 <gsf:link type="classifier">
158 <gsf:icon type="classifier"/>
159 </gsf:link>
160 </td>
161 <td valign="top">
162 <gsf:metadata name="Title"/>
163 <xsl:text> </xsl:text> <i>(<gsf:switch><gsf:metadata name="numleafdocs"/><gsf:when test="equals" test-value="1"><gsf:collectionText name="oneissue"/></gsf:when><gsf:otherwise><xsl:variable name="args"><gsf:metadata name="numleafdocs"/></xsl:variable><xsl:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, 'numissues', $args)"/></gsf:otherwise></gsf:switch>)</i>
164 </td>
165 </gsf:template>
166 </format>
167 </classifier>
168 <classifier name="DateList">
169 <option name="-metadata" value="Date"/>
170 <option name="-nogroup"/>
171 </classifier>
172 <format>
173 <gsf:template match="documentNode">
174 <td valign="top">
175 <gsf:switch>
176 <gsf:metadata name="abstract"/>
177 <gsf:when test="exists">
178 <gsf:link OIDmetadata="abstract" type="document">
179 <gsf:icon file="iabstr.gif" select="collection"/>
180 </gsf:link>
181 </gsf:when>
182 </gsf:switch>
183 </td>
184 <td valign="top">
185 <gsf:link type="document">
186 <xsl:call-template name="choose-icon"/>
187 </gsf:link>
188 </td>
189 <td valign="top">
190 <!--
191 Defined in the global format statement
192 -->
193 <xsl:call-template name="title-plain"/>
194 </td>
195 </gsf:template>
196 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
197 <td valign="top">
198 <gsf:link type="classifier">
199 <gsf:icon type="classifier"/>
200 </gsf:link>
201 </td>
202 <td valign="top">
203 <gsf:metadata name="Title"/>
204 </td>
205 </gsf:template>
206 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
207 <gsf:link type="classifier">
208 <gsf:metadata name="Title"/>
209 </gsf:link>
210 </gsf:template>
211 </format>
212 </browse>
213 <display>
214 <format>
215 <gsf:option name="TOC" value="true"/>
216 <xsl:template name="additionalHeaderContent">
217<!--
218this javascript is needed to get the #Biblio etc links in the commentaries to work
219-->
220 <script type="text/javascript">
221 <xsl:text disable-output-escaping="yes">$(window).load(function()
222{
223 var links = $("a");
224 for(var i = 0; i &lt; links.length; i++)
225 {
226 if($(links[i]).attr("href") &amp;&amp; $(links[i]).attr("href").match("^#"))
227 {
228 $(links[i]).attr("href", document.URL + $(links[i]).attr("href"));
229 }
230 }
231});</xsl:text>
232 </script>
233
234 <link rel="stylesheet" href="sites/{$site_name}/collect/{$collName}/style/style.css"/>
235 </xsl:template>
236<!--
237Overwriting this template allows you to change the heading of the document.
238-->
239
240 <gsf:template name="documentHeading">
241 <span style="font-weight:bold; font-size: 120%;">
242 <xsl:call-template name="title-plain"/>
243 <gsf:switch>
244 <gsf:metadata name="DocType"/>
245 <gsf:when test="equals" test-value="Abstract">
246 <xsl:text>: </xsl:text><gsf:collectionText name="abstract"/>
247 </gsf:when>
248 </gsf:switch>
249 </span>
250 <gsf:switch>
251 <gsf:metadata name="DocType"/>
252 <gsf:when test="equals" test-value="Abstract">
253 <div style="text-align:right;"><gsf:link type="page" page="abexpl" titlekey="abexpl.linktitle"><gsf:collectionText name="abexpl"/></gsf:link></div>
254</gsf:when>
255 </gsf:switch>
256 </gsf:template>
257<!--
258Overwriting 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.
259-->
260<!--
261<gsf:template name="documentContent">
262<xsl:call-template name="wrappedSectionImage"/>
263<xsl:call-template name="wrappedSectionText"/>
264</gsf:template>
265-->
266<!--
267Overwriting this template can be used to change the content of section headings.
268-->
269 <gsf:template name="sectionHeading">
270 <gsf:switch><gsf:metadata name="Series"/><gsf:when test="exists">
271 <xsl:call-template name="title-plain"/><xsl:text>. </xsl:text><gsf:metadata name="Date" format="formatDate"/>
272</gsf:when>
273<gsf:otherwise>
274 <gsf:metadata name="Title"/>
275</gsf:otherwise>
276</gsf:switch>
277 </gsf:template>
278
279 <gsf:template name="pageTitle">
280 <xsl:for-each select="/page/pageResponse/document/documentNode">
281 <xsl:call-template name="title-plain"/><xsl:text>. </xsl:text>
282 <gsf:metadata name="Date" format="formatDate"/>
283 </xsl:for-each>
284 </gsf:template>
285<!--
286Overwriting this template can be used to change the content of the top-level section.
287-->
288
289<gsf:template name="topLevelSectionContent">
290<div style="text-align:right;"><gsf:link type="document" OIDmetadata="abstract" titlekey="abstract.linktitle"><gsf:icon file="iabstr.gif" select="collection"/><gsf:collectionText name="abstract"/></gsf:link>, <gsf:link type="document" OIDmetadata="commentary" titlekey="commentary.linktitle"><gsf:icon file="icomm.gif" select="collection"/><gsf:collectionText name="commentary"/></gsf:link></div>
291</gsf:template>
292
293<!--
294Overwriting this template can be used to change the content of sections.
295-->
296<!--
297<gsf:template name="sectionContent">
298<xsl:call-template name="wrappedSectionImage"/>
299<xsl:call-template name="wrappedSectionText"/>
300</gsf:template>
301-->
302 </format>
303 </display>
304 <replaceListRef id="gs2-standard"/>
305 <replaceListRef id="gs2-image"/>
306 <replaceList>
307 <replace bundle="niupepa" key="vol" macro="_vol_" resolve="false" scope="metadata"/>
308 <replace bundle="niupepa" key="num" macro="_num_" resolve="false" scope="metadata"/>
309 <replace bundle="niupepa" key="commentary" macro="_commentary_" resolve="false" scope="metadata"/>
310 <replace bundle="niupepa" key="textbiblio" macro="_textbiblio_" resolve="false" scope="text"/>
311 <replace bundle="niupepa" key="textbackground" macro="_textbackground_" resolve="false" scope="text"/>
312 <replace bundle="niupepa" key="textsubmat" macro="_textsubmat_" resolve="false" scope="text"/>
313 <replace bundle="niupepa" key="textavail" macro="_textavail_" resolve="false" scope="text"/>
314 <replace macro="_httpdocument_&amp;cl=_cgiargcl_&amp;gg=prev&amp;d=" scope="text" text="_libraryname_/collection/_clustername_/document/" resolve="true"/>
315 </replaceList>
316 <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
317 <serviceRack name="OAIPMH">
318 <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
319 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
320 -->
321 <metadataFormat metadataPrefix="oai_dc">
322 <metadataPrefix>oai_dc</metadataPrefix>
323 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
324 <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>-->
325 <mappingList><!--
326 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
327 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
328 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
329 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
330 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
331
332 **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.
333
334 **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.
335 -->
336 <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. -->
337 </mappingList>
338 </metadataFormat>
339 </ListMetadataFormats>
340 </serviceRack>
341 </serviceRackList>
342</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.