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

Last change on this file since 32629 was 32629, checked in by kjdon, 5 years ago

making default templates in the interface xsl files, the format statements in the model col collectionConfig.xml, and GLI default formats in Format4gs3Manager all match up

  • Property svn:keywords set to Author Date Id Revision
File size: 7.6 KB
RevLine 
[14062]1<?xml version="1.0" encoding="UTF-8"?>
[30536]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">
[25707]3 <metadataList>
[26134]4 <metadata name="creator">**creator**</metadata>
5 <metadata name="maintainer">**maintainer**</metadata>
6 <metadata name="public">**public**</metadata>
[25707]7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" lang="en" name="name">**title**</displayItem>
10 <displayItem assigned="true" lang="en" name="description">**about**</displayItem>
[26224]11 <!-- shortDescription is used as a tooltip for collection icon on home page-->
12 <displayItem assigned="true" lang="en" name="shortDescription">**title**</displayItem>
[25707]13 </displayItemList>
[26019]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>
[30536]26 <search type="lucene">
[25707]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>
[25785]37 <index name="dc.Title,ex.dc.Title,Title">
[25707]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"/>
[30536]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>
[25707]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">
[26066]62 <xsl:call-template name="choose-title"/>
[25707]63 </gsf:link>
64 </td>
65 </gsf:template>
66 </format>
67 </search>
[26293]68
[30536]69 <infodb type="jdbm"/>
[26293]70
[25707]71 <import>
72 <pluginList>
73 <plugin name="ZIPPlugin"/>
74 <plugin name="GreenstoneXMLPlugin"/>
75 <plugin name="TextPlugin"/>
76 <plugin name="HTMLPlugin"/>
77 <plugin name="EmailPlugin"/>
[32291]78 <plugin name="PDFv2Plugin"/>
[25707]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">
[26063]119 <!-- Defined in the global format statement -->
[26019]120 <xsl:call-template name="choose-title"/>
[25707]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">
[31564]130 <gsf:link type="classifier" style="static">
[25707]131 <gsf:icon type="classifier"/>
132 </gsf:link>
133 </td>
134 <td valign="top">
[31564]135 <gsf:link type="classifier">
[26184]136 <gsf:metadata name="Title"/>
[31564]137 </gsf:link>
[25707]138 </td>
139 </gsf:template>
140 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
[32629]141 <gsf:link type="classifier" style="static">
[25707]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"/>
[31557]150 <gsf:option name="AllowUserComments" value="false"/>
[26019]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">
[32629]169 <div id="gs-document">
170 <xsl:call-template name="documentPre"/>
171 <xsl:call-template name="wrappedSectionImage"/>
172 <div id="gs-document-text">
173 <xsl:call-template name="documentNodeText"/>
174 </div>
175 </div>
[26019]176 </gsf:template>
177 -->
178
179 <!--
180 Overwriting this template can be used to change the content of section headings.
181 -->
182 <!--
183 <gsf:template name="sectionHeading">
184 <xsl:call-template name="choose-title"/>
185 </gsf:template>
186 -->
187
188 <!--
189 Overwriting this template can be used to change the content of the top-level section.
190 -->
191 <!--
192 <gsf:template name="topLevelSectionContent">
193 <xsl:call-template name="wrappedSectionImage"/>
194 <xsl:call-template name="wrappedSectionText"/>
195 </gsf:template>
196 -->
197
198 <!--
199 Overwriting this template can be used to change the content of sections.
200 -->
201 <!--
202 <gsf:template name="sectionContent">
203 <xsl:call-template name="wrappedSectionImage"/>
204 <xsl:call-template name="wrappedSectionText"/>
205 </gsf:template>
206 -->
[25707]207 </format>
208 </display>
209 <replaceListRef id="gs2-standard"/>
210 <replaceListRef id="gs2-image" />
211 <serviceRackList>
[27151]212 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
213 <serviceRack name="RSSRetrieve"/>
[25707]214 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
215 <serviceRack name="OAIPMH">
[30084]216 <setName>**title**</setName>
217 <setDescription>**about**</setDescription>
218 <!-- uncomment the following and set the name attribute if
219 you want this collection to be part of a super set. -->
220 <!--<oaiSuperSet name="xxx"/>-->
[25707]221 <ListMetadataFormats>
[30084]222 <!--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:
223 <metadataFormat metadataPrefix="prefix"/> -->
224
225 <metadataFormat metadataPrefix="oai_dc">
226 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
227 </metadataFormat>
[25707]228 </ListMetadataFormats>
229 </serviceRack>
230 </serviceRackList>
[14062]231</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.