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

Last change on this file since 27100 was 27100, checked in by ak19, 11 years ago

RSSRetrieve ServiceRack now commented out by default. If the GS3 collection is built with this ServiceRack uncommented, the RSS feed button will appear on the button bar in the header (which is part of the next commit).

  • Property svn:keywords set to Author Date Id Revision
File size: 8.2 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">
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="mgpp">
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 <searchType name="plain"/>
45 <searchType name="simpleform"/>
46 <searchType name="advancedform"/>
47 <format>
48 <gsf:template match="documentNode">
49 <td valign="top">
50 <gsf:link type="document">
51 <gsf:icon type="document"/>
52 </gsf:link>
53 </td>
54 <td>
55 <gsf:link type="document">
56 <xsl:call-template name="choose-title"/>
57 </gsf:link>
58 </td>
59 </gsf:template>
60 </format>
61 </search>
62
63 <infodb type="gdbm"/>
64
65 <import>
66 <pluginList>
67 <plugin name="ZIPPlugin"/>
68 <plugin name="GreenstoneXMLPlugin"/>
69 <plugin name="TextPlugin"/>
70 <plugin name="HTMLPlugin"/>
71 <plugin name="EmailPlugin"/>
72 <plugin name="PDFPlugin"/>
73 <plugin name="RTFPlugin"/>
74 <plugin name="WordPlugin"/>
75 <plugin name="PostScriptPlugin"/>
76 <plugin name="PowerPointPlugin"/>
77 <plugin name="ExcelPlugin"/>
78 <plugin name="ImagePlugin"/>
79 <plugin name="ISISPlugin"/>
80 <plugin name="NulPlugin"/>
81 <plugin name="OAIPlugin"/>
82 <plugin name="MetadataXMLPlugin"/>
83 <plugin name="ArchivesInfPlugin"/>
84 <plugin name="DirectoryPlugin"/>
85 </pluginList>
86 </import>
87 <browse>
88 <classifier name="List">
89 <option name="-metadata" value="dc.Title;Title"/>
90 <option name="-partition_type_within_level" value="approximate_size"/>
91 </classifier>
92 <classifier name="List">
93 <option name="-metadata" value="Source"/>
94 <option name="-partition_type_within_level" value="approximate_size"/>
95 </classifier>
96 <format>
97 <gsf:template match="documentNode">
98 <td valign="top">
99 <gsf:link type="document">
100 <gsf:icon type="document"/>
101 </gsf:link>
102 </td>
103 <td valign="top">
104 <gsf:link type="source">
105 <gsf:choose-metadata>
106 <gsf:metadata name="thumbicon"/>
107 <gsf:metadata name="srcicon"/>
108 </gsf:choose-metadata>
109 </gsf:link>
110 </td>
111 <td valign="top">
112 <gsf:link type="document">
113 <!-- Defined in the global format statement -->
114 <xsl:call-template name="choose-title"/>
115 <gsf:switch>
116 <gsf:metadata name="Source"/>
117 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
118 </gsf:switch>
119 </gsf:link>
120 </td>
121 </gsf:template>
122 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
123 <td valign="top">
124 <gsf:link type="classifier">
125 <gsf:icon type="classifier"/>
126 </gsf:link>
127 </td>
128 <td valign="top">
129 <gsf:metadata name="Title"/>
130 </td>
131 </gsf:template>
132 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
133 <gsf:link type="classifier">
134 <gsf:metadata name="Title"/>
135 </gsf:link>
136 </gsf:template>
137 </format>
138 </browse>
139 <display>
140 <format>
141 <gsf:option name="TOC" value="true"/>
142
143 <!--
144 Overwriting this template allows you to change the heading of the document.
145 -->
146 <!--
147 <gsf:template name="documentHeading">
148 <span style="font-weight:bold; font-size: 120%;">
149 <xsl:call-template name="choose-title"/>
150 </span>
151 </gsf:template>
152 -->
153
154 <!--
155 Overwriting this template can be used to redefine the content of the whole document.
156 This is useful for simple documents, but not recommended for more complex documents
157 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
158 -->
159 <!--
160 <gsf:template name="documentContent">
161 <xsl:call-template name="wrappedSectionImage"/>
162 <xsl:call-template name="wrappedSectionText"/>
163 </gsf:template>
164 -->
165
166 <!--
167 Overwriting this template can be used to change the content of section headings.
168 -->
169 <!--
170 <gsf:template name="sectionHeading">
171 <xsl:call-template name="choose-title"/>
172 </gsf:template>
173 -->
174
175 <!--
176 Overwriting this template can be used to change the content of the top-level section.
177 -->
178 <!--
179 <gsf:template name="topLevelSectionContent">
180 <xsl:call-template name="wrappedSectionImage"/>
181 <xsl:call-template name="wrappedSectionText"/>
182 </gsf:template>
183 -->
184
185 <!--
186 Overwriting this template can be used to change the content of sections.
187 -->
188 <!--
189 <gsf:template name="sectionContent">
190 <xsl:call-template name="wrappedSectionImage"/>
191 <xsl:call-template name="wrappedSectionText"/>
192 </gsf:template>
193 -->
194 </format>
195 </display>
196 <replaceListRef id="gs2-standard"/>
197 <replaceListRef id="gs2-image" />
198 <serviceRackList>
199 <!-- uncomment the following serviceRack if you want to enable RSS for this collection -->
200 <!--<serviceRack name="RSSRetrieve"/>-->
201 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
202 <serviceRack name="OAIPMH">
203 <ListMetadataFormats>
204 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
205 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
206 -->
207 <metadataFormat metadataPrefix="oai_dc">
208 <metadataPrefix>oai_dc</metadataPrefix>
209 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
210 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
211 <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>-->
212 <mappingList>
213 <!--
214 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
215 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
216 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
217 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
218 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
219
220 **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
221
222 **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
223 -->
224 <mapping>dc:title,Title</mapping>
225 <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
226 </mappingList>
227 </metadataFormat>
228 </ListMetadataFormats>
229 </serviceRack>
230 </serviceRackList>
231</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.