source: documented-examples/trunk/wiki-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: 8.3 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="description" name="description"/>
10 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
11 <displayItem assigned="true" lang="en" name="name">MediaWiki collection</displayItem>
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="description4" name="description5"/>
18 </displayItemList>
19 <format/>
20 <search type="mgpp">
21 <level name="document"/>
22 <defaultLevel name="document"/>
23 <index name="Source">
24 <displayItem assigned="true" dictionary="collectionConfig" key="index_Source" name="name"/>
25 </index>
26 <index name="Title">
27 <displayItem assigned="true" dictionary="collectionConfig" key="index_Title" name="name"/>
28 </index>
29 <index name="text">
30 <displayItem assigned="true" dictionary="collectionConfig" key="index_text" name="name"/>
31 </index>
32 <defaultIndex name="text"/>
33 <indexOption name="casefold"/>
34 <indexOption name="stem"/>
35 <searchType name="plain"/>
36 <searchType name="simpleform"/>
37 <searchType name="advancedform"/>
38 <format>
39 <gsf:template match="documentNode">
40 <gsf:format-gs2><![CDATA[
41<td valign="top">[link][icon][/link]
42</td>
43<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
44</td>
45<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
46<br>
47<i>([ex.Source])
48</i>}
49</td>]]></gsf:format-gs2>
50 <td valign="top">
51 <gsf:link type="document">
52 <gsf:icon type="document"/>
53 </gsf:link>
54 </td>
55 <td valign="top">
56 <gsf:link type="source">
57 <gsf:choose-metadata>
58 <gsf:metadata name="thumbicon"/>
59 <gsf:metadata name="srcicon"/>
60 </gsf:choose-metadata>
61 </gsf:link>
62 </td>
63 <td valign="top">
64 <span class="highlight">
65 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
66 </span>
67 <gsf:switch>
68 <gsf:metadata name="Source"/>
69 <gsf:when test="exists">
70 <br/>
71 <i>(<gsf:metadata name="Source"/>)</i>
72 </gsf:when>
73 </gsf:switch>
74 </td>
75 </gsf:template>
76 </format>
77 </search>
78 <infodb type="gdbm"/>
79 <import>
80 <pluginList>
81 <plugin name="GreenstoneXMLPlugin"/>
82 <plugin name="PDFv1Plugin">
83 <option name="-convert_to" value="html"/>
84 </plugin>
85 <plugin name="WordPlugin"/>
86 <plugin name="NulPlugin"/>
87 <plugin name="MediaWikiPlugin">
88 <option name="-show_toc"/>
89 <option name="-toc_exp" value="&lt;table([^>]*)id=(\&quot;|')toc(\&quot;|')(.|\n)*?&lt;/table>\n"/>
90 <option name="-delete_nav"/>
91 <option name="-nav_div_exp" value="&lt;div([^>]*)id=(\&quot;|')p-navigation(\&quot;|')(.|\n)*?&lt;/div>"/>
92 <option name="-searchbox_div_exp" value="&lt;div([^>]*)id=(\&quot;|')p-search(\&quot;|')(.|\n)*?&lt;/div>"/>
93 <option name="-delete_toc"/>
94 <option name="-remove_title_suffix_exp" value=" - (.*)"/>
95 </plugin>
96 <plugin name="MetadataXMLPlugin"/>
97 <plugin name="ArchivesInfPlugin"/>
98 <plugin name="DirectoryPlugin"/>
99 </pluginList>
100 </import>
101 <browse>
102 <classifier name="AZList">
103 <option name="-metadata" value="Title"/>
104 </classifier>
105 <classifier name="AZList">
106 <option name="-metadata" value="Source"/>
107 </classifier>
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">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
114</td>
115<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
116<br>
117<i>([ex.Source])
118</i>}
119</td>]]></gsf:format-gs2>
120 <td valign="top">
121 <gsf:link type="document">
122 <gsf:icon type="document"/>
123 </gsf:link>
124 </td>
125 <td valign="top">
126 <gsf:link type="source">
127 <gsf:choose-metadata>
128 <gsf:metadata name="thumbicon"/>
129 <gsf:metadata name="srcicon"/>
130 </gsf:choose-metadata>
131 </gsf:link>
132 </td>
133 <td valign="top">
134 <span class="highlight">
135 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
136 </span>
137 <gsf:switch>
138 <gsf:metadata name="Source"/>
139 <gsf:when test="exists">
140 <br/>
141 <i>(<gsf:metadata name="Source"/>)</i>
142 </gsf:when>
143 </gsf:switch>
144 </td>
145 </gsf:template>
146 <gsf:template match="classifierNode">
147 <gsf:format-gs2><![CDATA[
148<td valign="top">[link][icon][/link]
149</td>
150<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
151</td>
152<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
153<br>
154<i>([ex.Source])
155</i>}
156</td>]]></gsf:format-gs2>
157 <td valign="top">
158 <gsf:link type="classifier">
159 <gsf:icon type="classifier"/>
160 </gsf:link>
161 </td>
162 <td valign="top">
163 <gsf:link type="source">
164 <gsf:choose-metadata>
165 <gsf:metadata name="thumbicon"/>
166 <gsf:metadata name="srcicon"/>
167 </gsf:choose-metadata>
168 </gsf:link>
169 </td>
170 <td valign="top">
171 <span class="highlight">
172 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
173 </span>
174 <gsf:switch>
175 <gsf:metadata name="Source"/>
176 <gsf:when test="exists">
177 <br/>
178 <i>(<gsf:metadata name="Source"/>)</i>
179 </gsf:when>
180 </gsf:switch>
181 </td>
182 </gsf:template>
183 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
184 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
185 <gsf:link style="static" type="classifier">
186 <span class="highlight">
187 <gsf:metadata name="Title"/>
188 </span>
189 </gsf:link>
190 </gsf:template>
191 </format>
192 </browse>
193 <display>
194 <format>
195 <gsf:option name="TOC" value="true"/>
196 <gsf:option name="AllowUserComments" value="false"/>
197<!--
198Overwriting this template allows you to change the heading of the document.
199-->
200<!--
201<gsf:template name="documentHeading">
202<span style="font-weight:bold; font-size: 120%;">
203<xsl:call-template name="choose-title"/>
204</span>
205</gsf:template>
206-->
207<!--
208Overwriting 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.
209-->
210<!--
211<gsf:template name="documentContent">
212<div id="gs-document">
213<xsl:call-template name="documentPre"/>
214<xsl:call-template name="wrappedSectionImage"/>
215<div id="gs-document-text">
216<xsl:call-template name="documentNodeText"/>
217</div>
218</gsf:template>
219-->
220<!--
221Overwriting this template can be used to change the content of section headings.
222-->
223<!--
224<gsf:template name="sectionHeading">
225<xsl:call-template name="choose-title"/>
226</gsf:template>
227-->
228<!--
229Overwriting this template can be used to change the content of the top-level section.
230-->
231<!--
232<gsf:template name="topLevelSectionContent">
233<xsl:call-template name="wrappedSectionImage"/>
234<xsl:call-template name="wrappedSectionText"/>
235</gsf:template>
236-->
237<!--
238Overwriting this template can be used to change the content of sections.
239-->
240<!--
241<gsf:template name="sectionContent">
242<xsl:call-template name="wrappedSectionImage"/>
243<xsl:call-template name="wrappedSectionText"/>
244</gsf:template>
245-->
246 </format>
247 </display>
248 <replaceListRef id="gs2-standard"/>
249</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.