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">[email protected]</metadata>
|
---|
5 | <metadata lang="en" name="maintainer"/>
|
---|
6 | <metadata lang="en" name="public">true</metadata>
|
---|
7 | </metadataList>
|
---|
8 | <displayItemList>
|
---|
9 | <displayItem dictionary="collectionConfig" key="name" name="name"/>
|
---|
10 | <displayItem lang="en" name="name">Custom stylesheet demo collection</displayItem>
|
---|
11 | <displayItem dictionary="collectionConfig" key="name" name="name"/>
|
---|
12 | <displayItem dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
|
---|
13 | <displayItem dictionary="collectionConfig" key="description1" name="description1"/>
|
---|
14 | <displayItem dictionary="collectionConfig" key="description2" name="description2"/>
|
---|
15 | <displayItem dictionary="collectionConfig" key="description3" name="description3"/>
|
---|
16 | <displayItem dictionary="collectionConfig" key="description4" name="description4"/>
|
---|
17 | <displayItem dictionary="collectionConfig" key="description5" name="description5"/>
|
---|
18 | </displayItemList>
|
---|
19 | <format>
|
---|
20 | <xsl:template name="additionalHeaderContent">
|
---|
21 | <xsl:variable name="httpCollection">
|
---|
22 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
23 | </xsl:variable>
|
---|
24 | <link href="{$httpCollection}/style/custom-style.css" rel="stylesheet" type="text/css"/>
|
---|
25 | <!--
|
---|
26 | <script src="{$httpCollection}/script/script.js" type="text/javascript"> </script>
|
---|
27 | -->
|
---|
28 | </xsl:template>
|
---|
29 | </format>
|
---|
30 | <search type="mgpp">
|
---|
31 | <index name="dls.Organization">
|
---|
32 | <displayItem lang="en" name="name">dls.Organization</displayItem>
|
---|
33 | </index>
|
---|
34 | <index name="dls.Title,Title">
|
---|
35 | <displayItem lang="en" name="name">dls.Title,Title</displayItem>
|
---|
36 | </index>
|
---|
37 | <index name="dls.Keyword">
|
---|
38 | <displayItem lang="en" name="name">dls.Keyword</displayItem>
|
---|
39 | </index>
|
---|
40 | <index name="text">
|
---|
41 | <displayItem dictionary="collectionConfig" key="text" name="name"/>
|
---|
42 | </index>
|
---|
43 | <index name="dls.Subject">
|
---|
44 | <displayItem lang="en" name="name">dls.Subject</displayItem>
|
---|
45 | </index>
|
---|
46 | <defaultIndex name="text"/>
|
---|
47 | <level name="document">
|
---|
48 | <displayItem dictionary="collectionConfig" key="textbook" name="name"/>
|
---|
49 | </level>
|
---|
50 | <level name="section">
|
---|
51 | <displayItem dictionary="collectionConfig" key="textchapter" name="name"/>
|
---|
52 | </level>
|
---|
53 | <defaultLevel name="section"/>
|
---|
54 | <indexOption name="casefold"/>
|
---|
55 | <indexOption name="stem"/>
|
---|
56 | <searchType name="plain"/>
|
---|
57 | <searchType name="simpleform"/>
|
---|
58 | <searchType name="advancedform"/>
|
---|
59 | <format>
|
---|
60 | <gsf:template match="documentNode">
|
---|
61 | <gsf:format-gs2><![CDATA[<td valign=top>[link]<img src='[DocImage]' height='21'>[/link]</td><td>{If}{[parent(All': '):Title],[parent(All': '):Title]:}[link][Title][/link]</td>]]></gsf:format-gs2>
|
---|
62 | <td valign="top">
|
---|
63 | <gsf:link type="document">
|
---|
64 | <img height="21" src=""/>
|
---|
65 | </gsf:link>
|
---|
66 | </td>
|
---|
67 | <td>
|
---|
68 | <gsf:switch>
|
---|
69 | <gsf:metadata name="Title"/>
|
---|
70 | <gsf:when test="exists"><gsf:metadata name="Title"/>:</gsf:when>
|
---|
71 | </gsf:switch>
|
---|
72 | <gsf:link type="document">
|
---|
73 | <gsf:metadata name="Title"/>
|
---|
74 | </gsf:link>
|
---|
75 | </td>
|
---|
76 | </gsf:template>
|
---|
77 | </format>
|
---|
78 | </search>
|
---|
79 | <infodb type="gdbm"/>
|
---|
80 | <import>
|
---|
81 | <pluginList>
|
---|
82 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
83 | <plugin name="HTMLPlugin">
|
---|
84 | <option name="-description_tags"/>
|
---|
85 | </plugin>
|
---|
86 | <plugin name="MetadataXMLPlugin"/>
|
---|
87 | <plugin name="ArchivesInfPlugin"/>
|
---|
88 | <plugin name="DirectoryPlugin"/>
|
---|
89 | </pluginList>
|
---|
90 | </import>
|
---|
91 | <browse>
|
---|
92 | <classifier name="List">
|
---|
93 | <option name="-metadata" value="dls.Title"/>
|
---|
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[
|
---|
113 | <td>[link][icon][/link]
|
---|
114 | </td>
|
---|
115 | <td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
|
---|
116 | <td>
|
---|
117 | <gsf:link type="document">
|
---|
118 | <gsf:icon type="document"/>
|
---|
119 | </gsf:link>
|
---|
120 | </td>
|
---|
121 | <td>
|
---|
122 | <gsf:link type="document">
|
---|
123 | <gsf:metadata name="dls.Keyword"/>
|
---|
124 | </gsf:link>
|
---|
125 | </td>
|
---|
126 | </gsf:template>
|
---|
127 | <gsf:template match="classifierNode">
|
---|
128 | <gsf:format-gs2><![CDATA[
|
---|
129 | <td>[link][icon][/link]
|
---|
130 | </td>
|
---|
131 | <td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
|
---|
132 | <td>
|
---|
133 | <gsf:link type="classifier">
|
---|
134 | <gsf:icon type="classifier"/>
|
---|
135 | </gsf:link>
|
---|
136 | </td>
|
---|
137 | <td>
|
---|
138 | <gsf:link type="classifier">
|
---|
139 | <gsf:metadata name="dls.Keyword"/>
|
---|
140 | </gsf:link>
|
---|
141 | </td>
|
---|
142 | </gsf:template>
|
---|
143 | </format>
|
---|
144 | </classifier>
|
---|
145 | <format>
|
---|
146 | <gsf:template match="documentNode">
|
---|
147 | <gsf:format-gs2><![CDATA[
|
---|
148 | <td valign=top>[link][icon][/link]
|
---|
149 | </td>
|
---|
150 | <td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],
|
---|
151 | <br>
|
---|
152 | <small>
|
---|
153 | <i>_textdate_[Date]
|
---|
154 | </i>
|
---|
155 | </small>}{If}{[NumPages],
|
---|
156 | <br>
|
---|
157 | <small>
|
---|
158 | <i>_textnumpages_[NumPages]
|
---|
159 | </i>
|
---|
160 | </small>}{If}{[Source],
|
---|
161 | <br>
|
---|
162 | <small>
|
---|
163 | <i>_textsource_[dmsafe:Source]
|
---|
164 | </i>
|
---|
165 | </small>}
|
---|
166 | </td>]]></gsf:format-gs2>
|
---|
167 | <td valign="top">
|
---|
168 | <gsf:link type="document">
|
---|
169 | <gsf:icon type="document"/>
|
---|
170 | </gsf:link>
|
---|
171 | </td>
|
---|
172 | <td valign="top">
|
---|
173 | <span class="highlight">
|
---|
174 | <gsf:choose-metadata><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
|
---|
175 | </span>
|
---|
176 | <gsf:switch>
|
---|
177 | <gsf:metadata name="Date"/>
|
---|
178 | <gsf:when test="exists">
|
---|
179 | <br/>
|
---|
180 | <small>
|
---|
181 | <i>_textdate_<gsf:metadata name="Date"/></i>
|
---|
182 | </small>
|
---|
183 | </gsf:when>
|
---|
184 | </gsf:switch>
|
---|
185 | <gsf:switch>
|
---|
186 | <gsf:metadata name="NumPages"/>
|
---|
187 | <gsf:when test="exists">
|
---|
188 | <br/>
|
---|
189 | <small>
|
---|
190 | <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
|
---|
191 | </small>
|
---|
192 | </gsf:when>
|
---|
193 | </gsf:switch>
|
---|
194 | <gsf:switch>
|
---|
195 | <gsf:metadata name="Source"/>
|
---|
196 | <gsf:when test="exists">
|
---|
197 | <br/>
|
---|
198 | <small>
|
---|
199 | <i>_textsource_<gsf:metadata name="Source"/></i>
|
---|
200 | </small>
|
---|
201 | </gsf:when>
|
---|
202 | </gsf:switch>
|
---|
203 | </td>
|
---|
204 | </gsf:template>
|
---|
205 | <gsf:template match="classifierNode">
|
---|
206 | <gsf:format-gs2><![CDATA[
|
---|
207 | <td valign=top>[link][icon][/link]
|
---|
208 | </td>
|
---|
209 | <td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],
|
---|
210 | <br>
|
---|
211 | <small>
|
---|
212 | <i>_textdate_[Date]
|
---|
213 | </i>
|
---|
214 | </small>}{If}{[NumPages],
|
---|
215 | <br>
|
---|
216 | <small>
|
---|
217 | <i>_textnumpages_[NumPages]
|
---|
218 | </i>
|
---|
219 | </small>}{If}{[Source],
|
---|
220 | <br>
|
---|
221 | <small>
|
---|
222 | <i>_textsource_[dmsafe:Source]
|
---|
223 | </i>
|
---|
224 | </small>}
|
---|
225 | </td>]]></gsf:format-gs2>
|
---|
226 | <td valign="top">
|
---|
227 | <gsf:link type="classifier">
|
---|
228 | <gsf:icon type="classifier"/>
|
---|
229 | </gsf:link>
|
---|
230 | </td>
|
---|
231 | <td valign="top">
|
---|
232 | <span class="highlight">
|
---|
233 | <gsf:choose-metadata><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
|
---|
234 | </span>
|
---|
235 | <gsf:switch>
|
---|
236 | <gsf:metadata name="Date"/>
|
---|
237 | <gsf:when test="exists">
|
---|
238 | <br/>
|
---|
239 | <small>
|
---|
240 | <i>_textdate_<gsf:metadata name="Date"/></i>
|
---|
241 | </small>
|
---|
242 | </gsf:when>
|
---|
243 | </gsf:switch>
|
---|
244 | <gsf:switch>
|
---|
245 | <gsf:metadata name="NumPages"/>
|
---|
246 | <gsf:when test="exists">
|
---|
247 | <br/>
|
---|
248 | <small>
|
---|
249 | <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
|
---|
250 | </small>
|
---|
251 | </gsf:when>
|
---|
252 | </gsf:switch>
|
---|
253 | <gsf:switch>
|
---|
254 | <gsf:metadata name="Source"/>
|
---|
255 | <gsf:when test="exists">
|
---|
256 | <br/>
|
---|
257 | <small>
|
---|
258 | <i>_textsource_<gsf:metadata name="Source"/></i>
|
---|
259 | </small>
|
---|
260 | </gsf:when>
|
---|
261 | </gsf:switch>
|
---|
262 | </td>
|
---|
263 | </gsf:template>
|
---|
264 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
265 | <gsf:format-gs2><![CDATA[[link][highlight][Title][/highlight][/link]]]></gsf:format-gs2>
|
---|
266 | <gsf:link type="classifier">
|
---|
267 | <span class="highlight">
|
---|
268 | <gsf:metadata name="Title"/>
|
---|
269 | </span>
|
---|
270 | </gsf:link>
|
---|
271 | </gsf:template>
|
---|
272 | </format>
|
---|
273 | </browse>
|
---|
274 | <display>
|
---|
275 | <format>
|
---|
276 | <gsf:option name="TOC" value="true"/>
|
---|
277 | <gsf:option name="AllowUserComments" value="false"/>
|
---|
278 | <!--
|
---|
279 | Overwriting this template allows you to change the heading of the document.
|
---|
280 | -->
|
---|
281 | <!--
|
---|
282 | <gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
|
---|
283 | -->
|
---|
284 | <!--
|
---|
285 | 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.
|
---|
286 | -->
|
---|
287 | <!--
|
---|
288 | <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>
|
---|
289 | -->
|
---|
290 | <!--
|
---|
291 | Overwriting this template can be used to change the content of section headings.
|
---|
292 | -->
|
---|
293 | <!--
|
---|
294 | <gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
|
---|
295 | -->
|
---|
296 | <!--
|
---|
297 | Overwriting this template can be used to change the content of the top-level section.
|
---|
298 | -->
|
---|
299 | <!--
|
---|
300 | <gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
|
---|
301 | -->
|
---|
302 | <!--
|
---|
303 | Overwriting this template can be used to change the content of sections.
|
---|
304 | -->
|
---|
305 | <!--
|
---|
306 | <gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
|
---|
307 | -->
|
---|
308 | </format>
|
---|
309 | </display>
|
---|
310 | <replaceListRef id="gs2-standard"/>
|
---|
311 | </CollectionConfig>
|
---|