source: main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml@ 33740

Last change on this file since 33740 was 33740, checked in by kjdon, 4 years ago

added a format statement to Titles classifier. This uses gsf:metadata pos=classifiedBy instead of choose-title template. As it is a titles list, we want to display the title teh document was classified by - in case of multiple titles

  • Property svn:keywords set to Author Date Id Revision
File size: 9.6 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" xmlns:gslib="http://www.greenstone.org/skinning">
3 <metadataList>
4 <metadata name="creator">**creator**</metadata>
5 <metadata name="maintainer">**maintainer**</metadata>
6 <metadata name="public">**public**</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" lang="en" name="name">**title**</displayItem>
10 <displayItem assigned="true" lang="en" name="description">**about**</displayItem>
11 <!-- shortDescription is used as a tooltip for collection icon on home page-->
12 <displayItem assigned="true" lang="en" name="shortDescription">**title**</displayItem>
13 </displayItemList>
14 <!-- Global format statement -->
15 <format>
16 <gsf:template name="choose-title">
17 <gsf:choose-metadata>
18 <gsf:metadata name="dc.Title"/>
19 <gsf:metadata name="exp.Title"/>
20 <gsf:metadata name="ex.dc.Title"/>
21 <gsf:metadata name="Title"/>
22 <gsf:default>Untitled</gsf:default>
23 </gsf:choose-metadata>
24 </gsf:template>
25 <!-- modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message -->
26 <xsl:template name="coll-description">
27 <p><gslib:collectionDescriptionTextAndServicesLinks/></p>
28 <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable>
29 <xsl:variable name="formatted_date"><xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/></xsl:variable>
30 <xsl:variable name="numdocs"><gslib:collectionMeta name="numDocs"/></xsl:variable>
31 <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/></p>
32 </xsl:template>
33 </format>
34 <search type="lucene">
35 <level name="document">
36 <displayItem lang="en" name="name">document</displayItem>
37 </level>
38 <level name="section">
39 <displayItem lang="en" name="name">section</displayItem>
40 </level>
41 <defaultLevel name="document"/>
42 <index name="text">
43 <displayItem lang="en" name="name">text</displayItem>
44 </index>
45 <index name="dc.Title,ex.dc.Title,Title">
46 <displayItem lang="en" name="name">titles</displayItem>
47 </index>
48 <index name="Source">
49 <displayItem lang="en" name="name">filenames</displayItem>
50 </index>
51 <defaultIndex name="text"/>
52 <sort name="rank">
53 <displayItem lang="en" name="name">rank</displayItem>
54 </sort>
55 <sort name="none">
56 <displayItem lang="en" name="name">natural (build) order</displayItem>
57 </sort>
58 <searchType name="plain"/>
59 <searchType name="simpleform"/>
60 <searchType name="advancedform"/>
61 <format>
62 <gsf:template match="documentNode">
63 <td valign="top">
64 <gsf:link type="document">
65 <gsf:icon type="document"/>
66 </gsf:link>
67 </td>
68 <td>
69 <gsf:link type="document">
70 <xsl:call-template name="choose-title"/>
71 </gsf:link>
72 </td>
73 </gsf:template>
74 </format>
75 </search>
76
77 <infodb type="jdbm"/>
78
79 <import>
80 <pluginList>
81 <plugin name="ZIPPlugin"/>
82 <plugin name="GreenstoneXMLPlugin"/>
83 <plugin name="TextPlugin"/>
84 <plugin name="HTMLPlugin"/>
85 <plugin name="EmailPlugin"/>
86 <plugin name="PDFv2Plugin"/>
87 <plugin name="RTFPlugin"/>
88 <plugin name="WordPlugin"/>
89 <plugin name="PostScriptPlugin"/>
90 <plugin name="PowerPointPlugin"/>
91 <plugin name="ExcelPlugin"/>
92 <plugin name="ImagePlugin"/>
93 <plugin name="ISISPlugin"/>
94 <plugin name="NulPlugin"/>
95 <plugin name="OAIPlugin"/>
96 <plugin name="MetadataXMLPlugin"/>
97 <plugin name="ArchivesInfPlugin"/>
98 <plugin name="DirectoryPlugin"/>
99 </pluginList>
100 </import>
101 <browse>
102 <classifier name="List">
103 <option name="-metadata" value="dc.Title,Title"/>
104 <option name="-partition_type_within_level" value="approximate_size"/>
105 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
106 <!-- only use one dc.Title/Title value. change to allvalues to use all of them -->
107 <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
108 <format>
109 <gsf:template match="documentNode">
110 <td valign="top">
111 <gsf:link type="document">
112 <gsf:icon type="document"/>
113 </gsf:link>
114 </td>
115 <td valign="top">
116 <gsf:link type="source">
117 <gsf:choose-metadata>
118 <gsf:metadata name="thumbicon"/>
119 <gsf:metadata name="srcicon"/>
120 </gsf:choose-metadata>
121 </gsf:link>
122 </td>
123 <td valign="top">
124 <gsf:link type="document">
125 <!-- Instead of using choose-title here, we want to display the title that the document was classified on -->
126 <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/>
127 <gsf:switch>
128 <gsf:metadata name="Source"/>
129 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
130 </gsf:switch>
131 </gsf:link>
132 </td>
133 </gsf:template>
134 </format>
135 </classifier>
136 <classifier name="List">
137 <option name="-metadata" value="Source"/>
138 <option name="-partition_type_within_level" value="approximate_size"/>
139 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
140 </classifier>
141 <format>
142 <gsf:template match="documentNode">
143 <td valign="top">
144 <gsf:link type="document">
145 <gsf:icon type="document"/>
146 </gsf:link>
147 </td>
148 <td valign="top">
149 <gsf:link type="source">
150 <gsf:choose-metadata>
151 <gsf:metadata name="thumbicon"/>
152 <gsf:metadata name="srcicon"/>
153 </gsf:choose-metadata>
154 </gsf:link>
155 </td>
156 <td valign="top">
157 <gsf:link type="document">
158 <!-- Defined in the global format statement -->
159 <xsl:call-template name="choose-title"/>
160 <gsf:switch>
161 <gsf:metadata name="Source"/>
162 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
163 </gsf:switch>
164 </gsf:link>
165 </td>
166 </gsf:template>
167 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
168 <td valign="top">
169 <gsf:link type="classifier" style="static">
170 <gsf:icon type="classifier"/>
171 </gsf:link>
172 </td>
173 <td valign="top">
174 <gsf:link type="classifier">
175 <gsf:metadata name="Title"/>
176 </gsf:link>
177 </td>
178 </gsf:template>
179 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
180 <gsf:link type="classifier" style="static">
181 <gsf:metadata name="Title"/>
182 </gsf:link>
183 </gsf:template>
184 </format>
185 </browse>
186 <display>
187 <format>
188 <gsf:option name="TOC" value="true"/>
189 <gsf:option name="allowUserComments" value="false"/>
190 <gsf:option name="allowDocumentEditing" value="true"/>
191 <gsf:option name="allowMapGPSEditing" value="true"/>
192 <!--
193 Overwriting this template allows you to change the heading of the document.
194 -->
195 <!--
196 <gsf:template name="documentHeading">
197 <span style="font-weight:bold; font-size: 120%;">
198 <xsl:call-template name="choose-title"/>
199 </span>
200 </gsf:template>
201 -->
202
203 <!--
204 Overwriting this template can be used to redefine the content of the whole document.
205 This is useful for simple documents, but not recommended for more complex documents
206 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
207 -->
208 <!--
209 <gsf:template name="documentContent">
210 <div id="gs-document">
211 <xsl:call-template name="documentPre"/>
212 <xsl:call-template name="wrappedSectionImage"/>
213 <div id="gs-document-text">
214 <xsl:call-template name="documentNodeText"/>
215 </div>
216 </div>
217 </gsf:template>
218 -->
219
220 <!--
221 Overwriting this template can be used to change the content of section headings.
222 -->
223 <!--
224 <gsf:template name="sectionHeading">
225 <xsl:call-template name="choose-title"/>
226 </gsf:template>
227 -->
228
229 <!--
230 Overwriting this template can be used to change the content of the top-level section.
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 <!--
240 Overwriting this template can be used to change the content of sections.
241 -->
242 <!--
243 <gsf:template name="sectionContent">
244 <xsl:call-template name="wrappedSectionImage"/>
245 <xsl:call-template name="wrappedSectionText"/>
246 </gsf:template>
247 -->
248 </format>
249 </display>
250 <replaceListRef id="gs2-standard"/>
251 <replaceListRef id="gs2-image" />
252 <serviceRackList>
253 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
254 <serviceRack name="RSSRetrieve"/>
255 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
256 <serviceRack name="OAIPMH">
257 <setName>**title**</setName>
258 <setDescription>**about**</setDescription>
259 <!-- uncomment the following and set the name attribute if
260 you want this collection to be part of a super set. -->
261 <!--<oaiSuperSet name="xxx"/>-->
262 <ListMetadataFormats>
263 <!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
264 <metadataFormat metadataPrefix="prefix"/> -->
265
266 <metadataFormat metadataPrefix="oai_dc">
267 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
268 </metadataFormat>
269 </ListMetadataFormats>
270 </serviceRack>
271 </serviceRackList>
272</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.