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

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

a small subset of niupepa plus all the config files for building and development of the collection

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