source: documented-examples/trunk/pagedimg-e/etc/collectionConfig.xml

Last change on this file was 38866, checked in by kjdon, 5 weeks ago

shortDescription was also used in about page, where its useful to have the html markup. so added description1a, which is a marked up version of shortDescription, to be used in about page. shortDEscription now just used for tooltip

File size: 9.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 <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 assigned="true" dictionary="collectionConfig" key="name" name="name"/>
10 <displayItem assigned="true" lang="en" name="name">Paged Image Example</displayItem>
11 <displayItem assigned="true" dictionary="collectionConfig" key="section_text" name="section_text"/>
12 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
13 <displayItem assigned="true" dictionary="collectionConfig" key="description1a" name="description1a"/>
14 <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
15 <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
16 <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key="description7" name="description7"/>
21 </displayItemList>
22 <format/>
23 <search type="mg">
24 <index name="section:text">
25 <displayItem assigned="true" dictionary="collectionConfig" key="section_text" name="name"/>
26 </index>
27 <defaultIndex name="section:text"/>
28 <indexOption name="casefold"/>
29 <indexOption name="stem"/>
30 <searchType name="plain"/>
31 <searchType name="simpleform"/>
32 <searchType name="advancedform"/>
33 <format>
34 <gsf:template match="documentNode">
35 <gsf:format-gs2><![CDATA[
36<td valign=top>[link][icon][/link]
37</td>
38<td valign=top>[parent(Top):Series] {If}{[parent(Top):Volume],Vol. [parent(Top):Volume]} {If}{[parent(Top):Number],No. [parent(Top):Number]} Page [Title]
39</td>]]></gsf:format-gs2>
40 <td valign="top">
41 <gsf:link type="document">
42 <gsf:icon type="document"/>
43 </gsf:link>
44 </td>
45 <td valign="top"><gsf:metadata name="Series"/><gsf:switch><gsf:metadata name="Volume"/><gsf:when test="exists">Vol.<gsf:metadata name="Volume"/></gsf:when></gsf:switch><gsf:switch><gsf:metadata name="Number"/><gsf:when test="exists">No.<gsf:metadata name="Number"/></gsf:when></gsf:switch> Page<gsf:metadata name="Title"/></td>
46 </gsf:template>
47 </format>
48 </search>
49 <infodb type="gdbm"/>
50 <import>
51 <pluginList>
52 <plugin name="GreenstoneXMLPlugin"/>
53 <plugin name="PagedImagePlugin">
54 <option name="-process_exp" value="xml.*\.item$"/>
55 <option name="-create_screenview" value="true"/>
56 <option name="-OIDtype" value="assigned"/>
57 <option name="-minimumsize" value="100"/>
58 <option name="-OIDmetadata" value="ItemOID"/>
59 <option name="-documenttype" value="hierarchy"/>
60 </plugin>
61 <plugin name="PagedImagePlugin">
62 <option name="-create_screenview" value="true"/>
63 <option name="-OIDtype" value="assigned"/>
64 <option name="-minimumsize" value="100"/>
65 <option name="-OIDmetadata" value="ItemOID"/>
66 <option name="-documenttype" value="paged"/>
67 </plugin>
68 <plugin name="MetadataXMLPlugin"/>
69 <plugin name="ArchivesInfPlugin"/>
70 <plugin name="DirectoryPlugin"/>
71 </pluginList>
72 </import>
73 <browse>
74 <classifier name="AZCompactList">
75 <option name="-metadata" value="Series"/>
76 <option name="-sort" value="Date"/>
77 <format>
78 <gsf:template match="documentNode">
79 <gsf:format-gs2><![CDATA[
80<td valign=top>[link][icon][/link]
81</td>
82<td valign=top>{If}{[numleafdocs],[Title],{If}{[Volume],Vol. [Volume]} {If}{[Number],No. [Number]} ([format:Date])}
83</td>]]></gsf:format-gs2>
84 <td valign="top">
85 <gsf:link type="document">
86 <gsf:icon type="document"/>
87 </gsf:link>
88 </td>
89 <td valign="top"><gsf:switch><gsf:metadata name="Volume"/><gsf:when test="exists">Vol.<gsf:metadata name="Volume"/></gsf:when></gsf:switch><gsf:switch><gsf:metadata name="Number"/><gsf:when test="exists">No.<gsf:metadata name="Number"/></gsf:when></gsf:switch> (<gsf:metadata name="Date"/>)</td>
90 </gsf:template>
91 <gsf:template match="classifierNode">
92 <gsf:format-gs2><![CDATA[
93<td valign=top>[link][icon][/link]
94</td>
95<td valign=top>{If}{[numleafdocs],[Title],{If}{[Volume],Vol. [Volume]} {If}{[Number],No. [Number]} ([format:Date])}
96</td>]]></gsf:format-gs2>
97 <td valign="top">
98 <gsf:link type="classifier">
99 <gsf:icon type="classifier"/>
100 </gsf:link>
101 </td>
102 <td valign="top">
103 <gsf:metadata name="Title"/>
104 </td>
105 </gsf:template>
106 </format>
107 </classifier>
108 <classifier name="DateList">
109 <format>
110 <gsf:template match="documentNode">
111 <gsf:format-gs2><![CDATA[
112<td valign=top>[link][icon][/link]
113</td>
114<td valign=top>[Series] {If}{[Volume],Vol. [Volume]} {If}{[Number],No. [Number]}
115</td>]]></gsf:format-gs2>
116 <td valign="top">
117 <gsf:link type="document">
118 <gsf:icon type="document"/>
119 </gsf:link>
120 </td>
121 <td valign="top">
122 <gsf:metadata name="Series"/>
123 <gsf:switch>
124 <gsf:metadata name="Volume"/>
125 <gsf:when test="exists">Vol.<gsf:metadata name="Volume"/></gsf:when>
126 </gsf:switch>
127 <gsf:switch>
128 <gsf:metadata name="Number"/>
129 <gsf:when test="exists">No.<gsf:metadata name="Number"/></gsf:when>
130 </gsf:switch>
131 </td>
132 </gsf:template>
133 </format>
134 </classifier>
135 <format>
136 <gsf:template match="documentNode">
137 <gsf:format-gs2><![CDATA[
138<td valign="top">[link][icon][/link]
139</td>
140<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
141</td>
142<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
143<br>
144<i>([ex.Source])
145</i>}
146</td>]]></gsf:format-gs2>
147 <td valign="top">
148 <gsf:link type="document">
149 <gsf:icon type="document"/>
150 </gsf:link>
151 </td>
152 <td valign="top">
153 <gsf:link type="source">
154 <gsf:choose-metadata>
155 <gsf:metadata name="thumbicon"/>
156 <gsf:metadata name="srcicon"/>
157 </gsf:choose-metadata>
158 </gsf:link>
159 </td>
160 <td valign="top">
161 <span class="highlight">
162 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
163 </span>
164 <gsf:switch>
165 <gsf:metadata name="Source"/>
166 <gsf:when test="exists">
167 <br/>
168 <i>(<gsf:metadata name="Source"/>)</i>
169 </gsf:when>
170 </gsf:switch>
171 </td>
172 </gsf:template>
173 <gsf:template match="classifierNode">
174 <gsf:format-gs2><![CDATA[
175<td valign="top">[link][icon][/link]
176</td>
177<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
178</td>
179<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
180<br>
181<i>([ex.Source])
182</i>}
183</td>]]></gsf:format-gs2>
184 <td valign="top">
185 <gsf:link type="classifier">
186 <gsf:icon type="classifier"/>
187 </gsf:link>
188 </td>
189 <td valign="top">
190 <gsf:link type="source">
191 <gsf:choose-metadata>
192 <gsf:metadata name="thumbicon"/>
193 <gsf:metadata name="srcicon"/>
194 </gsf:choose-metadata>
195 </gsf:link>
196 </td>
197 <td valign="top">
198 <span class="highlight">
199 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
200 </span>
201 <gsf:switch>
202 <gsf:metadata name="Source"/>
203 <gsf:when test="exists">
204 <br/>
205 <i>(<gsf:metadata name="Source"/>)</i>
206 </gsf:when>
207 </gsf:switch>
208 </td>
209 </gsf:template>
210 <gsf:template match="classifierNode" mode="horizontal">
211 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
212 <gsf:link type="classifier">
213 <span class="highlight">
214 <gsf:metadata name="Title"/>
215 </span>
216 </gsf:link>
217 </gsf:template>
218 </format>
219 </browse>
220 <display>
221 <format>
222 <gsf:option name="TOC" value="true"/>
223 <gsf:option name="AllowUserComments" value="false"/>
224<!--
225Overwriting this template allows you to change the heading of the document.
226-->
227<!--
228<gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
229-->
230<!--
231Overwriting 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.
232-->
233<!--
234<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></gsf:template>
235-->
236<!--
237Overwriting this template can be used to change the content of section headings.
238-->
239<!--
240<gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
241-->
242<!--
243Overwriting this template can be used to change the content of the top-level section.
244-->
245<!--
246<gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
247-->
248<!--
249Overwriting this template can be used to change the content of sections.
250-->
251<!--
252<gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
253-->
254 </format>
255 </display>
256 <replaceListRef id="gs2-standard"/>
257 <replaceListRef id="gs2-image"/>
258</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.