root/main/trunk/model-sites-dev/pei-jones/collect/written-works/etc/collectionConfig.xml @ 31922

Revision 31922, 9.8 KB (checked in by kjdon, 2 years ago)

modifed the classifiers to be more useful. importing now converts to png

  • Property svn:mime-type set to application/xml
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3  <metadataList>
4    <metadata lang="en" name="creator"></metadata>
5    <metadata lang="en" name="maintainer"></metadata>
6    <metadata lang="en" name="public">true</metadata>
7  </metadataList>
8  <displayItemList>
9    <displayItem assigned="true" lang="en" name="name">Written works</displayItem>
10    <displayItem assigned="true" lang="en" name="description">Pei was a prolific writer in Māori and English. His works include the Ngā Mōteatea series, King Pōtatau, Mahinarangi, Puhiwahine, translations of Shakespeare’s works into Māori, such as Huria Hiha (Julius Caesar), Owhiro (Othello), and Tangata Whai Rawa o Weniti (The Merchant of Venice), literary works like Ngā Iwi o Tainui, He Tuhi Marei-kura and numerous articles and reviews on a range of topics to Te Ao Hou, the Journal of the Polynesian Society, various symposia, societies, in addition to writing many booklets to commemorate the opening of meeting houses in the Tainui and Ngāti TÅ«wharetoa areas.</displayItem>
11  </displayItemList>
12  <search type="lucene">
13    <level name="document">
14      <displayItem lang="en" name="name">document</displayItem>
15    </level>
16    <level name="section">
17      <displayItem lang="en" name="name">section</displayItem>
18    </level>
19    <defaultLevel name="section"/>
20    <index name="allfields"/>
21    <index name="pj.Title,Title">
22      <displayItem lang="en" name="name">title</displayItem>
23    </index>
24    <index name="pj.Date">
25      <displayItem lang="en" name="name">date</displayItem>
26    </index>
27    <index name="pj.Author">
28      <displayItem lang="en" name="name">author</displayItem>
29    </index>
30   <index name="pj.Correspondent">
31      <displayItem lang="en" name="name">correspondent</displayItem>
32    </index>
33     <index name="pj.Description">
34      <displayItem lang="en" name="name">description</displayItem>
35    </index>
36    <index name="pj.Subject">
37      <displayItem lang="en" name="name">subject</displayItem>
38    </index>
39    <index name="pj.PersonOfInterest">
40      <displayItem lang="en" name="name">person of interest</displayItem>
41    </index>
42    <index name="pj.Event">
43      <displayItem lang="en" name="name">event</displayItem>
44    </index>
45    <index name="pj.Location">
46      <displayItem lang="en" name="name">location</displayItem>
47    </index>
48     <index name="pj.Physical-Location">
49      <displayItem lang="en" name="name">physical location</displayItem>
50    </index>
51    <index name="pj.Provenance">
52      <displayItem lang="en" name="name">provenance</displayItem>
53    </index>
54    <index name="pj.Notes">
55      <displayItem lang="en" name="name">tags</displayItem>
56    </index>
57    <index name="pj.Tags">
58      <displayItem lang="en" name="name">tags</displayItem>
59    </index>
60    <index name="pj.Document-Type">
61      <displayItem lang="en" name="name">document type</displayItem>
62    </index>
63    <index name="pj.MSHeading">
64      <displayItem lang="en" name="name">maori subject heading</displayItem>
65    </index>
66    <index name="pj.Catalogue-Number,pj.Catalogue-Short">
67      <displayItem lang="en" name="name">catalogue number</displayItem>
68    </index>
69    <index name="text">
70      <displayItem lang="en" name="name">text</displayItem>
71    </index>
72   <index name="Source">
73      <displayItem lang="en" name="name">filenames</displayItem>
74    </index>
75    <defaultIndex name="allfields"/>
76    <searchType name="plain"/>
77    <format>
78      <gsf:template match="documentNode">
79    <td valign="top">
80      <gsf:link type="document">
81        <gsf:icon type="document"/>
82      </gsf:link>
83    </td>
84    <td>
85      <gsf:link type="document">
86            <gsf:if-metadata-exists><gsf:metadata name="pj.Title" select="parent"/><gsf:if><gsf:metadata name="pj.Title" select="parent"/></gsf:if></gsf:if-metadata-exists>
87        <gsf:choose-metadata>
88          <gsf:metadata name="pj.Title"/>
89          <gsf:metadata name="Title"/>
90          <gsf:default>Untitled</gsf:default>
91        </gsf:choose-metadata>
92      </gsf:link>
93    </td>
94      </gsf:template>
95    </format>
96  </search>
97  <infodb type="gdbm"/>
98  <import>
99    <pluginList>
100      <plugin name="ZIPPlugin"/>
101      <plugin name="GreenstoneXMLPlugin"/>
102      <plugin name="PJPlugin">
103    <option name="-OIDtype" value="filename"/>
104    <option name="-enable_cache"/>
105        <option name="-thumbnailtype" value="png"/>
106        <option name="-screenviewtype" value="png"/>
107        <option name="-converttotype" value="png"/>
108       </plugin>
109      <plugin name="TextPlugin"/>
110      <plugin name="HTMLPlugin"/>
111<!--      <plugin name="EmailPlugin"/>
112      <plugin name="PDFPlugin"/>
113      <plugin name="RTFPlugin"/>
114      <plugin name="WordPlugin"/>
115      <plugin name="PostScriptPlugin"/>
116      <plugin name="PowerPointPlugin"/>
117      <plugin name="ExcelPlugin"/>
118      <plugin name="ImagePlugin"/>
119      <plugin name="ISISPlugin"/>
120      <plugin name="NulPlugin"/>
121      <plugin name="OAIPlugin"/>-->
122      <plugin name="MetadataXMLPlugin"/>
123      <plugin name="ArchivesInfPlugin"/>
124      <plugin name="DirectoryPlugin"/>
125    </pluginList>
126  </import>
127    <importOption name="saveas_options" value="-subdir_split_length 40"/>
128  <browse>
129    <classifier name="List">
130      <option name="-metadata" value="pj.Title;Title"/>
131      <option name="-partition_type_within_level" value="per_letter"/>
132    <format>
133      <gsf:template match="documentNode">
134    <td valign="top">
135      <gsf:link type="document"><gsf:icon type="document"/></gsf:link>
136    </td>
137    <td valign="top">
138      <gsf:link type="document">
139        <gsf:choose-metadata>
140          <gsf:metadata name="pj.Title" pos="classifiedBy"/>
141          <gsf:metadata name="Title"/>
142          <gsf:default>Untitled</gsf:default>
143        </gsf:choose-metadata>
144        <gsf:switch>
145          <gsf:metadata name="FileFormat"/>
146          <gsf:when test="equals" test-value="PagedImage"><i> (<gsf:metadata name="Identifier"/>)</i></gsf:when>
147        </gsf:switch>
148      </gsf:link>
149    </td>
150      </gsf:template>
151    </format>
152    </classifier>
153    <classifier name="PJFileNameList">
154     <format>
155    <gsf:template match="documentNode">
156      <td valign="top">
157        <gsf:link type="document"><gsf:icon type="document"/></gsf:link>
158    </td>
159    <td valign="top">
160        <gsf:link type="document">
161          <gsf:metadata name="Identifier"/><xsl:text>: </xsl:text>
162          <gsf:choose-metadata>
163        <gsf:metadata name="pj.Title"/>
164        <gsf:metadata name="Title"/>
165        <gsf:default>Untitled</gsf:default>
166          </gsf:choose-metadata>
167        </gsf:link>
168      </td>
169    </gsf:template>
170      </format>
171     </classifier>
172     <classifier name="List">
173       <option name="filter_metadata" value="pj.Format"/>
174       <option name="filter_regex" value="RealBook"/>
175      <option name="-metadata" value="pj.Title,Title"/>
176      <option name="-partition_type_within_level" value="approximate_size"/>
177      <option name="buttonname" value="RealBooks"/>
178
179    <format>
180      <gsf:template match="documentNode">
181    <td valign="top">
182      <gsf:link type="document">
183        <xsl:variable name="image-file">
184          <gsf:choose-metadata>
185        <gsf:metadata name="Thumb"/>
186        <gsf:metadata name="Thumb" select="children" pos="1"/>
187        <gsf:metadata name="srcLinkFile"/>
188          </gsf:choose-metadata>
189        </xsl:variable>
190        <img><xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/collect/written-works/index/assoc/<gsf:metadata name="assocfilepath"/>/<xsl:value-of select="$image-file"/></xsl:attribute></img>
191      </gsf:link>
192    </td>
193    <td valign="top">
194      <gsf:link type="document">
195        <gsf:choose-metadata>
196          <gsf:metadata name="pj.Title"/>
197          <gsf:metadata name="Title"/>
198          <gsf:default>Untitled</gsf:default>
199        </gsf:choose-metadata>
200      </gsf:link>
201    </td>
202      </gsf:template>
203    </format>
204     </classifier>
205     <format>
206      <gsf:template match="classifierNode[@classifierStyle = 'VList']">
207    <td valign="top">
208      <gsf:link type="classifier">
209        <gsf:icon type="classifier"/>
210      </gsf:link>
211    </td>
212    <td valign="top"><gsf:metadata name="Title"/></td>
213     </gsf:template>
214      <gsf:template match="classifierNode[@classifierStyle = 'HList']">
215    <gsf:link type="classifier">
216      <gsf:metadata name="Title"/>
217    </gsf:link>
218      </gsf:template>
219    </format>
220  </browse>
221  <display>
222    <format>
223      <gsf:option name="TOC" value="true"/>
224      <gsf:option name="disableZoom" value="false"/>
225      <gsf:option name="slideShow" value="false"/>
226      <gsf:option name="viewSelection" value="false"/>
227      <!--<gsf:option name="sideBar" value="false"/>-->
228       <xsl:template name="documentContent">
229    <!-- modify the default template. if its a real book, then we link to the real book, otherwise we are using the default template -->
230    <xsl:variable name="format">
231      <gsf:metadata name="pj.Format"/>
232      <gsf:default>""</gsf:default>
233    </xsl:variable>
234    <xsl:choose>
235      <xsl:when test="contains($format,'RealBook')">
236        <xsl:variable name="url">
237          <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name= 'httpPath']"/>
238          <xsl:text>/realbooks/</xsl:text>
239          <xsl:value-of select="@nodeID"/>
240          <xsl:text>/index.html</xsl:text>
241        </xsl:variable>
242        <a href="{$url}" target="_blank">
243          <xsl:call-template name="sectionImage"/>
244        </a>
245        <br/>
246        <br/>
247        <p>Click on the image above to view/read the book.</p>
248      </xsl:when>
249      <xsl:otherwise>
250        <div id="gs-document">
251          <xsl:call-template name="documentPre"/>
252          <xsl:call-template name="wrappedSectionImage"/>
253          metadata table:
254          <xsl:call-template name="pjMetadataDisplayTable"/>
255          <div style="clear:left;"/>
256       
257        <div id="gs-document-text">
258        <xsl:call-template name="documentNodeText"/>
259          </div>
260        </div>
261      </xsl:otherwise>
262    </xsl:choose>
263      </xsl:template>
264    </format>
265  </display>
266  <replaceListRef id="gs2-standard"/>
267  <replaceListRef id="gs2-image" />
268  <serviceRackList/>
269</CollectionConfig>
Note: See TracBrowser for help on using the browser.