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

Last change on this file since 26134 was 26134, checked in by ak19, 12 years ago

Kathy explained that the Metadata fields (creator, maintainer and public) of a collectionConfig.xml should not have language attributes, as that's what displayItems are for. The lang attributes for the Metadata elements seem to have crept in at some point and were in the modelcol's collectionConfig.xml since at last 3 years ago, according to SVN. They lang attributes for these metadata have now been removed from the modelcol collectionConfig file and basic testing shows searching and browsing a new collection with the modified fields still works.

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