source: documented-examples/trunk/lomdemo-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: 10.5 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">LOM Demonstration</displayItem>
11 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
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="as" name="as"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="sc" name="sc"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="ar" name="ar"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key=".general^title" name=".general^title"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key=".general^description" name=".general^description"/>
21 <displayItem assigned="true" dictionary="collectionConfig" key=".text,rawtext" name=".text,rawtext"/>
22 <displayItem assigned="true" dictionary="collectionConfig" key=".general^keyword" name=".general^keyword"/>
23 </displayItemList>
24 <format> <xsl:template name="additionalHeaderContent">
25 <xsl:variable name="httpCollection">
26 <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
27 </xsl:variable>
28 <link href="{$httpCollection}/style/lom-style.css" rel="stylesheet" type="text/css"/>
29 <script src="{$httpCollection}/script/lomscript.js" type="text/javascript"> </script> </xsl:template>
30
31</format>
32 <search type="mgpp">
33 <level name="document"/>
34 <defaultLevel name="document"/>
35 <index name="general^keyword">
36 <displayItem assigned="true" dictionary="collectionConfig" key="general^keyword" name="name"/>
37 </index>
38 <index name="general^title">
39 <displayItem assigned="true" dictionary="collectionConfig" key="general^title" name="name"/>
40 </index>
41 <index name="text,rawtext">
42 <displayItem assigned="true" dictionary="collectionConfig" key="text_and_rawtext" name="name"/>
43 </index>
44 <index name="general^description">
45 <displayItem assigned="true" dictionary="collectionConfig" key="general^description" name="name"/>
46 </index>
47 <defaultIndex name="text"/>
48 <indexOption name="accentfold"/>
49 <indexOption name="casefold"/>
50 <indexOption name="stem"/>
51 <indexSubcollection name="arts,science">
52 <displayItem lang="en" name="name">arts,science</displayItem>
53 </indexSubcollection>
54 <indexSubcollection name="arts">
55 <displayItem lang="en" name="name">arts</displayItem>
56 </indexSubcollection>
57 <indexSubcollection name="science">
58 <displayItem lang="en" name="name">science</displayItem>
59 </indexSubcollection>
60 <subcollection filter="dc.Subject/Science" name="science"/>
61 <subcollection filter="dc.Subject/Arts" name="arts"/>
62 <searchType name="plain"/>
63 <searchType name="simpleform"/>
64 <searchType name="advancedform"/>
65 <format>
66 <gsf:template match="documentNode">
67 <gsf:format-gs2><![CDATA[
68<td>[link][icon][/link]
69</td>
70<td>{If}{[numleafdocs],([numleafdocs])}
71</td>
72<td>{OR}{[general^title],[Title]}
73</td>]]></gsf:format-gs2>
74 <td>
75 <gsf:link type="document">
76 <gsf:icon type="document"/>
77 </gsf:link>
78 </td>
79 <td/>
80 <td>
81 <gsf:choose-metadata>
82 <gsf:metadata name="general^title"/>
83 <gsf:metadata name="Title"/>
84 </gsf:choose-metadata>
85 </td>
86 </gsf:template>
87 </format>
88 </search>
89 <infodb type="gdbm"/>
90 <import>
91 <pluginList>
92 <plugin name="GreenstoneXMLPlugin"/>
93 <plugin name="LOMPlugin">
94 <option name="-download_srcdocs" value="(?i)\\.(html?|jpe?g|gif)$"/>
95 </plugin>
96 <plugin name="HTMLPlugin"/>
97 <plugin name="ImagePlugin"/>
98 <plugin name="PDFPlugin"/>
99 <plugin name="WordPlugin"/>
100 <plugin name="MetadataXMLPlugin"/>
101 <plugin name="ArchivesInfPlugin"/>
102 <plugin name="DirectoryPlugin"/>
103 </pluginList>
104 </import>
105 <browse>
106 <classifier name="List">
107 <option name="-metadata" value="dc.Subject/ex.general^title;Title"/>
108 <option name="-removesuffix" value="(\\s*(\\/|\\(|\\)|\\,|\\:|\\;|\\-).*)|\\s+"/>
109 <option name="-buttonname" value="Subject"/>
110 <option name="-partition_type_within_level" value="none"/>
111 </classifier>
112 <classifier name="DateList">
113 <option name="-metadata" value="lifecycle^contribute^date"/>
114 <option name="-buttonname" value="Date"/>
115 <option name="-sort" value="general^title"/>
116 <format>
117 <gsf:template match="documentNode">
118 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>[general^title]</td>]]></gsf:format-gs2>
119 <td>
120 <gsf:link type="document">
121 <gsf:icon type="document"/>
122 </gsf:link>
123 </td>
124 <td>
125 <gsf:metadata name="general^title"/>
126 </td>
127 </gsf:template>
128 </format>
129 </classifier>
130 <format>
131 <gsf:template match="documentNode">
132 <gsf:format-gs2><![CDATA[
133<td>[link][icon][/link]
134</td>
135<td>{If}{[numleafdocs],([numleafdocs])}
136</td>
137<td>{OR}{[general^title],[Title]}
138</td>]]></gsf:format-gs2>
139 <td>
140 <gsf:link type="document">
141 <gsf:icon type="document"/>
142 </gsf:link>
143 </td>
144 <td/>
145 <td>
146 <gsf:choose-metadata>
147 <gsf:metadata name="general^title"/>
148 <gsf:metadata name="Title"/>
149 </gsf:choose-metadata>
150 </td>
151 </gsf:template>
152 <gsf:template match="classifierNode">
153 <gsf:format-gs2><![CDATA[
154<td>[link][icon][/link]
155</td>
156<td>{If}{[numleafdocs],([numleafdocs])}
157</td>
158<td>{OR}{[general^title],[Title]}
159</td>]]></gsf:format-gs2>
160 <td>
161 <gsf:link type="classifier">
162 <gsf:icon type="classifier"/>
163 </gsf:link>
164 </td>
165 <td>(<gsf:metadata name="numleafdocs"/>)</td>
166 <td>
167 <gsf:choose-metadata>
168 <gsf:metadata name="general^title"/>
169 <gsf:metadata name="Title"/>
170 </gsf:choose-metadata>
171 </td>
172 </gsf:template>
173 <gsf:template match="classifierNode" mode="horizontal">
174 <gsf:format-gs2><![CDATA[[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]]]></gsf:format-gs2>
175 <gsf:link type="classifier">
176 <span class="highlight">
177 <gsf:choose-metadata><gsf:metadata name="dls.Title"/><gsf:metadata name="dc.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
178 </span>
179 </gsf:link>
180 </gsf:template>
181 </format>
182 </browse>
183 <display>
184 <format> <gsf:option name="TOC" value="true"/>
185 <gsf:option name="AllowUserComments" value="false"/>
186 <gsf:template name="documentContent">
187 <div id="gs-document">
188 <xsl:call-template name="documentPre"/>
189 <xsl:call-template name="wrappedSectionImage"/>
190 <div id="gs-document-text">
191 <p>
192 <center>
193 <table class="lom">
194 <tr>
195 <td class="mdtabdip"> </td>
196 <td class="mdhreftab mdtabtabbg">
197 <a class="mdtablink" href="javascript:doShowHide('metatablediv', 'xmlrecordarea');">Metadata</a>
198 </td>
199 <td class="mdtabdip"> </td>
200 <td class="mdtexttab mdtabtabbg">
201 <a class="mdtablink" href="javascript:doShowHide('xmlrecordarea', 'metatablediv');">XML record</a>
202 </td>
203 <gsf:switch>
204 <gsf:metadata name="Plugin"/>
205 <gsf:when test="notEquals" test-value="LOMPlugin">
206 <td class="mdtabdip"> </td>
207 <td class="mdhreftab">
208 <a class="mdtablink" href="javascript:;">Document</a>
209 </td>
210 </gsf:when>
211 <gsf:otherwise>
212 <td class="mdtabdip"> </td>
213 <td class="mdtabblank"> </td>
214 <td class="mdtabdip"> </td>
215 </gsf:otherwise>
216 </gsf:switch>
217 <td class="mdtabfill"> </td>
218 </tr>
219 </table>
220 <textarea cols="80" id="xmlrecordarea" rows="25" style="display:none"><gsf:switch><gsf:metadata name="Plugin"/><gsf:when test="equals" test-value="LOMPlugin"><xsl:value-of disable-output-escaping="yes" select="nodeContent"/></gsf:when><gsf:otherwise><gsf:metadata name="rawtext"/></gsf:otherwise></gsf:switch> </textarea>
221 <div id="metatablediv">
222 <gsf:metadata name="MetadataTable"/>
223 </div>
224 </center>
225 </p>
226<!--
227<xsl:call-template name="documentNodeText"/>
228-->
229 </div>
230 </div>
231 </gsf:template>
232<!--
233Overwriting this template allows you to change the heading of the document.
234-->
235<!--
236<gsf:template name="documentHeading">
237<span style="font-weight:bold; font-size: 120%;">
238<xsl:call-template name="choose-title"/>
239</span>
240</gsf:template>
241-->
242<!--
243Overwriting 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.
244-->
245<!--
246<gsf:template name="documentContent">
247<div id="gs-document">
248<xsl:call-template name="documentPre"/>
249<xsl:call-template name="wrappedSectionImage"/>
250<div id="gs-document-text">
251<xsl:call-template name="documentNodeText"/>
252</div>
253</div>
254</gsf:template>
255-->
256<!--
257Overwriting this template can be used to change the content of section headings.
258-->
259<!--
260<gsf:template name="sectionHeading">
261<xsl:call-template name="choose-title"/>
262</gsf:template>
263-->
264<!--
265Overwriting this template can be used to change the content of the top-level section.
266-->
267<!--
268<gsf:template name="topLevelSectionContent">
269<xsl:call-template name="wrappedSectionImage"/>
270<xsl:call-template name="wrappedSectionText"/>
271</gsf:template>
272-->
273<!--
274Overwriting this template can be used to change the content of sections.
275-->
276<!--
277<gsf:template name="sectionContent">
278<xsl:call-template name="wrappedSectionImage"/>
279<xsl:call-template name="wrappedSectionText"/>
280</gsf:template>
281-->
282
283</format>
284 </display>
285 <replaceListRef id="gs2-standard"/>
286 <replaceListRef id="gs2-image"/>
287</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.