1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" 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 lang="en" name="name">T-Shirts</displayItem>
|
---|
10 | <displayItem lang="en" name="shortDescription">tshirts</displayItem>
|
---|
11 | </displayItemList>
|
---|
12 | <format>
|
---|
13 | <gsf:option name="allowGreenbugEditing" value="false"/>
|
---|
14 | <gsf:template name="choose-title">
|
---|
15 | <gsf:choose-metadata>
|
---|
16 | <gsf:metadata name="dc.Title"/>
|
---|
17 | <gsf:metadata name="exp.Title"/>
|
---|
18 | <gsf:metadata name="ex.dc.Title"/>
|
---|
19 | <gsf:metadata name="Title"/>
|
---|
20 | <gsf:default>Untitled</gsf:default>
|
---|
21 | </gsf:choose-metadata>
|
---|
22 | </gsf:template>
|
---|
23 | <!--
|
---|
24 | modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message
|
---|
25 | -->
|
---|
26 | <xsl:template name="coll-description">
|
---|
27 | <p>
|
---|
28 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
29 | </p>
|
---|
30 | <xsl:variable name="raw_date">
|
---|
31 | <gslib:collectionMeta name="buildDate"/>
|
---|
32 | </xsl:variable>
|
---|
33 | <xsl:variable name="formatted_date">
|
---|
34 | <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
|
---|
35 | </xsl:variable>
|
---|
36 | <xsl:variable name="numdocs">
|
---|
37 | <gslib:collectionMeta name="numDocs"/>
|
---|
38 | </xsl:variable>
|
---|
39 | <p>
|
---|
40 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
|
---|
41 | </p>
|
---|
42 | </xsl:template>
|
---|
43 | </format>
|
---|
44 | <search type="lucene">
|
---|
45 | <index name="text">
|
---|
46 | <displayItem lang="en" name="name">text</displayItem>
|
---|
47 | </index>
|
---|
48 | <index name="dc.Title,ex.dc.Title,Title">
|
---|
49 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
50 | </index>
|
---|
51 | <index name="Source">
|
---|
52 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
53 | </index>
|
---|
54 | <defaultIndex name="text"/>
|
---|
55 | <level name="document">
|
---|
56 | <displayItem lang="en" name="name">document</displayItem>
|
---|
57 | </level>
|
---|
58 | <level name="section">
|
---|
59 | <displayItem lang="en" name="name">section</displayItem>
|
---|
60 | </level>
|
---|
61 | <defaultLevel name="document"/>
|
---|
62 | <sort name="rank">
|
---|
63 | <displayItem lang="en" name="name">rank</displayItem>
|
---|
64 | </sort>
|
---|
65 | <sort name="none">
|
---|
66 | <displayItem lang="en" name="name">natural (build) order</displayItem>
|
---|
67 | </sort>
|
---|
68 | <searchType name="plain"/>
|
---|
69 | <searchType name="simpleform"/>
|
---|
70 | <searchType name="advancedform"/>
|
---|
71 | <format>
|
---|
72 | <gsf:template match="documentNode">
|
---|
73 | <td valign="top">
|
---|
74 | <gsf:link type="document">
|
---|
75 | <gsf:icon type="document"/>
|
---|
76 | </gsf:link>
|
---|
77 | </td>
|
---|
78 | <td>
|
---|
79 | <gsf:link type="document">
|
---|
80 | <xsl:call-template name="choose-title"/>
|
---|
81 | </gsf:link>
|
---|
82 | </td>
|
---|
83 | </gsf:template>
|
---|
84 | </format>
|
---|
85 | </search>
|
---|
86 | <infodb type="jdbm"/>
|
---|
87 | <import>
|
---|
88 | <pluginList>
|
---|
89 | <plugin name="ZIPPlugin"/>
|
---|
90 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
91 | <plugin name="GoogleVisionImagePlugin">
|
---|
92 | <option name="-enable_image_ocr"/>
|
---|
93 | <option name="-enable_cache"/>
|
---|
94 | <option name="-create_thumbnail" value="true"/>
|
---|
95 | <option name="-create_screenview" value="true"/>
|
---|
96 | </plugin>
|
---|
97 | <plugin name="TextPlugin"/>
|
---|
98 | <plugin name="HTMLPlugin"/>
|
---|
99 | <plugin name="EmailPlugin"/>
|
---|
100 | <plugin name="PDFv2Plugin"/>
|
---|
101 | <plugin name="UnknownConverterPlugin">
|
---|
102 | <option name="-exec_cmd" value="java -jar %%GSDLHOME/ext/tika/tika-app.jar --html --pretty-print --encoding=UTF-8 %%INPUT_FILE > %%OUTPUT"/>
|
---|
103 | <option name="-convert_to" value="html"/>
|
---|
104 | <option name="-mime_type" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
|
---|
105 | <option name="-srcicon" value="icondocx"/>
|
---|
106 | <option name="-process_extension" value="docx"/>
|
---|
107 | </plugin>
|
---|
108 | <plugin name="RTFPlugin"/>
|
---|
109 | <plugin name="WordPlugin"/>
|
---|
110 | <plugin name="PostScriptPlugin"/>
|
---|
111 | <plugin name="PowerPointPlugin"/>
|
---|
112 | <plugin name="ExcelPlugin"/>
|
---|
113 | <plugin name="ISISPlugin"/>
|
---|
114 | <plugin name="NulPlugin"/>
|
---|
115 | <plugin name="OAIPlugin"/>
|
---|
116 | <plugin name="MetadataXMLPlugin"/>
|
---|
117 | <plugin name="ArchivesInfPlugin"/>
|
---|
118 | <plugin name="DirectoryPlugin"/>
|
---|
119 | </pluginList>
|
---|
120 | </import>
|
---|
121 | <browse>
|
---|
122 | <classifier name="AZCompactList">
|
---|
123 | <option name="-metadata" value="dc.Subject"/>
|
---|
124 | <option name="-buttonname" value="Events"/>
|
---|
125 | </classifier>
|
---|
126 | <classifier name="DateList">
|
---|
127 | <option name="-metadata" value="dc.Coverage"/>
|
---|
128 | <option name="-nogroup"/>
|
---|
129 | <option name="-buttonname" value="Year"/>
|
---|
130 | </classifier>
|
---|
131 | <classifier name="List">
|
---|
132 | <option name="-metadata" value="dc.Title,Title"/>
|
---|
133 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
134 | <option name="-numeric_partition_type_within_level" value="approximate_size"/>
|
---|
135 | <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
|
---|
136 | <option name="-buttonname" value="Titles"/>
|
---|
137 | </classifier>
|
---|
138 | <format>
|
---|
139 | <gsf:template match="documentNode">
|
---|
140 | <td valign="top">
|
---|
141 | <gsf:link type="document">
|
---|
142 | <gsf:choose-metadata>
|
---|
143 | <gsf:metadata name="thumbicon"/>
|
---|
144 | <gsf:metadata name="srcicon"/>
|
---|
145 | </gsf:choose-metadata>
|
---|
146 | </gsf:link>
|
---|
147 | </td>
|
---|
148 | <td valign="top">
|
---|
149 | <gsf:link type="document">
|
---|
150 | <xsl:call-template name="choose-title"/>
|
---|
151 | </gsf:link>
|
---|
152 | </td>
|
---|
153 | </gsf:template>
|
---|
154 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
155 | <td valign="top">
|
---|
156 | <gsf:link style="static" type="classifier">
|
---|
157 | <gsf:icon type="classifier"/>
|
---|
158 | </gsf:link>
|
---|
159 | </td>
|
---|
160 | <td valign="top">
|
---|
161 | <gsf:link type="classifier">
|
---|
162 | <gsf:metadata name="Title"/>
|
---|
163 | </gsf:link>
|
---|
164 | </td>
|
---|
165 | </gsf:template>
|
---|
166 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
167 | <gsf:link style="static" type="classifier">
|
---|
168 | <gsf:metadata name="Title"/>
|
---|
169 | </gsf:link>
|
---|
170 | </gsf:template>
|
---|
171 | </format>
|
---|
172 | </browse>
|
---|
173 | <display>
|
---|
174 | <format>
|
---|
175 | <gsf:option name="TOC" value="true"/>
|
---|
176 | <gsf:option name="allowGLIEditing" value="true"/>
|
---|
177 | <gsf:option name="allowDocumentEditing" value="true"/>
|
---|
178 | <gsf:option name="allowMapGPSEditing" value="false"/>
|
---|
179 | <gsf:option name="allowUserComments" value="false"/>
|
---|
180 | <!--
|
---|
181 | Overwriting this template allows you to change the heading of the document.
|
---|
182 | -->
|
---|
183 | <!--
|
---|
184 | <gsf:template name="documentHeading">
|
---|
185 | <span style="font-weight:bold; font-size: 120%;">
|
---|
186 | <xsl:call-template name="choose-title"/>
|
---|
187 | </span>
|
---|
188 | </gsf:template>
|
---|
189 | -->
|
---|
190 | <!--
|
---|
191 | Overwriting this template can be used to redefine the content of the whole document.
|
---|
192 | This is useful for simple documents, but not recommended for more complex documents
|
---|
193 | (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
|
---|
194 | -->
|
---|
195 | <!--
|
---|
196 | <gsf:template name="documentContent">
|
---|
197 | <div id="gs-document">
|
---|
198 | <xsl:call-template name="documentPre"/>
|
---|
199 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
200 | <div id="gs-document-text">
|
---|
201 | <xsl:call-template name="documentNodeText"/>
|
---|
202 | </div>
|
---|
203 | </div>
|
---|
204 | </gsf:template>
|
---|
205 | -->
|
---|
206 | <!--
|
---|
207 | Overwriting this template can be used to change the content of section headings.
|
---|
208 | -->
|
---|
209 | <!--
|
---|
210 | <gsf:template name="sectionHeading">
|
---|
211 | <xsl:call-template name="choose-title"/>
|
---|
212 | </gsf:template>
|
---|
213 | -->
|
---|
214 | <!--
|
---|
215 | Overwriting this template can be used to change the content of the top-level section.
|
---|
216 | -->
|
---|
217 | <!--
|
---|
218 | <gsf:template name="topLevelSectionContent">
|
---|
219 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
220 | <xsl:call-template name="wrappedSectionText"/>
|
---|
221 | </gsf:template>
|
---|
222 | -->
|
---|
223 | <!--
|
---|
224 | Overwriting this template can be used to change the content of sections.
|
---|
225 | -->
|
---|
226 | <!--
|
---|
227 | <gsf:template name="sectionContent">
|
---|
228 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
229 | <xsl:call-template name="wrappedSectionText"/>
|
---|
230 | </gsf:template>
|
---|
231 | -->
|
---|
232 | </format>
|
---|
233 | </display>
|
---|
234 | <replaceListRef id="gs2-standard"/>
|
---|
235 | <replaceListRef id="gs2-image"/>
|
---|
236 | <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
|
---|
237 | <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
238 | <serviceRack name="OAIPMH">
|
---|
239 | <setName>tshirts</setName>
|
---|
240 | <setDescription/><!-- uncomment the following and set the name attribute if
|
---|
241 | you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
|
---|
242 | <ListMetadataFormats><!--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:
|
---|
243 | <metadataFormat metadataPrefix="prefix"/> -->
|
---|
244 | <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
|
---|
245 | </ListMetadataFormats>
|
---|
246 | </serviceRack>
|
---|
247 | </serviceRackList>
|
---|
248 | </CollectionConfig>
|
---|