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">Cascading Style Sheets</displayItem>
|
---|
11 | <displayItem dictionary="collectionConfig" key="description1" name="description1"/>
|
---|
12 | <displayItem dictionary="collectionConfig" key="description2" name="description2"/>
|
---|
13 | <displayItem dictionary="collectionConfig" key="description3" name="description3"/>
|
---|
14 | <displayItem dictionary="collectionConfig" key="description4" name="description4"/>
|
---|
15 | </displayItemList>
|
---|
16 | <format> <xsl:template name="additionalHeaderContent">
|
---|
17 | <xsl:variable name="httpCollection">
|
---|
18 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
19 | </xsl:variable>
|
---|
20 | <!--
|
---|
21 | <link href="{$httpCollection}/style/custom-style.css" rel="stylesheet" type="text/css"/>
|
---|
22 | -->
|
---|
23 | <link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"
|
---|
24 | title="GS3 Style" id="custom-style" charset="UTF-8"/>
|
---|
25 |
|
---|
26 | <script src="{$httpCollection}/script/custom-script.js" type="text/javascript">
|
---|
27 | </script>
|
---|
28 |
|
---|
29 | </xsl:template>
|
---|
30 |
|
---|
31 |
|
---|
32 | <xsl:template name="create-banner">
|
---|
33 | <div class="choose_style">
|
---|
34 | Choose a style:
|
---|
35 | <a href="#" onclick="replaceStyle('gs3-style-default-extra');return false;">Default Greenstone</a>,
|
---|
36 | <a href="#" onclick="replaceStyle('gs3-style-blue');return false;">Blue</a>,
|
---|
37 | <a href="#" onclick="replaceStyle('gs3-style-olive-purple');return false;">OlivePurple</a>,
|
---|
38 | <a href="#" onclick="replaceStyle('');return false;">None</a>
|
---|
39 | </div>
|
---|
40 |
|
---|
41 | <div id="gs_banner" class="ui-widget-header ui-corner-bottom">
|
---|
42 | <div id="titlesearchcontainer">
|
---|
43 |
|
---|
44 | <xsl:call-template name="page-title-area"/>
|
---|
45 | <xsl:call-template name="quick-search-area"/>
|
---|
46 | <div style="clear:both;"><xsl:text> </xsl:text></div>
|
---|
47 | </div>
|
---|
48 | <xsl:call-template name="browsing-tabs"/>
|
---|
49 |
|
---|
50 |
|
---|
51 | </div>
|
---|
52 | </xsl:template>
|
---|
53 | </format>
|
---|
54 | <search type="mgpp">
|
---|
55 | <index name="text">
|
---|
56 | <displayItem lang="en" name="name">text</displayItem>
|
---|
57 | </index>
|
---|
58 | <index name="dls.Keyword">
|
---|
59 | <displayItem lang="en" name="name">dls.Keyword</displayItem>
|
---|
60 | </index>
|
---|
61 | <index name="dls.Subject">
|
---|
62 | <displayItem lang="en" name="name">dls.Subject</displayItem>
|
---|
63 | </index>
|
---|
64 | <index name="dls.Organization">
|
---|
65 | <displayItem lang="en" name="name">dls.Organization</displayItem>
|
---|
66 | </index>
|
---|
67 | <index name="dls.Title,Title">
|
---|
68 | <displayItem lang="en" name="name">dls.Title,Title</displayItem>
|
---|
69 | </index>
|
---|
70 | <defaultIndex name="text"/>
|
---|
71 | <level name="section">
|
---|
72 | <displayItem lang="en" name="name">_textchapter_</displayItem>
|
---|
73 | </level>
|
---|
74 | <level name="document">
|
---|
75 | <displayItem lang="en" name="name">_textbook_</displayItem>
|
---|
76 | </level>
|
---|
77 | <defaultLevel name="section"/>
|
---|
78 | <indexOption name="casefold"/>
|
---|
79 | <indexOption name="stem"/>
|
---|
80 | <searchType name="plain"/>
|
---|
81 | <searchType name="simpleform"/>
|
---|
82 | <searchType name="advancedform"/>
|
---|
83 | <format>
|
---|
84 | <gsf:template match="documentNode">
|
---|
85 | <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>
|
---|
86 | <td valign="top">
|
---|
87 | <gsf:link type="document">
|
---|
88 | <gsf:icon type="document"/>
|
---|
89 | </gsf:link>
|
---|
90 | </td>
|
---|
91 | <td>
|
---|
92 | <gsf:switch>
|
---|
93 | <gsf:metadata name="Title"/>
|
---|
94 | <gsf:when test="exists"><gsf:metadata name="Title"/>:</gsf:when>
|
---|
95 | </gsf:switch>
|
---|
96 | <gsf:link type="document">
|
---|
97 | <gsf:metadata name="Title"/>
|
---|
98 | </gsf:link>
|
---|
99 | </td>
|
---|
100 | </gsf:template>
|
---|
101 | </format>
|
---|
102 | </search>
|
---|
103 | <infodb type="gdbm"/>
|
---|
104 | <import>
|
---|
105 | <pluginList>
|
---|
106 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
107 | <plugin name="HTMLPlugin">
|
---|
108 | <option name="-description_tags"/>
|
---|
109 | </plugin>
|
---|
110 | <plugin name="MetadataXMLPlugin"/>
|
---|
111 | <plugin name="ArchivesInfPlugin"/>
|
---|
112 | <plugin name="DirectoryPlugin"/>
|
---|
113 | </pluginList>
|
---|
114 | </import>
|
---|
115 | <browse>
|
---|
116 | <classifier name="List">
|
---|
117 | <option name="-metadata" value="dls.Title"/>
|
---|
118 | <option name="-partition_type_within_level" value="constant_size"/>
|
---|
119 | </classifier>
|
---|
120 | <classifier name="Hierarchy">
|
---|
121 | <option name="-metadata" value="dls.Subject"/>
|
---|
122 | <option name="-sort" value="dls.Title"/>
|
---|
123 | </classifier>
|
---|
124 | <classifier name="List">
|
---|
125 | <option name="-sort_leaf_nodes_using" value="dls.Title"/>
|
---|
126 | <option name="-metadata" value="dls.Organization"/>
|
---|
127 | <option name="-bookshelf_type" value="always"/>
|
---|
128 | <option name="-partition_type_within_level" value="constant_size"/>
|
---|
129 | </classifier>
|
---|
130 | <classifier name="List">
|
---|
131 | <option name="-metadata" value="dls.Keyword"/>
|
---|
132 | <option name="-buttonname" value="Howto"/>
|
---|
133 | <option name="-partition_type_within_level" value="constant_size"/>
|
---|
134 | <format>
|
---|
135 | <gsf:template match="documentNode">
|
---|
136 | <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
|
---|
137 | <td>
|
---|
138 | <gsf:link type="document">
|
---|
139 | <gsf:icon type="document"/>
|
---|
140 | </gsf:link>
|
---|
141 | </td>
|
---|
142 | <td>
|
---|
143 | <gsf:link type="document">
|
---|
144 | <gsf:metadata name="dls.Keyword"/>
|
---|
145 | </gsf:link>
|
---|
146 | </td>
|
---|
147 | </gsf:template>
|
---|
148 | <gsf:template match="classifierNode">
|
---|
149 | <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]]]></gsf:format-gs2>
|
---|
150 | <td>
|
---|
151 | <gsf:link type="classifier">
|
---|
152 | <gsf:icon type="classifier"/>
|
---|
153 | </gsf:link>
|
---|
154 | </td>
|
---|
155 | <td>
|
---|
156 | <gsf:link type="classifier">
|
---|
157 | <gsf:metadata name="dls.Keyword"/>
|
---|
158 | </gsf:link>
|
---|
159 | </td>
|
---|
160 | </gsf:template>
|
---|
161 | </format>
|
---|
162 | </classifier>
|
---|
163 | <format>
|
---|
164 | <gsf:template match="documentNode">
|
---|
165 | <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[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>
|
---|
166 | <td valign="top">
|
---|
167 | <gsf:link type="document">
|
---|
168 | <gsf:icon type="document"/>
|
---|
169 | </gsf:link>
|
---|
170 | </td>
|
---|
171 | <td valign="top">
|
---|
172 | <span class="highlight">
|
---|
173 | <gsf:choose-metadata><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
|
---|
174 | </span>
|
---|
175 | <gsf:switch>
|
---|
176 | <gsf:metadata name="Date"/>
|
---|
177 | <gsf:when test="exists">
|
---|
178 | <br/>
|
---|
179 | <small>
|
---|
180 | <i>_textdate_<gsf:metadata name="Date"/></i>
|
---|
181 | </small>
|
---|
182 | </gsf:when>
|
---|
183 | </gsf:switch>
|
---|
184 | <gsf:switch>
|
---|
185 | <gsf:metadata name="NumPages"/>
|
---|
186 | <gsf:when test="exists">
|
---|
187 | <br/>
|
---|
188 | <small>
|
---|
189 | <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
|
---|
190 | </small>
|
---|
191 | </gsf:when>
|
---|
192 | </gsf:switch>
|
---|
193 | <gsf:switch>
|
---|
194 | <gsf:metadata name="Source"/>
|
---|
195 | <gsf:when test="exists">
|
---|
196 | <br/>
|
---|
197 | <small>
|
---|
198 | <i>_textsource_<gsf:metadata name="Source"/></i>
|
---|
199 | </small>
|
---|
200 | </gsf:when>
|
---|
201 | </gsf:switch>
|
---|
202 | </td>
|
---|
203 | </gsf:template>
|
---|
204 | <gsf:template match="classifierNode">
|
---|
205 | <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[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>
|
---|
206 | <td valign="top">
|
---|
207 | <gsf:link type="classifier">
|
---|
208 | <gsf:icon type="classifier"/>
|
---|
209 | </gsf:link>
|
---|
210 | </td>
|
---|
211 | <td valign="top">
|
---|
212 | <span class="highlight">
|
---|
213 | <gsf:choose-metadata><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
|
---|
214 | </span>
|
---|
215 | <gsf:switch>
|
---|
216 | <gsf:metadata name="Date"/>
|
---|
217 | <gsf:when test="exists">
|
---|
218 | <br/>
|
---|
219 | <small>
|
---|
220 | <i>_textdate_<gsf:metadata name="Date"/></i>
|
---|
221 | </small>
|
---|
222 | </gsf:when>
|
---|
223 | </gsf:switch>
|
---|
224 | <gsf:switch>
|
---|
225 | <gsf:metadata name="NumPages"/>
|
---|
226 | <gsf:when test="exists">
|
---|
227 | <br/>
|
---|
228 | <small>
|
---|
229 | <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
|
---|
230 | </small>
|
---|
231 | </gsf:when>
|
---|
232 | </gsf:switch>
|
---|
233 | <gsf:switch>
|
---|
234 | <gsf:metadata name="Source"/>
|
---|
235 | <gsf:when test="exists">
|
---|
236 | <br/>
|
---|
237 | <small>
|
---|
238 | <i>_textsource_<gsf:metadata name="Source"/></i>
|
---|
239 | </small>
|
---|
240 | </gsf:when>
|
---|
241 | </gsf:switch>
|
---|
242 | </td>
|
---|
243 | </gsf:template>
|
---|
244 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
245 | <gsf:format-gs2><![CDATA[[link][highlight][Title][/highlight][/link]]]></gsf:format-gs2>
|
---|
246 | <gsf:link type="classifier">
|
---|
247 | <span class="highlight">
|
---|
248 | <gsf:metadata name="Title"/>
|
---|
249 | </span>
|
---|
250 | </gsf:link>
|
---|
251 | </gsf:template>
|
---|
252 | </format>
|
---|
253 | </browse>
|
---|
254 | <display>
|
---|
255 | <format>
|
---|
256 | <gsf:option name="TOC" value="true"/>
|
---|
257 | <gsf:option name="AllowUserComments" value="false"/>
|
---|
258 | <!--
|
---|
259 | Overwriting this template allows you to change the heading of the document.
|
---|
260 | -->
|
---|
261 | <!--
|
---|
262 | <gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
|
---|
263 | -->
|
---|
264 | <!--
|
---|
265 | 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.
|
---|
266 | -->
|
---|
267 | <!--
|
---|
268 | <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>
|
---|
269 | -->
|
---|
270 | <!--
|
---|
271 | Overwriting this template can be used to change the content of section headings.
|
---|
272 | -->
|
---|
273 | <!--
|
---|
274 | <gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
|
---|
275 | -->
|
---|
276 | <!--
|
---|
277 | Overwriting this template can be used to change the content of the top-level section.
|
---|
278 | -->
|
---|
279 | <!--
|
---|
280 | <gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
|
---|
281 | -->
|
---|
282 | <!--
|
---|
283 | Overwriting this template can be used to change the content of sections.
|
---|
284 | -->
|
---|
285 | <!--
|
---|
286 | <gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
|
---|
287 | -->
|
---|
288 | </format>
|
---|
289 | </display>
|
---|
290 | <replaceListRef id="gs2-standard"/>
|
---|
291 | </CollectionConfig>
|
---|