source: documented-examples/trunk/gsarch-e/etc/collectionConfig.xml@ 38765

Last change on this file since 38765 was 36472, checked in by anupama, 22 months ago

Kathy explained what the groupsize importOption, that GS3 needs to mimic for 2 DEC collections which used this option in GS2. Also adjusted the documentHeading in gsarch-e collection, to better match the original collection description.

File size: 14.2 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">Greenstone Archives collection</displayItem>
11 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
12 <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
13 <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
14 <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
15 <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
16 <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="description7" name="description7"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key="SearchBySender" name="SearchBySender"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key="Subject" name="Subject"/>
21 <displayItem assigned="true" dictionary="collectionConfig" key="Date" name="Date"/>
22 <displayItem assigned="true" dictionary="collectionConfig" key="From" name="From"/>
23 <displayItem assigned="true" dictionary="collectionConfig" key="ReplyTo" name="ReplyTo"/>
24 </displayItemList>
25 <format/>
26 <search type="mg">
27 <index name="document:From">
28 <displayItem assigned="true" dictionary="collectionConfig" key="index_from" name="name"/>
29 </index>
30 <index name="document:text">
31 <displayItem assigned="true" dictionary="collectionConfig" key="index_text" name="name"/>
32 </index>
33 <index name="document:Subject">
34 <displayItem assigned="true" dictionary="collectionConfig" key="index_subject" name="name"/>
35 </index>
36 <defaultIndex name="document:text"/>
37 <indexOption name="casefold"/>
38 <indexOption name="stem"/>
39 <searchType name="plain"/>
40 <searchType name="simpleform"/>
41 <searchType name="advancedform"/>
42 <format>
43 <gsf:template match="documentNode">
44 <gsf:format-gs2><![CDATA[
45<td valign=top>[link][icon][/link]
46</td>
47<td>
48<b>[link][Subject][/link]
49</b>
50<br> _From_: [FromName] &nbsp;&nbsp;(
51<a href="_httpquery_&q=[cgisafe:FromName]&h=dfr">_SearchBySender_
52</a>)
53<br> _Date_: [DateText]
54</td> ]]></gsf:format-gs2>
55 <table>
56 <tr>
57 <td valign="top">
58 <gsf:link type="document">
59 <gsf:icon type="document"/>
60 </gsf:link>
61 </td>
62 <td><b><gsf:link type="document"><gsf:metadata name="Subject"/></gsf:link></b><br/><gsf:displayItem name="From"/>:<gsf:metadata name="FromName"/> (<a><xsl:attribute name="href"><xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/interfaceOptions/option[@name='library_name']/@value"/>/collection/<xsl:value-of disable-output-escaping="yes" select="/page/pageRequest/paramList/param[@name='c']/@value"/>/search/TextQuery?qs=1&amp;rt=rd&amp;s1.level=&amp;startPage=1&amp;s1.index=dfr&amp;s1.query=&amp;quot;<gsf:metadata name="FromName"/>&amp;quot;</xsl:attribute><gsf:displayItem name="SearchBySender"/></a>)<br/><gsf:displayItem name="Date"/>:<gsf:metadata name="DateText"/></td>
63 </tr>
64 </table>
65 </gsf:template>
66 </format>
67 </search>
68 <infodb type="gdbm"/>
69 <import>
70 <pluginList>
71 <plugin name="GreenstoneXMLPlugin"/>
72 <plugin name="EmailPlugin">
73 <option name="-process_exp" value="greenstone.*"/>
74 <option name="-OIDtype" value="message_id"/>
75 </plugin>
76 <plugin name="MetadataXMLPlugin"/>
77 <plugin name="ArchivesInfPlugin"/>
78 <plugin name="DirectoryPlugin"/>
79 </pluginList>
80 </import>
81 <browse>
82 <classifier name="AZCompactList">
83 <option name="-metadata" value="Subject"/>
84 <option name="-mingroup" value="2"/>
85 <option name="-removeprefix" value="(\\s*(?i:re:|fw(d)?:|\&amp;#91;greenstone-(users|devel)\&amp;#93;)\\s*)*"/>
86 <format>
87 <gsf:template match="documentNode">
88 <gsf:format-gs2><![CDATA[
89<td valign=top>[link][icon][/link]
90</td>
91<td>{If}{[numleafdocs],
92<b>[Title]
93</b>,
94<b>[link][Subject][/link]
95</b>
96<br> _From_: [FromName] &nbsp;&nbsp;(
97<a href="_httpquery_&q=[cgisafe:FromName]&h=dfr">_SearchBySender_
98</a>)
99<br> _Date_: [DateText]}
100</td> ]]></gsf:format-gs2>
101 <table>
102 <tr>
103 <td valign="top">
104 <gsf:link type="document">
105 <gsf:icon type="document"/>
106 </gsf:link>
107 </td>
108 <td><b><gsf:link type="document"><gsf:metadata name="Subject"/></gsf:link></b><br/><gsf:displayItem name="From"/>:<gsf:metadata name="FromName"/> (<a><xsl:attribute name="href"><xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/interfaceOptions/option[@name='library_name']/@value"/>/collection/<xsl:value-of disable-output-escaping="yes" select="/page/pageRequest/paramList/param[@name='c']/@value"/>/search/TextQuery?qs=1&amp;rt=rd&amp;s1.level=&amp;startPage=1&amp;s1.index=dfr&amp;s1.query=&amp;quot;<gsf:metadata name="FromName"/>&amp;quot;</xsl:attribute><gsf:displayItem name="SearchBySender"/></a>)<br/><gsf:displayItem name="Date"/>:<gsf:metadata name="DateText"/></td>
109 </tr>
110 </table>
111 </gsf:template>
112 <gsf:template match="classifierNode">
113 <gsf:format-gs2><![CDATA[
114<td valign=top>[link][icon][/link]
115</td>
116<td>{If}{[numleafdocs],
117<b>[Title]
118</b>,
119<b>[link][Subject][/link]
120</b>
121<br> _From_: [FromName] &nbsp;&nbsp;(
122<a href="_httpquery_&q=[cgisafe:FromName]&h=dfr">_SearchBySender_
123</a>)
124<br> _Date_: [DateText]}
125</td> ]]></gsf:format-gs2>
126 <table>
127 <tr>
128 <td valign="top">
129 <gsf:link type="classifier">
130 <gsf:icon type="classifier"/>
131 </gsf:link>
132 </td>
133 <td>
134 <b>
135 <gsf:metadata name="Title"/>
136 </b>
137 </td>
138 </tr>
139 </table>
140 </gsf:template>
141 </format>
142 </classifier>
143 <classifier name="AZCompactList">
144 <option name="-metadata" value="FromName"/>
145 <option name="-mingroup" value="2"/>
146 <option name="-buttonname" value="From"/>
147 <format>
148 <gsf:template match="documentNode">
149 <gsf:format-gs2><![CDATA[
150<td valign=top>[link][icon][/link]
151</td>
152<td>{If}{[numleafdocs],
153<strong>_From_:
154</strong> [Title] ([numleafdocs]),
155<strong>_From_: [FromName]
156</strong> &nbsp;&nbsp;(
157<a href="_httpquery_&q=[cgisafe:FromName]&h=dfr">_SearchBySender_
158</a>)
159<br>
160<strong>_Subject_:
161</strong> [link][Subject][/link]
162<br>
163<strong>_Date_:
164</strong> [DateText] }
165</td> ]]></gsf:format-gs2>
166 <table>
167 <tr>
168 <td valign="top">
169 <gsf:link type="document">
170 <gsf:icon type="document"/>
171 </gsf:link>
172 </td>
173 <td><strong><gsf:displayItem name="From"/>:<gsf:metadata name="FromName"/></strong> (<a><xsl:attribute name="href"><xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/interfaceOptions/option[@name='library_name']/@value"/>/collection/<xsl:value-of disable-output-escaping="yes" select="/page/pageRequest/paramList/param[@name='c']/@value"/>/search/TextQuery?qs=1&amp;rt=rd&amp;s1.level=&amp;startPage=1&amp;s1.index=dfr&amp;s1.query=&amp;quot;<gsf:metadata name="FromName"/>&amp;quot;</xsl:attribute><gsf:displayItem name="SearchBySender"/></a>)<br/><strong><gsf:displayItem name="Subject"/>:</strong><gsf:link type="document"><gsf:metadata name="Subject"/></gsf:link><br/><strong><gsf:displayItem name="Date"/>:</strong><gsf:metadata name="DateText"/></td>
174 </tr>
175 </table>
176 </gsf:template>
177 <gsf:template match="classifierNode">
178 <gsf:format-gs2><![CDATA[
179<td valign=top>[link][icon][/link]
180</td>
181<td>{If}{[numleafdocs],
182<strong>_From_:
183</strong> [Title] ([numleafdocs]),
184<strong>_From_: [FromName]
185</strong> &nbsp;&nbsp;(
186<a href="_httpquery_&q=[cgisafe:FromName]&h=dfr">_SearchBySender_
187</a>)
188<br>
189<strong>_Subject_:
190</strong> [link][Subject][/link]
191<br>
192<strong>_Date_:
193</strong> [DateText] }
194</td> ]]></gsf:format-gs2>
195 <table>
196 <tr>
197 <td valign="top">
198 <gsf:link type="classifier">
199 <gsf:icon type="classifier"/>
200 </gsf:link>
201 </td>
202 <td><strong><gsf:displayItem name="From"/>:</strong><gsf:metadata name="Title"/> (<gsf:metadata name="numleafdocs"/>)</td>
203 </tr>
204 </table>
205 </gsf:template>
206 </format>
207 </classifier>
208 <classifier name="DateList">
209 <option name="-nogroup"/>
210 <format>
211 <gsf:template match="documentNode">
212 <gsf:format-gs2><![CDATA[
213<td>[link][icon][/link]
214</td>
215<td>[highlight]{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}[/highlight]
216</td>
217<td>{Or}{[dc.Date],[exp.Date],[ex.Date]}
218</td>]]></gsf:format-gs2>
219 <td>
220 <gsf:link type="document">
221 <gsf:icon type="document"/>
222 </gsf:link>
223 </td>
224 <td>
225 <span class="highlight">
226 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
227 </span>
228 </td>
229 <td>
230 <gsf:choose-metadata>
231 <gsf:metadata name="dc.Date"/>
232 <gsf:metadata name="exp.Date"/>
233 <gsf:metadata name="Date"/>
234 </gsf:choose-metadata>
235 </td>
236 </gsf:template>
237 </format>
238 </classifier>
239 <format>
240 <gsf:template match="documentNode">
241 <gsf:format-gs2><![CDATA[
242<td valign="top">[link][icon][/link]
243</td>
244<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
245</td>
246<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
247<br>
248<i>([ex.Source])
249</i>}
250</td>]]></gsf:format-gs2>
251 <td valign="top">
252 <gsf:link type="document">
253 <gsf:icon type="document"/>
254 </gsf:link>
255 </td>
256 <td valign="top">
257 <gsf:link type="source">
258 <gsf:choose-metadata>
259 <gsf:metadata name="thumbicon"/>
260 <gsf:metadata name="srcicon"/>
261 </gsf:choose-metadata>
262 </gsf:link>
263 </td>
264 <td valign="top">
265 <span class="highlight">
266 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
267 </span>
268 <gsf:switch>
269 <gsf:metadata name="Source"/>
270 <gsf:when test="exists">
271 <br/>
272 <i>(<gsf:metadata name="Source"/>)</i>
273 </gsf:when>
274 </gsf:switch>
275 </td>
276 </gsf:template>
277 <gsf:template match="classifierNode">
278 <gsf:format-gs2><![CDATA[
279<td valign="top">[link][icon][/link]
280</td>
281<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
282</td>
283<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
284<br>
285<i>([ex.Source])
286</i>}
287</td>]]></gsf:format-gs2>
288 <td valign="top">
289 <gsf:link type="classifier">
290 <gsf:icon type="classifier"/>
291 </gsf:link>
292 </td>
293 <td valign="top">
294 <gsf:link type="source">
295 <gsf:choose-metadata>
296 <gsf:metadata name="thumbicon"/>
297 <gsf:metadata name="srcicon"/>
298 </gsf:choose-metadata>
299 </gsf:link>
300 </td>
301 <td valign="top">
302 <span class="highlight">
303 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
304 </span>
305 <gsf:switch>
306 <gsf:metadata name="Source"/>
307 <gsf:when test="exists">
308 <br/>
309 <i>(<gsf:metadata name="Source"/>)</i>
310 </gsf:when>
311 </gsf:switch>
312 </td>
313 </gsf:template>
314 <gsf:template match="classifierNode" mode="horizontal">
315 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
316 <gsf:link type="classifier">
317 <span class="highlight">
318 <gsf:metadata name="Title"/>
319 </span>
320 </gsf:link>
321 </gsf:template>
322 </format>
323 </browse>
324 <display>
325 <format> <gsf:option name="TOC" value="true"/>
326 <gsf:option name="AllowUserComments" value="false"/>
327 <gsf:template name="documentHeading">
328 <span style="font-weight:bold; font-size: 120%;">
329 <table>
330 <tr>
331 <td><gsf:displayItem name="From"/>: <gsf:metadata name="FromName"/></td>
332 </tr>
333 <tr>
334 <td><gsf:displayItem name="Date"/>: <gsf:metadata name="DateText"/></td>
335 </tr>
336 <tr>
337 <td><gsf:displayItem name="Subject"/>: <gsf:metadata name="Subject"/></td>
338 </tr>
339 <gsf:switch><gsf:metadata name='InReplyTo'/><gsf:when test='exists'><tr><td><gsf:displayItem name="ReplyTo"/>: <gsf:metadata name="InReplyTo"/></td></tr></gsf:when></gsf:switch>
340
341 </table>
342 </span>
343 </gsf:template>
344<!--
345Overwriting this template allows you to change the heading of the document.
346-->
347<!--
348<gsf:template name="documentHeading">
349<span style="font-weight:bold; font-size: 120%;">
350<xsl:call-template name="choose-title"/>
351</span>
352</gsf:template>
353-->
354<!--
355Overwriting 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.
356-->
357<!--
358<gsf:template name="documentContent">
359<div id="gs-document">
360<xsl:call-template name="documentPre"/>
361<xsl:call-template name="wrappedSectionImage"/>
362<div id="gs-document-text">
363<xsl:call-template name="documentNodeText"/>
364</div>
365</div>
366</gsf:template>
367-->
368<!--
369Overwriting this template can be used to change the content of section headings.
370-->
371<!--
372<gsf:template name="sectionHeading">
373<xsl:call-template name="choose-title"/>
374</gsf:template>
375-->
376<!--
377Overwriting this template can be used to change the content of the top-level section.
378-->
379<!--
380<gsf:template name="topLevelSectionContent">
381<xsl:call-template name="wrappedSectionImage"/>
382<xsl:call-template name="wrappedSectionText"/>
383</gsf:template>
384-->
385<!--
386Overwriting this template can be used to change the content of sections.
387-->
388<!--
389<gsf:template name="sectionContent">
390<xsl:call-template name="wrappedSectionImage"/>
391<xsl:call-template name="wrappedSectionText"/>
392</gsf:template>
393-->
394
395</format>
396 </display>
397 <replaceListRef id="gs2-standard"/>
398 <importOption name="groupsize" value="200"/>
399</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.