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

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

changed a bit of formatting, edited it in GLI so lots of indentation has changed

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