source: gs3-installations/test-suite/trunk/sites/test-suite/collect/testing-filelevel-docver/etc/collectionConfig.bak@ 37175

Last change on this file since 37175 was 37175, checked in by davidb, 15 months ago

A collection that helps test file-level document-version history

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