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

Last change on this file since 26224 was 26224, checked in by kjdon, 12 years ago

added in placeholder for shortDescription display item

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