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

Last change on this file since 31556 was 31556, checked in by ak19, 7 years ago

Adding the ability to turn on user comments from GLI. Off by default. Need to add usage instructions on wiki.

  • Property svn:keywords set to Author Date Id Revision
File size: 7.3 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="PDFPlugin"/>
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 </classifier>
98 <classifier name="List">
99 <option name="-metadata" value="Source"/>
100 <option name="-partition_type_within_level" value="approximate_size"/>
101 </classifier>
102 <format>
103 <gsf:template match="documentNode">
104 <td valign="top">
105 <gsf:link type="document">
106 <gsf:icon type="document"/>
107 </gsf:link>
108 </td>
109 <td valign="top">
110 <gsf:link type="source">
111 <gsf:choose-metadata>
112 <gsf:metadata name="thumbicon"/>
113 <gsf:metadata name="srcicon"/>
114 </gsf:choose-metadata>
115 </gsf:link>
116 </td>
117 <td valign="top">
118 <gsf:link type="document">
119 <!-- Defined in the global format statement -->
120 <xsl:call-template name="choose-title"/>
121 <gsf:switch>
122 <gsf:metadata name="Source"/>
123 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
124 </gsf:switch>
125 </gsf:link>
126 </td>
127 </gsf:template>
128 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
129 <td valign="top">
130 <gsf:link type="classifier">
131 <gsf:icon type="classifier"/>
132 </gsf:link>
133 </td>
134 <td valign="top">
135 <gsf:metadata name="Title"/>
136 </td>
137 </gsf:template>
138 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
139 <gsf:link type="classifier">
140 <gsf:metadata name="Title"/>
141 </gsf:link>
142 </gsf:template>
143 </format>
144 </browse>
145 <display>
146 <format>
147 <gsf:option name="TOC" value="true"/>
148 <gsf:option name="UserComments" value="false"/>
149 <!--
150 Overwriting this template allows you to change the heading of the document.
151 -->
152 <!--
153 <gsf:template name="documentHeading">
154 <span style="font-weight:bold; font-size: 120%;">
155 <xsl:call-template name="choose-title"/>
156 </span>
157 </gsf:template>
158 -->
159
160 <!--
161 Overwriting this template can be used to redefine the content of the whole document.
162 This is useful for simple documents, but not recommended for more complex documents
163 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
164 -->
165 <!--
166 <gsf:template name="documentContent">
167 <xsl:call-template name="wrappedSectionImage"/>
168 <xsl:call-template name="wrappedSectionText"/>
169 </gsf:template>
170 -->
171
172 <!--
173 Overwriting this template can be used to change the content of section headings.
174 -->
175 <!--
176 <gsf:template name="sectionHeading">
177 <xsl:call-template name="choose-title"/>
178 </gsf:template>
179 -->
180
181 <!--
182 Overwriting this template can be used to change the content of the top-level section.
183 -->
184 <!--
185 <gsf:template name="topLevelSectionContent">
186 <xsl:call-template name="wrappedSectionImage"/>
187 <xsl:call-template name="wrappedSectionText"/>
188 </gsf:template>
189 -->
190
191 <!--
192 Overwriting this template can be used to change the content of sections.
193 -->
194 <!--
195 <gsf:template name="sectionContent">
196 <xsl:call-template name="wrappedSectionImage"/>
197 <xsl:call-template name="wrappedSectionText"/>
198 </gsf:template>
199 -->
200 </format>
201 </display>
202 <replaceListRef id="gs2-standard"/>
203 <replaceListRef id="gs2-image" />
204 <serviceRackList>
205 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
206 <serviceRack name="RSSRetrieve"/>
207 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
208 <serviceRack name="OAIPMH">
209 <setName>**title**</setName>
210 <setDescription>**about**</setDescription>
211 <!-- uncomment the following and set the name attribute if
212 you want this collection to be part of a super set. -->
213 <!--<oaiSuperSet name="xxx"/>-->
214 <ListMetadataFormats>
215 <!--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:
216 <metadataFormat metadataPrefix="prefix"/> -->
217
218 <metadataFormat metadataPrefix="oai_dc">
219 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
220 </metadataFormat>
221 </ListMetadataFormats>
222 </serviceRack>
223 </serviceRackList>
224</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.