Changeset 21778

Show
Ignore:
Timestamp:
15.03.2010 10:43:48 (10 years ago)
Author:
kjdon
Message:

OAI config stuff now in an OAI serviceRack - specify the servicerack in collectionConfig so that its easy to switch it on/off without having to rebuild the collection or modify buildConfig.xml

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/collect/gs2mgppdemo/etc/collectionConfig.xml

    r20066 r21778  
    8282    </display> 
    8383    <replaceListRef id="gs2-standard"/> 
    84     <OAI> 
    85         <ListMetadataFormats> 
    86             <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here. 
    87       The support of unqualified Dublin Core metadata set is mendatory in the oai specification. 
    88       --> 
    89             <metadataFormat metadataPrefix="oai_dc"> 
    90                 <metadataPrefix>oai_dc</metadataPrefix> 
    91                 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 
    92                 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 
    93                 <mappingList> 
    94                     <!--  
    95       The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>  
    96       The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and 
    97       searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the 
    98       number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value; 
    99       if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database. 
    100        
    101       **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. 
     84  <serviceRackList> 
     85    <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 
     86    <serviceRack name="OAIPMH"> 
     87      <ListMetadataFormats> 
     88    <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here. 
     89    The support of unqualified Dublin Core metadata set is mandatory in the oai specification. 
     90    --> 
     91    <metadataFormat metadataPrefix="oai_dc"> 
     92      <metadataPrefix>oai_dc</metadataPrefix> 
     93      <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 
     94      <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 
     95      <!--<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>               
    10296      --> 
    103                     <mapping>dc.Title,dls.Title</mapping> 
    104                     <mapping>dc.Subject,dls.Subject</mapping> 
    105                     <mapping>dc.Language,dls.Language</mapping> 
    106                     <mapping>dc.Organization,dls.Organization</mapping> 
    107                 </mappingList> 
    108             </metadataFormat> 
    109             <!-- 
     97      <mappingList> 
     98        <!--  
     99        The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>  
     100        The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and 
     101        searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the 
     102        number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value; 
     103        if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database. 
     104         
     105        **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. 
     106         
     107        **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. 
     108        --> 
     109        <mapping>dc.Title,dls.Title</mapping> 
     110        <mapping>dc.Subject,dls.Subject</mapping> 
     111        <mapping>dc.Language,dls.Language</mapping> 
     112        <mapping>dc.Organization,dls.Organization</mapping> 
     113        <!-- 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. --> 
     114      </mappingList> 
     115    </metadataFormat> 
     116 <!-- 
    110117      This metadata format is an example of user created metadata fields 
    111118      <metadataFormat metadataPrefix="oai_gs"> 
     
    121128    </metadataFormat> 
    122129      --> 
    123         </ListMetadataFormats> 
    124     </OAI> 
     130      </ListMetadataFormats> 
     131    </serviceRack>  
     132  </serviceRackList> 
    125133</CollectionConfig>