source: documented-examples/trunk/authen-e/etc/collectionConfig.xml@ 36246

Last change on this file since 36246 was 36246, checked in by anupama, 23 months ago

First attempt at porting authen-e DEC (documented example collection) to GS3. At present all but 2 docs (farming butterflies, fb33fe and fb34fe) are private and accessible only to users in the group: demo. This is as in the GS2 version of authen-e. The collection description text still needs to be updated and the collectionCofig.properties files for the 5 languages already supported should have the collection description split into multilines, but there's now an overridden about.xsl, as Dr Bainbridge described, that will ensure the coll description is loaded from teh collectionConfig.props file for the selected language where available. I've also worked out how GS3 allows displayItem static strings to be declared in props file to be called from the collectionConfig.xml file. An example is textsource, which replaced the GS2 macro _textsource_.

File size: 8.8 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 <security default_access="private" scope="document">
4 <exception>
5 <group name="demo"/>
6 </exception>
7 <exception>
8 <documentSet name="always-public"/>
9 <group name=""/>
10 </exception>
11 <documentSet name="always-public">
12 <match>fb33fe</match>
13 <match>fb34fe</match>
14 </documentSet>
15 </security>
16 <metadataList>
17 <metadata lang="en" name="creator">[email protected]</metadata>
18 <metadata lang="en" name="maintainer"/>
19 <metadata lang="en" name="public">true</metadata>
20 </metadataList>
21 <displayItemList>
22 <displayItem assigned="true" dictionary="collectionConfig" key="description" name="description"/>
23 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
24 <displayItem assigned="true" lang="en" name="name">Authentication demo</displayItem>
25 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
26 <displayItem assigned="true" dictionary="collectionConfig" key="textsource" name="textsource"/>
27 <displayItem assigned="true" dictionary="collectionConfig" key="textnumpages" name="textnumpages"/>
28 <displayItem assigned="true" dictionary="collectionConfig" key="textdate" name="textdate"/>
29 </displayItemList>
30 <format/>
31 <search type="mgpp">
32 <level name="section">
33 <displayItem lang="en" name="name">chapter</displayItem>
34 </level>
35 <level name="document">
36 <displayItem lang="en" name="name">book</displayItem>
37 </level>
38 <defaultLevel name="section"/>
39 <index name="dls.Organization">
40 <displayItem lang="en" name="name">dls.Organization</displayItem>
41 </index>
42 <index name="dls.Keyword">
43 <displayItem lang="en" name="name">dls.Keyword</displayItem>
44 </index>
45 <index name="dls.Title,Title">
46 <displayItem lang="en" name="name">dls.Title,Title</displayItem>
47 </index>
48 <index name="text">
49 <displayItem lang="en" name="name">text</displayItem>
50 </index>
51 <index name="dls.Subject">
52 <displayItem lang="en" name="name">dls.Subject</displayItem>
53 </index>
54 <defaultIndex name="text"/>
55 <indexOption name="casefold"/>
56 <indexOption name="stem"/>
57 <searchType name="plain"/>
58 <searchType name="simpleform"/>
59 <searchType name="advancedform"/>
60 <format>
61 <gsf:template match="documentNode">
62 <td valign="top">
63 <gsf:link type="document">
64 <gsf:icon type="document"/>
65 </gsf:link>
66 </td>
67 <td>
68 <gsf:switch>
69 <gsf:metadata name="Title"/>
70 <gsf:when test="exists">
71 <gsf:metadata name="Title"/>:
72 </gsf:when>
73 </gsf:switch>
74 <gsf:link type="document">
75 <gsf:metadata name="Title"/>
76 </gsf:link>
77 </td>
78 </gsf:template>
79 </format>
80 </search>
81 <infodb type="gdbm"/>
82 <import>
83 <pluginList>
84 <plugin name="GreenstoneXMLPlugin"/>
85 <plugin name="HTMLPlugin">
86 <option name="-description_tags"/>
87 <option name="-OIDtype" value="dirname"/>
88 </plugin>
89 <plugin name="MetadataXMLPlugin"/>
90 <plugin name="ArchivesInfPlugin"/>
91 <plugin name="DirectoryPlugin"/>
92 </pluginList>
93 </import>
94 <browse>
95 <classifier name="List">
96 <option name="-metadata" value="dls.Title"/>
97 <option name="-partition_type_within_level" value="constant_size"/>
98 </classifier>
99 <classifier name="Hierarchy">
100 <option name="-metadata" value="dls.Subject"/>
101 <option name="-sort" value="dls.Title"/>
102 </classifier>
103 <classifier name="List">
104 <option name="-metadata" value="dls.Organization"/>
105 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
106 <option name="-partition_type_within_level" value="constant_size"/>
107 <option name="-bookshelf_type" value="always"/>
108 </classifier>
109 <classifier name="List">
110 <option name="-metadata" value="dls.Keyword"/>
111 <option name="-buttonname" value="Howto"/>
112 <option name="-partition_type_within_level" value="constant_size"/>
113 <format>
114 <gsf:template match="documentNode">
115 <td>
116 <gsf:link type="document">
117 <gsf:icon type="document"/>
118 </gsf:link>
119 </td>
120 <td>
121 <gsf:link type="document">
122 <gsf:metadata name="dls.Keyword"/>
123 </gsf:link>
124 </td>
125 </gsf:template>
126 <gsf:template match="classifierNode">
127 <td>
128 <gsf:link type="classifier">
129 <gsf:icon type="classifier"/>
130 </gsf:link>
131 </td>
132 <td>
133 <gsf:link type="classifier">
134 <gsf:metadata name="dls.Keyword"/>
135 </gsf:link>
136 </td>
137 </gsf:template>
138 </format>
139 </classifier>
140 <format>
141 <gsf:template match="documentNode">
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>
150 <gsf:metadata name="Title"/>
151 <gsf:default>Untitled</gsf:default>
152 </gsf:choose-metadata>
153 </span>
154 <gsf:switch>
155 <gsf:metadata name="Date"/>
156 <gsf:when test="exists">
157 <br/>
158 <small>
159 <i>
160 <gsf:displayItem name="textdate"/>
161 <gsf:metadata name="Date"/>
162 </i>
163 </small>
164 </gsf:when>
165 </gsf:switch>
166 <gsf:switch>
167 <gsf:metadata name="NumPages"/>
168 <gsf:when test="exists">
169 <br/>
170 <small>
171 <i>
172 <gsf:displayItem name="textnumpages"/>
173 <gsf:metadata name="NumPages"/>
174 </i>
175 </small>
176 </gsf:when>
177 </gsf:switch>
178 <gsf:switch>
179 <gsf:metadata name="Source"/>
180 <gsf:when test="exists">
181 <br/>
182 <small>
183 <i>
184 <gsf:displayItem name="textsource"/>
185 <gsf:metadata name="Source"/>
186 </i>
187 </small>
188 </gsf:when>
189 </gsf:switch>
190 </td>
191 </gsf:template>
192 <gsf:template match="classifierNode">
193 <td valign="top">
194 <gsf:link type="classifier">
195 <gsf:icon type="classifier"/>
196 </gsf:link>
197 </td>
198 <td valign="top">
199 <span class="highlight">
200 <gsf:choose-metadata>
201 <gsf:metadata name="Title"/>
202 <gsf:default>Untitled</gsf:default>
203 </gsf:choose-metadata>
204 </span>
205 <gsf:switch>
206 <gsf:metadata name="Date"/>
207 <gsf:when test="exists">
208 <br/>
209 <small>
210 <i>
211 <gsf:displayItem name="textdate"/>
212 <gsf:metadata name="Date"/>
213 </i>
214 </small>
215 </gsf:when>
216 </gsf:switch>
217 <gsf:switch>
218 <gsf:metadata name="NumPages"/>
219 <gsf:when test="exists">
220 <br/>
221 <small>
222 <i>
223 <gsf:displayItem name="textnumpages"/>
224 <gsf:metadata name="NumPages"/>
225 </i>
226 </small>
227 </gsf:when>
228 </gsf:switch>
229 <gsf:switch>
230 <gsf:metadata name="Source"/>
231 <gsf:when test="exists">
232 <br/>
233 <small>
234 <i>
235 <gsf:displayItem name="textsource"/>
236 <gsf:metadata name="Source"/>
237 </i>
238 </small>
239 </gsf:when>
240 </gsf:switch>
241 </td>
242 </gsf:template>
243 <gsf:template match="classifierNode" mode="horizontal">
244 <gsf:link type="classifier">
245 <span class="highlight">
246 <gsf:metadata name="Title"/>
247 </span>
248 </gsf:link>
249 </gsf:template>
250 </format>
251 </browse>
252 <display>
253 <format>
254 <gsf:option name="TOC" value="true"/>
255 <gsf:option name="AllowUserComments" value="false"/><!--
256Overwriting this template allows you to change the heading of the document.
257--><!--
258<gsf:template name="documentHeading">
259<span style="font-weight:bold; font-size: 120%;">
260<xsl:call-template name="choose-title"/>
261</span>
262</gsf:template>
263--><!--
264Overwriting 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.
265--><!--
266<gsf:template name="documentContent">
267<div id="gs-document">
268<xsl:call-template name="documentPre"/>
269<xsl:call-template name="wrappedSectionImage"/>
270<div id="gs-document-text">
271<xsl:call-template name="documentNodeText"/>
272</div>
273</gsf:template>
274--><!--
275Overwriting this template can be used to change the content of section headings.
276--><!--
277<gsf:template name="sectionHeading">
278<xsl:call-template name="choose-title"/>
279</gsf:template>
280--><!--
281Overwriting this template can be used to change the content of the top-level section.
282--><!--
283<gsf:template name="topLevelSectionContent">
284<xsl:call-template name="wrappedSectionImage"/>
285<xsl:call-template name="wrappedSectionText"/>
286</gsf:template>
287--><!--
288Overwriting this template can be used to change the content of sections.
289--><!--
290<gsf:template name="sectionContent">
291<xsl:call-template name="wrappedSectionImage"/>
292<xsl:call-template name="wrappedSectionText"/>
293</gsf:template>
294-->
295 </format>
296 </display>
297 <replaceListRef id="gs2-standard"/>
298</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.