source: documented-examples/trunk/wrdpdf-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: 7.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" lang="en" name="name">Word PDF collection</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="description4" name="description4"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
18 </displayItemList>
19 <format/>
20 <search type="mg">
21 <index name="document:text">
22 <displayItem assigned="true" dictionary="collectionConfig" key="document_text" name="name"/>
23 </index>
24 <defaultIndex name="document:text"/>
25 <indexOption name="casefold"/>
26 <indexOption name="stem"/>
27 <searchType name="plain"/>
28 <searchType name="simpleform"/>
29 <searchType name="advancedform"/>
30 <format>
31 <gsf:template match="documentNode">
32 <gsf:format-gs2><![CDATA[<td valign="top">[link][icon][/link]</td>
33<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
34<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>]]></gsf:format-gs2>
35 <td valign="top">
36 <gsf:link type="document">
37 <gsf:icon type="document"/>
38 </gsf:link>
39 </td>
40 <td valign="top">
41 <gsf:link type="source">
42 <gsf:choose-metadata>
43 <gsf:metadata name="thumbicon"/>
44 <gsf:metadata name="srcicon"/>
45 </gsf:choose-metadata>
46 </gsf:link>
47 </td>
48 <td valign="top">
49 <span class="highlight">
50 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
51 </span>
52 <gsf:switch>
53 <gsf:metadata name="Source"/>
54 <gsf:when test="exists">
55 <br/>
56 <i>(<gsf:metadata name="Source"/>)</i>
57 </gsf:when>
58 </gsf:switch>
59 </td>
60 </gsf:template>
61 </format>
62 </search>
63 <infodb type="gdbm"/>
64 <import>
65 <pluginList>
66 <plugin name="WordPlugin"/>
67 <plugin name="RTFPlugin"/>
68 <plugin name="PDFPlugin"/>
69 <plugin name="PostScriptPlugin"/>
70 <plugin name="GreenstoneXMLPlugin"/>
71 <plugin name="MetadataXMLPlugin"/>
72 <plugin name="ArchivesInfPlugin"/>
73 <plugin name="DirectoryPlugin"/>
74 </pluginList>
75 </import>
76 <browse>
77 <classifier name="AZList">
78 <option name="-metadata" value="Title"/>
79 </classifier>
80 <format>
81 <gsf:template match="documentNode">
82 <gsf:format-gs2><![CDATA[<td valign="top">[link][icon][/link]</td> <td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td> <td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</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">
89 <gsf:link type="source">
90 <gsf:choose-metadata>
91 <gsf:metadata name="thumbicon"/>
92 <gsf:metadata name="srcicon"/>
93 </gsf:choose-metadata>
94 </gsf:link>
95 </td>
96 <td valign="top">
97 <span class="highlight">
98 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
99 </span>
100 <gsf:switch>
101 <gsf:metadata name="Source"/>
102 <gsf:when test="exists">
103 <br/>
104 <i>(<gsf:metadata name="Source"/>)</i>
105 </gsf:when>
106 </gsf:switch>
107 </td>
108 </gsf:template>
109 <gsf:template match="classifierNode">
110 <gsf:format-gs2><![CDATA[<td valign="top">[link][icon][/link]</td> <td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td> <td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>]]></gsf:format-gs2>
111 <td valign="top">
112 <gsf:link type="classifier">
113 <gsf:icon type="classifier"/>
114 </gsf:link>
115 </td>
116 <td valign="top">
117 <gsf:link type="source">
118 <gsf:choose-metadata>
119 <gsf:metadata name="thumbicon"/>
120 <gsf:metadata name="srcicon"/>
121 </gsf:choose-metadata>
122 </gsf:link>
123 </td>
124 <td valign="top">
125 <span class="highlight">
126 <gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
127 </span>
128 <gsf:switch>
129 <gsf:metadata name="Source"/>
130 <gsf:when test="exists">
131 <br/>
132 <i>(<gsf:metadata name="Source"/>)</i>
133 </gsf:when>
134 </gsf:switch>
135 </td>
136 </gsf:template>
137 <gsf:template match="classifierNode" mode="horizontal">
138 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
139 <gsf:link type="classifier">
140 <span class="highlight">
141 <gsf:metadata name="Title"/>
142 </span>
143 </gsf:link>
144 </gsf:template>
145 </format>
146 </browse>
147 <display>
148 <format>
149 <gsf:option name="TOC" value="true"/>
150 <gsf:option name="AllowUserComments" value="false"/>
151<!--
152Overwriting this template allows you to change the heading of the document.
153-->
154<!--
155<gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
156-->
157<!--
158Overwriting 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.
159-->
160<!--
161<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>
162-->
163<!--
164Overwriting this template can be used to change the content of section headings.
165-->
166<!--
167<gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
168-->
169<!--
170Overwriting this template can be used to change the content of the top-level section.
171-->
172<!--
173<gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
174-->
175<!--
176Overwriting this template can be used to change the content of sections.
177-->
178<!--
179<gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
180-->
181 </format>
182 </display>
183 <replaceListRef id="gs2-standard"/>
184</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.