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

Last change on this file since 33475 was 33475, checked in by kjdon, 5 years ago

added numeric partition defaults to match partition type

  • Property svn:keywords set to Author Date Id Revision
File size: 7.7 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 </format>
26 <search type="lucene">
27 <level name="document">
28 <displayItem lang="en" name="name">document</displayItem>
29 </level>
30 <level name="section">
31 <displayItem lang="en" name="name">section</displayItem>
32 </level>
33 <defaultLevel name="document"/>
34 <index name="text">
35 <displayItem lang="en" name="name">text</displayItem>
36 </index>
37 <index name="dc.Title,ex.dc.Title,Title">
38 <displayItem lang="en" name="name">titles</displayItem>
39 </index>
40 <index name="Source">
41 <displayItem lang="en" name="name">filenames</displayItem>
42 </index>
43 <defaultIndex name="text"/>
44 <sort name="rank">
45 <displayItem lang="en" name="name">rank</displayItem>
46 </sort>
47 <sort name="none">
48 <displayItem lang="en" name="name">natural (build) order</displayItem>
49 </sort>
50 <searchType name="plain"/>
51 <searchType name="simpleform"/>
52 <searchType name="advancedform"/>
53 <format>
54 <gsf:template match="documentNode">
55 <td valign="top">
56 <gsf:link type="document">
57 <gsf:icon type="document"/>
58 </gsf:link>
59 </td>
60 <td>
61 <gsf:link type="document">
62 <xsl:call-template name="choose-title"/>
63 </gsf:link>
64 </td>
65 </gsf:template>
66 </format>
67 </search>
68
69 <infodb type="jdbm"/>
70
71 <import>
72 <pluginList>
73 <plugin name="ZIPPlugin"/>
74 <plugin name="GreenstoneXMLPlugin"/>
75 <plugin name="TextPlugin"/>
76 <plugin name="HTMLPlugin"/>
77 <plugin name="EmailPlugin"/>
78 <plugin name="PDFv2Plugin"/>
79 <plugin name="RTFPlugin"/>
80 <plugin name="WordPlugin"/>
81 <plugin name="PostScriptPlugin"/>
82 <plugin name="PowerPointPlugin"/>
83 <plugin name="ExcelPlugin"/>
84 <plugin name="ImagePlugin"/>
85 <plugin name="ISISPlugin"/>
86 <plugin name="NulPlugin"/>
87 <plugin name="OAIPlugin"/>
88 <plugin name="MetadataXMLPlugin"/>
89 <plugin name="ArchivesInfPlugin"/>
90 <plugin name="DirectoryPlugin"/>
91 </pluginList>
92 </import>
93 <browse>
94 <classifier name="List">
95 <option name="-metadata" value="dc.Title;Title"/>
96 <option name="-partition_type_within_level" value="approximate_size"/>
97 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
98 </classifier>
99 <classifier name="List">
100 <option name="-metadata" value="Source"/>
101 <option name="-partition_type_within_level" value="approximate_size"/>
102 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
103 </classifier>
104 <format>
105 <gsf:template match="documentNode">
106 <td valign="top">
107 <gsf:link type="document">
108 <gsf:icon type="document"/>
109 </gsf:link>
110 </td>
111 <td valign="top">
112 <gsf:link type="source">
113 <gsf:choose-metadata>
114 <gsf:metadata name="thumbicon"/>
115 <gsf:metadata name="srcicon"/>
116 </gsf:choose-metadata>
117 </gsf:link>
118 </td>
119 <td valign="top">
120 <gsf:link type="document">
121 <!-- Defined in the global format statement -->
122 <xsl:call-template name="choose-title"/>
123 <gsf:switch>
124 <gsf:metadata name="Source"/>
125 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
126 </gsf:switch>
127 </gsf:link>
128 </td>
129 </gsf:template>
130 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
131 <td valign="top">
132 <gsf:link type="classifier" style="static">
133 <gsf:icon type="classifier"/>
134 </gsf:link>
135 </td>
136 <td valign="top">
137 <gsf:link type="classifier">
138 <gsf:metadata name="Title"/>
139 </gsf:link>
140 </td>
141 </gsf:template>
142 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
143 <gsf:link type="classifier" style="static">
144 <gsf:metadata name="Title"/>
145 </gsf:link>
146 </gsf:template>
147 </format>
148 </browse>
149 <display>
150 <format>
151 <gsf:option name="TOC" value="true"/>
152 <gsf:option name="AllowUserComments" value="false"/>
153 <!--
154 Overwriting this template allows you to change the heading of the document.
155 -->
156 <!--
157 <gsf:template name="documentHeading">
158 <span style="font-weight:bold; font-size: 120%;">
159 <xsl:call-template name="choose-title"/>
160 </span>
161 </gsf:template>
162 -->
163
164 <!--
165 Overwriting this template can be used to redefine the content of the whole document.
166 This is useful for simple documents, but not recommended for more complex documents
167 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
168 -->
169 <!--
170 <gsf:template name="documentContent">
171 <div id="gs-document">
172 <xsl:call-template name="documentPre"/>
173 <xsl:call-template name="wrappedSectionImage"/>
174 <div id="gs-document-text">
175 <xsl:call-template name="documentNodeText"/>
176 </div>
177 </div>
178 </gsf:template>
179 -->
180
181 <!--
182 Overwriting this template can be used to change the content of section headings.
183 -->
184 <!--
185 <gsf:template name="sectionHeading">
186 <xsl:call-template name="choose-title"/>
187 </gsf:template>
188 -->
189
190 <!--
191 Overwriting this template can be used to change the content of the top-level section.
192 -->
193 <!--
194 <gsf:template name="topLevelSectionContent">
195 <xsl:call-template name="wrappedSectionImage"/>
196 <xsl:call-template name="wrappedSectionText"/>
197 </gsf:template>
198 -->
199
200 <!--
201 Overwriting this template can be used to change the content of sections.
202 -->
203 <!--
204 <gsf:template name="sectionContent">
205 <xsl:call-template name="wrappedSectionImage"/>
206 <xsl:call-template name="wrappedSectionText"/>
207 </gsf:template>
208 -->
209 </format>
210 </display>
211 <replaceListRef id="gs2-standard"/>
212 <replaceListRef id="gs2-image" />
213 <serviceRackList>
214 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
215 <serviceRack name="RSSRetrieve"/>
216 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
217 <serviceRack name="OAIPMH">
218 <setName>**title**</setName>
219 <setDescription>**about**</setDescription>
220 <!-- uncomment the following and set the name attribute if
221 you want this collection to be part of a super set. -->
222 <!--<oaiSuperSet name="xxx"/>-->
223 <ListMetadataFormats>
224 <!--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:
225 <metadataFormat metadataPrefix="prefix"/> -->
226
227 <metadataFormat metadataPrefix="oai_dc">
228 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
229 </metadataFormat>
230 </ListMetadataFormats>
231 </serviceRack>
232 </serviceRackList>
233</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.