source: greenstone3/trunk/web/sites/localsite/collect/gs2mgppdemo/etc/collectionConfig.xml@ 14214

Last change on this file since 14214 was 14214, checked in by xiao, 17 years ago

add the OAI element containing ListMetadataFormats of a list of metadata formats this collection supports. Each metadataFormat contains a mappingList if the collection does not contain the standard Dublin Core metadata. See the comments in the collectionConfig.xml in modelcol/etc/ for how to write this OAI element.

File size: 14.0 KB
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="" xmlns:xsl="">
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></schema>
11 <metadataNamespace></metadataNamespace>
12 <mappingList>
13 <!--
14 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
15 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
16 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
17 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
18 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
20 **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.
21 -->
22 <mapping>dc.Title,dls.Title</mapping>
23 <mapping>dc.Subject,dls.Subject</mapping>
24 <mapping>dc.Language,dls.Language</mapping>
25 <mapping>dc.Organization,dls.Organization</mapping>
26 </mappingList>
27 </metadataFormat>
28 <!--
29 This metadata format is an example of user created metadata fields
30 <metadataFormat metadataPrefix="oai_gs">
31 <metadataPrefix>oai_gs</metadataPrefix>
32 <schema></schema>
33 <metadataNamespace></metadataNamespace>
34 <mappingList>
35 <mapping>dls.Title</mapping>
36 <mapping>dls.Subject</mapping>
37 <mapping>dls.Language</mapping>
38 <mapping>dls.Organization</mapping>
39 </mappingList>
40 </metadataFormat>
41 -->
42 </ListMetadataFormats>
44 <metadataList>
45 <metadata lang="en" name="creator">[email protected]</metadata>
46 <metadata lang="en" name="maintainer"/>
47 <metadata lang="en" name="public">true</metadata>
48 </metadataList>
49 <displayItemList>
50 <displayItem assigned="true" lang="en" name="description">This is a demonstration collection for the Greenstone3 digital library software. It contains a small subset (11 books) of the Humanitarian and Development Libraries. It is a Greenstone2 collection, built with MGPP, which provides form based searching. The Greenstone2 configuration files have been converted to Greenstone3 equivalents, enabling it to be served using Greenstone3.</displayItem>
51 <displayItem assigned="true" lang="en" name="smallicon">gs2mgppdemo_sm.gif</displayItem>
52 <displayItem assigned="true" lang="en" name="icon">gs2mgppdemo.gif</displayItem>
53 <displayItem assigned="true" lang="en" name="name">Greenstone2 MGPP demo collection</displayItem>
54 </displayItemList>
55 <search type="mgpp">
56 <level name="section"/>
57 <level name="document"/>
58 <defaultLevel name="section"/>
59 <index name="allfields">
60 <displayItem lang="en" name="name">all fields</displayItem>
61 </index>
62 <index name="text">
63 <displayItem lang="en" name="name">text</displayItem>
64 </index>
65 <index name="dls.Title">
66 <displayItem lang="en" name="name"> titles</displayItem>
67 </index>
68 <index name="dls.Subject">
69 <displayItem lang="en" name="name">subjects</displayItem>
70 </index>
71 <index name="dls.Organization">
72 <displayItem lang="en" name="name">organisations</displayItem>
73 </index>
74 <format name="searchType">plain,form</format>
75 <format><gsf:template match="documentNode"> <td valign="top"> <gsf:link type="document"> <gsf:icon type="document"/> </gsf:link> </td> <td> <gsf:switch> <gsf:metadata name="Title" select="ancestors" separator=": "/> <gsf:when test="exists"> <gsf:metadata name="Title" select="ancestors" separator=": "/> : </gsf:when> </gsf:switch> <gsf:link type="document"> <gsf:metadata name="Title"/> </gsf:link> </td> </gsf:template></format>
76 </search>
77 <import>
78 <pluginList>
79 <plugin name="GAPlug"/>
80 <plugin name="HTMLPlug">
81 <option name="-description_tags"/>
82 </plugin>
83 <plugin name="MetadataXMLPlug"/>
84 <plugin name="ArcPlug"/>
85 <plugin name="RecPlug"/>
86 </pluginList>
87 </import>
88 <browse>
89 <classifier name="AZList">
90 <option name="-metadata" value="dls.Title"/>
91 </classifier>
92 <classifier name="Hierarchy">
93 <option name="-metadata" value="dls.Subject"/>
94 <option name="-sort" value="dls.Title"/>
95 </classifier>
96 <classifier name="AZCompactList">
97 <option name="-metadata" value="dls.Organization"/>
98 <option name="-sort" value="dls.Title"/>
99 <option name="-mingroup" value="1"/>
100 <option name="-buttonname" value="Organization"/>
101 </classifier>
102 <classifier name="List">
103 <option name="-metadata" value="dls.Keyword"/>
104 <option name="-buttonname" value="Howto"/>
105 <format><gsf:template match="documentNode"> <td> <gsf:link type="document"> <gsf:metadata name="dls.Keyword"/> </gsf:link> </td> </gsf:template> <gsf:template match="classifierNode"> <td> <gsf:link type="classifier"> <gsf:metadata name="dls.Keyword"/> </gsf:link> </td> </gsf:template></format>
106 </classifier>
107 <format><gsf:template match="documentNode"> <td valign="top"> <gsf:link type="document"> <gsf:icon type="document"/> </gsf:link> </td> <td valign="top"> <gsf:metadata name="srclink"/> <gsf:choose-metadata> <gsf:metadata name="thumbicon"/> <gsf:metadata name="srcicon"/> </gsf:choose-metadata> <gsf:metadata name="/srclink"/> </td> <td valign="top"> <gsf:choose-metadata> <gsf:metadata name="dc.Title"/> <gsf:metadata name="exp.Title"/> <gsf:metadata name="Title"/> <gsf:default> Untitled </gsf:default> </gsf:choose-metadata> <gsf:switch> <gsf:metadata name="Source"/> <gsf:when test="exists"> <br/> <i> ( <gsf:metadata name="Source"/> ) </i> </gsf:when> </gsf:switch> </td> </gsf:template> <gsf:template match="classifierNode"> <td valign="top"> <gsf:link type="classifier"> <gsf:icon type="classifier"/> </gsf:link> </td> <td valign="top"> <gsf:metadata name="srclink"/> <gsf:choose-metadata> <gsf:metadata name="thumbicon"/> <gsf:metadata name="srcicon"/> </gsf:choose-metadata> <gsf:metadata name="/srclink"/> </td> <td valign="top"> <gsf:choose-metadata> <gsf:metadata name="dc.Title"/> <gsf:metadata name="exp.Title"/> <gsf:metadata name="Title"/> <gsf:default> Untitled </gsf:default> </gsf:choose-metadata> <gsf:switch> <gsf:metadata name="Source"/> <gsf:when test="exists"> <br/> <i> ( <gsf:metadata name="Source"/> ) </i> </gsf:when> </gsf:switch> </td> </gsf:template> <gsf:template match="classifierNode" mode="horizontal"> <gsf:link type="horizontal"> <gsf:metadata name="Title"/> </gsf:link> </gsf:template></format>
108 </browse>
109 <display>
110 <format><gsf:template match="documentcontent"> </gsf:template> <gsf:option name="TOC" value="true"/> </format>
111 </display>
112 <replaceListRef id="gs2-standard"/>
Note: See TracBrowser for help on using the repository browser.