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

Revision 21656, 6.7 KB (checked in by kjdon, 10 years ago)

indented to my sized indents before modifying

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