source: documented-examples/trunk/manifest-demo-e/etc/collectionConfig.xml@ 38976

Last change on this file since 38976 was 38976, checked in by kjdon, 7 weeks ago

removed the english version of the name displayItem - should just use the one from hte collectionConfig properties file

File size: 10.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <metadataList>
4 <metadata lang="en" name="creator"/>
5 <metadata lang="en" name="maintainer"/>
6 <metadata lang="en" name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
10 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
11 <displayItem assigned="true" dictionary="collectionConfig" key="description" name="description"/>
12 <displayItem assigned="true" dictionary="collectionConfig" key="description0" name="description0"/>
13 <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
14 <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
15 <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
16 <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="dls.Organization" name="dls.Organization"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="dls.Titles" name="dls.Titles"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key="dls.Keyword" name="dls.Keyword"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key="dls.Subject" name="dls.Subject"/>
21 <displayItem assigned="true" dictionary="collectionConfig" key="text" name="text"/>
22 <displayItem assigned="true" dictionary="collectionConfig" key="section" name="section"/>
23 <displayItem assigned="true" dictionary="collectionConfig" key="document" name="document"/>
24 <displayItem assigned="true" dictionary="collectionConfig" key="textsource" name="textsource"/>
25 <displayItem assigned="true" dictionary="collectionConfig" key="textnumpages" name="textnumpages"/>
26 <displayItem assigned="true" dictionary="collectionConfig" key="textdate" name="textdate"/>
27 </displayItemList>
28 <format/>
29 <search type="lucene">
30 <index name="text">
31 <displayItem dictionary="collectionConfig" key="text" name="name"/>
32 </index>
33 <index name="dls.Keyword">
34 <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/>
35 </index>
36 <index name="dls.Subject">
37 <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/>
38 </index>
39 <index name="dls.Title,Title">
40 <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/>
41 </index>
42 <index name="dls.Organization">
43 <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/>
44 </index>
45 <defaultIndex name="text"/>
46 <level name="document">
47 <displayItem assigned="true" dictionary="collectionConfig" key="document" name="name"/>
48 </level>
49 <level name="section">
50 <displayItem assigned="true" dictionary="collectionConfig" key="section" name="name"/>
51 </level>
52 <defaultLevel name="section"/>
53 <searchType name="plain"/>
54 <searchType name="simpleform"/>
55 <searchType name="advancedform"/>
56 <format>
57 <gsf:template match="documentNode">
58 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All': '):Title],[parent(All': '):Title]:}[link][Title][/link]</td>]]></gsf:format-gs2>
59 <td valign="top">
60 <gsf:link type="document">
61 <gsf:icon type="document"/>
62 </gsf:link>
63 </td>
64 <td>
65 <gsf:switch>
66 <gsf:metadata name="Title"/>
67 <gsf:when test="exists"><gsf:metadata name="Title"/>:</gsf:when>
68 </gsf:switch>
69 <gsf:link type="document">
70 <gsf:metadata name="Title"/>
71 </gsf:link>
72 </td>
73 </gsf:template>
74 </format>
75 </search>
76 <infodb type="gdbm"/>
77 <import>
78 <pluginList>
79 <plugin name="ZIPPlugin"/>
80 <plugin name="GreenstoneXMLPlugin"/>
81 <plugin name="HTMLPlugin">
82 <option name="-description_tags"/>
83 <option name="-OIDtype" value="dirname"/>
84 </plugin>
85 <plugin name="MetadataXMLPlugin"/>
86 <plugin name="ArchivesInfPlugin"/>
87 <plugin name="DirectoryPlugin"/>
88 </pluginList>
89 </import>
90 <browse>
91 <classifier name="List">
92 <option name="-metadata" value="dls.Title"/>
93 <option name="-removeprefix" value="([Tt]he|A)\\s+"/>
94 <option name="-partition_type_within_level" value="constant_size"/>
95 </classifier>
96 <classifier name="Hierarchy">
97 <option name="-metadata" value="dls.Subject"/>
98 <option name="-sort" value="dls.Title"/>
99 </classifier>
100 <classifier name="List">
101 <option name="-metadata" value="dls.Organization"/>
102 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
103 <option name="-partition_type_within_level" value="constant_size"/>
104 <option name="-bookshelf_type" value="always"/>
105 </classifier>
106 <classifier name="List">
107 <option name="-metadata" value="dls.Keyword"/>
108 <option name="-buttonname" value="Howto"/>
109 <option name="-partition_type_within_level" value="constant_size"/>
110 <format>
111 <gsf:template match="documentNode">
112 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
113 <td>
114 <gsf:link type="document">
115 <gsf:icon type="document"/>
116 </gsf:link>
117 </td>
118 <td>
119 <gsf:link type="document">
120 <gsf:metadata name="dls.Keyword"/>
121 </gsf:link>
122 </td>
123 </gsf:template>
124 <gsf:template match="classifierNode">
125 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
126 <td>
127 <gsf:link type="classifier">
128 <gsf:icon type="classifier"/>
129 </gsf:link>
130 </td>
131 <td>
132 <gsf:link type="classifier">
133 <gsf:metadata name="dls.Keyword"/>
134 </gsf:link>
135 </td>
136 </gsf:template>
137 </format>
138 </classifier>
139 <format>
140 <gsf:template match="documentNode">
141 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[dls.Title],[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>]]></gsf:format-gs2>
142 <td valign="top">
143 <gsf:link type="document">
144 <gsf:icon type="document"/>
145 </gsf:link>
146 </td>
147 <td valign="top">
148 <span class="highlight">
149 <gsf:choose-metadata><gsf:metadata name="dls.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
150 </span>
151 <gsf:switch>
152 <gsf:metadata name="Date"/>
153 <gsf:when test="exists">
154 <br/>
155 <small>
156 <i><gsf:displayItem name="textdate"/><gsf:metadata name="Date"/></i>
157 </small>
158 </gsf:when>
159 </gsf:switch>
160 <gsf:switch>
161 <gsf:metadata name="NumPages"/>
162 <gsf:when test="exists">
163 <br/>
164 <small>
165 <i><gsf:displayItem name="textnumpages"/><gsf:metadata name="NumPages"/></i>
166 </small>
167 </gsf:when>
168 </gsf:switch>
169 <gsf:switch>
170 <gsf:metadata name="Source"/>
171 <gsf:when test="exists">
172 <br/>
173 <small>
174 <i><gsf:displayItem name="textsource"/><gsf:metadata name="Source"/></i>
175 </small>
176 </gsf:when>
177 </gsf:switch>
178 </td>
179 </gsf:template>
180 <gsf:template match="classifierNode">
181 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[dls.Title],[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>]]></gsf:format-gs2>
182 <td valign="top">
183 <gsf:link type="classifier">
184 <gsf:icon type="classifier"/>
185 </gsf:link>
186 </td>
187 <td valign="top">
188 <span class="highlight">
189 <gsf:choose-metadata><gsf:metadata name="dls.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
190 </span>
191 <gsf:switch>
192 <gsf:metadata name="Date"/>
193 <gsf:when test="exists">
194 <br/>
195 <small>
196 <i><gsf:displayItem name="textdate"/><gsf:metadata name="Date"/></i>
197 </small>
198 </gsf:when>
199 </gsf:switch>
200 <gsf:switch>
201 <gsf:metadata name="NumPages"/>
202 <gsf:when test="exists">
203 <br/>
204 <small>
205 <i><gsf:displayItem name="textnumpages"/><gsf:metadata name="NumPages"/></i>
206 </small>
207 </gsf:when>
208 </gsf:switch>
209 <gsf:switch>
210 <gsf:metadata name="Source"/>
211 <gsf:when test="exists">
212 <br/>
213 <small>
214 <i><gsf:displayItem name="textsource"/><gsf:metadata name="Source"/></i>
215 </small>
216 </gsf:when>
217 </gsf:switch>
218 </td>
219 </gsf:template>
220 <gsf:template match="classifierNode" mode="horizontal">
221 <gsf:format-gs2><![CDATA[[link][highlight][Title][/highlight][/link]]]></gsf:format-gs2>
222 <gsf:link type="classifier">
223 <span class="highlight">
224 <gsf:metadata name="Title"/>
225 </span>
226 </gsf:link>
227 </gsf:template>
228 </format>
229 </browse>
230 <display>
231 <format><gsf:option name="TOC" value="true"/><gsf:option name="AllowUserComments" value="false"/><!--Overwriting this template allows you to change the heading of the document.--><!--<gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>--><!--Overwriting this template can be used to redefine the content of the whole document.This is useful for simple documents, but not recommended for more complex documents(e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.--><!--<gsf:template name="documentContent"><div id="gs-document"><xsl:call-template name="documentPre"/><xsl:call-template name="wrappedSectionImage"/><div id="gs-document-text"><xsl:call-template name="documentNodeText"/></div></div></gsf:template>--><!--Overwriting this template can be used to change the content of section headings.--><!--<gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>--><!--Overwriting this template can be used to change the content of the top-level section.--><!--<gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>--><!--Overwriting this template can be used to change the content of sections.--><!--<gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>--></format>
232 </display>
233 <replaceListRef id="gs2-standard"/>
234</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.