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

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

Another DEC collection now runs. The collection descriptions are still GS2 specific, but will need to discuss with Kathy later before fixing on final versions. Also need to ask her how the section_text variable can get loaded when referenced from collectionConfig.xml (it's now defined in resources\collectionConfig properties.

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