root/main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml @ 24121

Revision 24121, 6.9 KB (checked in by ak19, 8 years ago)

Fix to previous commit 24120. Belongs with revision 24087: Dr Bainbridge fixed Papitha's problem with GS3 not embedding thumbnails of image collections in links that take one to the source document. Katherine explained that we will need to modify the config_format.xsl in interfaces to have process a gsf:link for type=source. Dr Bainbridge found that we needed to make use of the httpPath variable to help us construct the URL path for the link and that we additionally needed to request the assocfilepath metadata in order to get all the meta needed to complete the URL, so now the GS3 java code requests assocfilemeta as well. So now this GS3 collectionConfig.xml template refers to source not srclink.

  • Property svn:keywords set to Author Date Id Revision
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">**creator**</metadata>
5    <metadata lang="en" name="maintainer">**maintainer**</metadata>
6    <metadata lang="en" name="public">**public**</metadata>
7  </metadataList>
8  <displayItemList>
9    <displayItem assigned="true" lang="en" name="name">**title**</displayItem>
10    <displayItem assigned="true" lang="en" name="description">**about**</displayItem>
11  </displayItemList>
12  <search type="mgpp">
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="document"/>
20    <index name="text">
21      <displayItem lang="en" name="name">text</displayItem>
22    </index>
23    <index name="Title">
24      <displayItem lang="en" name="name">titles</displayItem>
25    </index>
26    <index name="Source">
27      <displayItem lang="en" name="name">filenames</displayItem>
28    </index>
29    <defaultIndex name="text"/>
30    <searchType name="plain"/>
31    <searchType name="simpleform"/>
32    <searchType name="advancedform"/>
33    <format>
34      <gsf:template match="documentNode">
35    <td valign="top">
36      <gsf:link type="document">
37        <gsf:icon type="document"/>
38      </gsf:link>
39    </td>
40    <td>
41      <gsf:switch>
42        <gsf:metadata name="Title" select="ancestors" separator=": "/>
43        <gsf:when test="exists">
44          <gsf:metadata name="Title" select="ancestors" separator=": "/>:
45        </gsf:when>
46      </gsf:switch>
47      <gsf:link type="document">
48        <gsf:metadata name="Title"/>
49      </gsf:link>
50    </td>
51      </gsf:template>
52    </format>
53  </search>
54  <import>
55    <pluginList>
56      <plugin name="ZIPPlugin"/>
57      <plugin name="GreenstoneXMLPlugin"/>
58      <plugin name="TextPlugin"/>
59      <plugin name="HTMLPlugin"/>
60      <plugin name="EmailPlugin"/>
61      <plugin name="PDFPlugin"/>
62      <plugin name="RTFPlugin"/>
63      <plugin name="WordPlugin"/>
64      <plugin name="PostScriptPlugin"/>
65      <plugin name="PowerPointPlugin"/>
66      <plugin name="ExcelPlugin"/>
67      <plugin name="ImagePlugin"/>
68      <plugin name="ISISPlugin"/>
69      <plugin name="NulPlugin"/>
70      <plugin name="OAIPlugin"/>
71      <plugin name="MetadataXMLPlugin"/>
72      <plugin name="ArchivesInfPlugin"/>
73      <plugin name="DirectoryPlugin"/>
74    </pluginList>
75  </import>
76  <browse>
77    <classifier name="List">
78      <option name="-metadata" value="dc.Title;Title"/>
79      <option name="-partition_type_within_level" value="approximate_size"/>
80    </classifier>
81    <classifier name="List">
82      <option name="-metadata" value="Source"/>
83      <option name="-partition_type_within_level" value="approximate_size"/>
84    </classifier>
85    <format>
86      <gsf:template match="documentNode">
87    <td valign="top">
88      <gsf:link type="document">
89        <gsf:icon type="document"/>
90      </gsf:link>
91    </td>
92    <td valign="top">
93      <gsf:link type="source"/>
94      <gsf:choose-metadata>
95        <gsf:metadata name="thumbicon"/>
96        <gsf:metadata name="srcicon"/>
97      </gsf:choose-metadata>
98      <gsf:link/>
99    </td>
100    <td valign="top">
101      <gsf:choose-metadata>
102        <gsf:metadata name="dc.Title"/>
103        <gsf:metadata name="exp.Title"/>
104        <gsf:metadata name="Title"/>
105        <gsf:default>Untitled</gsf:default>
106      </gsf:choose-metadata>
107      <gsf:switch>
108        <gsf:metadata name="Source"/>
109        <gsf:when test="exists">
110          <br/>
111          <i>(<gsf:metadata name="Source"/>)</i>
112        </gsf:when>
113      </gsf:switch>
114    </td>
115      </gsf:template>
116      <gsf:template match="classifierNode">
117    <td valign="top">
118      <gsf:link type="classifier">
119        <gsf:icon type="classifier"/>
120      </gsf:link>
121    </td>
122    <td valign="top">
123          <gsf:link type="source"/>
124      <gsf:metadata name="source"/>
125      <gsf:choose-metadata>
126        <gsf:metadata name="thumbicon"/>
127        <gsf:metadata name="srcicon"/>
128      </gsf:choose-metadata>
129          <gsf:link/>
130    </td>
131    <td valign="top">
132      <gsf:choose-metadata>
133        <gsf:metadata name="dc.Title"/>
134        <gsf:metadata name="exp.Title"/>
135        <gsf:metadata name="Title"/>
136        <gsf:default>Untitled</gsf:default>
137      </gsf:choose-metadata>
138      <gsf:switch>
139        <gsf:metadata name="Source"/>
140        <gsf:when test="exists">
141          <br/><i>(<gsf:metadata name="Source"/>)</i>
142        </gsf:when>
143      </gsf:switch>
144    </td>
145      </gsf:template>
146      <gsf:template match="classifierNode" mode="horizontal">
147    <gsf:link type="horizontal">
148      <gsf:metadata name="Title"/>
149    </gsf:link>
150      </gsf:template>
151    </format>
152  </browse>
153  <display>
154    <format>
155      <gsf:option name="TOC" value="false"/>
156    </format>
157  </display>
158  <replaceListRef id="gs2-standard"/>
159  <replaceListRef id="gs2-image" />
160  <serviceRackList>
161    <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
162    <serviceRack name="OAIPMH">
163      <ListMetadataFormats>
164    <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
165    The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
166    -->
167    <metadataFormat metadataPrefix="oai_dc">
168      <metadataPrefix>oai_dc</metadataPrefix>
169      <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
170      <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
171      <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>             
172      -->
173      <mappingList>
174        <!--
175        The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
176        The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
177        searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
178        number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
179        if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
180       
181        **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
182       
183        **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
184        -->
185        <mapping>dc.Title,Title</mapping>
186        <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
187      </mappingList>
188    </metadataFormat>
189      </ListMetadataFormats>
190    </serviceRack>
191  </serviceRackList>
192</CollectionConfig>
Note: See TracBrowser for help on using the browser.