Changeset 29068

Show
Ignore:
Timestamp:
19.05.2014 13:33:10 (6 years ago)
Author:
kjdon
Message:

changed the format of metadata, and how elements and mappings are defined

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/resources/oai/OAIConfig.xml.in

    r28903 r29068  
    5050  <!-- a list of metadata formats supported by this repository --> 
    5151  <ListMetadataFormats> 
    52     <metadataFormat metadataPrefix="oai_dc"> 
     52    <metadataFormat> 
    5353      <metadataPrefix>oai_dc</metadataPrefix> 
    5454      <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 
    5555      <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 
    56       <mappingList> 
    57         <!--  
    58         This is the default mapping for dc metadata. It can be overridden for a collection by adding a mappingList into the oai_dc metadataFormat element in the collection's collectionConfig.xml file. 
    59         The mapping is in the form: <publicly supported metadata name>,<greenstone metadata name>, (<A>,<B>). B metadata from a document will be mapped to A.  
    60         The first metadata name is mandatory; if there is no greenstone name following, then the first name will be looked for in the documents.  
    61         --> 
    62     <mapping>dc:title,dc.Title</mapping> 
    63     <mapping>dc:creator,dc.Creator</mapping> 
    64     <mapping>dc:subject,dc.Subject</mapping> 
    65     <mapping>dc:description,dc.Description</mapping> 
    66     <mapping>dc:publisher,dc.Publisher</mapping> 
    67     <mapping>dc:contributor,dc.Contributor</mapping> 
    68     <mapping>dc:date,dc.Date</mapping> 
    69     <mapping>dc:type,dc.Type</mapping> 
    70     <mapping>dc:format,dc.Format</mapping> 
    71     <mapping>dc:identifier,dc.Identifier</mapping> 
    72     <mapping>dc:source,dc.Source</mapping> 
    73     <mapping>dc:language,dc.Language</mapping> 
    74     <mapping>dc:relation,dc.Relation</mapping> 
    75     <mapping>dc:coverage,dc.Coverage</mapping> 
    76     <mapping>dc:rights,dc.Rights</mapping> 
    77       </mappingList> 
     56      <elementList> 
     57    <!-- <element name="oai name"/> - will look for this oai-name metadata in the document 
     58         <element name="oai-name"><mapping select="allvalues|firstvalue|firstvalidmetadata" elements="comma-separated-list-of-gs-metadata"/></element> - will map gs-metadata to oai-name metadata.  
     59         allvalues: will display all values of each metadata element 
     60         firstvalue: will go through each metadata element until it finds a value, and will return only one value. 
     61         firstvalidmetadata: will go through each element until it finds one that has a value, then output all values of that element.  
     62         default is allvalues --> 
     63    <element name="dc:title"><mapping select="firstvalidmetadata" elements="dc.Title,Title"/></element> 
     64    <element name="dc:creator"><mapping elements="dc.Creator"/></element> 
     65    <element name="dc:subject"><mapping elements="dc.Subject"/></element> 
     66    <element name="dc:description"><mapping elements="dc.Description"/></element> 
     67    <element name="dc:publisher"><mapping elements="dc.Publisher"/></element> 
     68    <element name="dc:contributor"><mapping elements="dc.Contributor"/></element> 
     69    <element name="dc:date"><mapping elements="dc.Date"/></element> 
     70    <element name="dc:type"><mapping elements="dc.Type"/></element> 
     71    <element name="dc:format"><mapping elements="dc.Format"/></element> 
     72    <element name="dc:identifier"><mapping elements="dc.Identifier,Identifier" select="firstvalue"/></element> 
     73    <element name="dc:source"><mapping elements="dc.Source"/></element> 
     74    <element name="dc:language"><mapping elements="dc.Language"/></element> 
     75    <element name="dc:relation"><mapping elements="dc.Relation"/></element> 
     76    <element name="dc:coverage"><mapping elements="dc.Coverage"/></element> 
     77    <element name="dc:rights"><mapping elements="dc.Rights"/></element> 
     78      </elementList> 
    7879    </metadataFormat> 
    7980  </ListMetadataFormats>