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

Last change on this file since 36368 was 36368, checked in by anupama, 21 months ago

Repeating previous commit for some more collections. Previous commit message: Following Kathy's advice to use displayItem elements with keys when they belong not in the list of toplevel displayItems, but under elements like index, where the name attributes have to keep the constant value of name

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