Changeset 18885 for gsdl/trunk/runtime-src/src/oaiservr/oaiconfig.cpp
- Timestamp:
- 2009-04-06T10:48:29+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/oaiconfig.cpp
r18860 r18885 7 7 8 8 /** 9 * The mapping works as follows in the collect.cfg file.9 * The mapping works as follows in the oai.cfg or collect.cfg file. 10 10 * 11 11 * A line is in the format oaimapping <collection field> <oai field> … … 21 21 * collect.cfg file can be made specific for a particular record format. 22 22 * This is done using the OAI field name in the format of 23 * <OAI format> :<OAI field name>24 * Thus, an rfc1807 Title field would be referred to as rfc1807 :Title23 * <OAI format>.<OAI field name> 24 * Thus, an rfc1807 Title field would be referred to as rfc1807.Title 25 25 * 26 * A collection-level mapping is not needed - to configure the behaviour 27 * of a collection, ensure that you place the appropriate configuration in 28 * its etc/collect.cfg file - the oaimapping stuff IS NOT picked up from 29 * the central main.cfg file at the moment. 30 * 26 * A collection-level mapping can be provided in oai.cfg by prepending 27 * collname to collection field: 28 * <collname:field> <oai field> 29 31 30 * In the absence of a particular format name, the mapping is taken to be 32 31 * universal. … … 39 38 oaiconfig::oaiconfig(text_t &gsdlhome, text_t &gsdlcollect) 40 39 { 41 // read main configuration file to get oai collections40 // read main configuration file (oai.cfg) to get oai collections 42 41 text_t mainconfig = filename_cat(gsdlhome, "etc", "oai.cfg"); 43 42 this->collection = "";
Note:
See TracChangeset
for help on using the changeset viewer.