- Timestamp:
- 2012-05-29T15:01:51+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml
r24123 r25707 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 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:choose-metadata> 125 <gsf:metadata name="thumbicon"/> 126 <gsf:metadata name="srcicon"/> 127 </gsf:choose-metadata> 128 </gsf:link> 129 </td> 130 <td valign="top"> 131 <gsf:choose-metadata> 132 <gsf:metadata name="dc.Title"/> 133 <gsf:metadata name="exp.Title"/> 134 <gsf:metadata name="Title"/> 135 <gsf:default>Untitled</gsf:default> 136 </gsf:choose-metadata> 137 <gsf:switch> 138 <gsf:metadata name="Source"/> 139 <gsf:when test="exists"> 140 <br/><i>(<gsf:metadata name="Source"/>)</i> 141 </gsf:when> 142 </gsf:switch> 143 </td> 144 </gsf:template> 145 <gsf:template match="classifierNode" mode="horizontal"> 146 <gsf:link type="horizontal"> 147 <gsf:metadata name="Title"/> 148 </gsf:link> 149 </gsf:template> 150 </format> 151 </browse> 152 <display> 153 <format> 154 <gsf:option name="TOC" value="false"/> 155 </format> 156 </display> 157 <replaceListRef id="gs2-standard"/> 158 <replaceListRef id="gs2-image" /> 159 <serviceRackList> 160 <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 161 <serviceRack name="OAIPMH"> 162 <ListMetadataFormats> 163 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here. 164 The support of unqualified Dublin Core metadata set is mandatory in the oai specification. 165 --> 166 <metadataFormat metadataPrefix="oai_dc"> 167 <metadataPrefix>oai_dc</metadataPrefix> 168 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 169 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 170 <!--<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> 171 --> 172 <mappingList> 173 <!-- 174 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B> 175 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and 176 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the 177 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value; 178 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database. 179 180 **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. 181 182 **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. 183 --> 184 <mapping>dc.Title,Title</mapping> 185 <!-- 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. --> 186 </mappingList> 187 </metadataFormat> 188 </ListMetadataFormats> 189 </serviceRack> 190 </serviceRackList> 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:link type="document"> 42 <gsf:choose-metadata> 43 <gsf:metadata name="dc.Title"/> 44 <gsf:metadata name="exp.Title"/> 45 <gsf:metadata name="ex.dc.Title"/> 46 <gsf:metadata name="Title"/> 47 <gsf:default>Untitled</gsf:default> 48 </gsf:choose-metadata> 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:link type="document"> 102 <gsf:choose-metadata> 103 <gsf:metadata name="dc.Title"/> 104 <gsf:metadata name="exp.Title"/> 105 <gsf:metadata name="ex.dc.Title"/> 106 <gsf:metadata name="Title"/> 107 <gsf:default>Untitled</gsf:default> 108 </gsf:choose-metadata> 109 <gsf:switch> 110 <gsf:metadata name="Source"/> 111 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when> 112 </gsf:switch> 113 </gsf:link> 114 </td> 115 </gsf:template> 116 <gsf:template match="classifierNode[@classifierStyle = 'VList']"> 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:choose-metadata> 125 <gsf:metadata name="thumbicon"/> 126 <gsf:metadata name="srcicon"/> 127 </gsf:choose-metadata> 128 </gsf:link> 129 </td> 130 <td valign="top"> 131 <gsf:choose-metadata> 132 <gsf:metadata name="dc.Title"/> 133 <gsf:metadata name="exp.Title"/> 134 <gsf:metadata name="ex.dc.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"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when> 141 </gsf:switch> 142 </td> 143 </gsf:template> 144 <gsf:template match="classifierNode[@classifierStyle = 'HList']"> 145 <gsf:link type="classifier"> 146 <gsf:metadata name="Title"/> 147 </gsf:link> 148 </gsf:template> 149 </format> 150 </browse> 151 <display> 152 <format> 153 <gsf:option name="TOC" value="true"/> 154 </format> 155 </display> 156 <replaceListRef id="gs2-standard"/> 157 <replaceListRef id="gs2-image" /> 158 <serviceRackList> 159 <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 160 <serviceRack name="OAIPMH"> 161 <ListMetadataFormats> 162 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here. 163 The support of unqualified Dublin Core metadata set is mandatory in the oai specification. 164 --> 165 <metadataFormat metadataPrefix="oai_dc"> 166 <metadataPrefix>oai_dc</metadataPrefix> 167 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 168 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 169 <!--<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>--> 170 <mappingList> 171 <!-- 172 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B> 173 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and 174 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the 175 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value; 176 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database. 177 178 **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. 179 180 **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. 181 --> 182 <mapping>dc.Title,Title</mapping> 183 <!-- 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. --> 184 </mappingList> 185 </metadataFormat> 186 </ListMetadataFormats> 187 </serviceRack> 188 </serviceRackList> 191 189 </CollectionConfig>
Note:
See TracChangeset
for help on using the changeset viewer.