Ignore:
Timestamp:
2004-10-12T04:28:14+13:00 (20 years ago)
Author:
cs025
Message:

Made softer support for metadata formats - no longer map to the OAI-
specific namespace, but just use the metadata prefix (e.g. dc rather
than oai_dc). Also resorted to separating the namespace and field
of the OAI (output) fields in the main.cfg file to be separated using
a period or dot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/oaiservr/oaiconfig.cpp

    r8219 r8276  
    9797    // the second parameter is the metadata field to map the collection
    9898    // field onto.  It may be provided with a metadata protocol (which
    99     // will be given first and separated by a colon).  In the case of
    100     //   format:field name, the splitting is done here.
    101     if ((colonAt = find(cfgline[1].begin(), cfgline[1].end(), ':')) != cfgline[1].end()) {
     99    // will be given first and separated by a period or full stop).  In
     100    // the case of format.field name, the splitting is done here.
     101    if ((colonAt = find(cfgline[1].begin(), cfgline[1].end(), '.')) != cfgline[1].end()) {
    102102      text_t stub = substr(cfgline[1].begin(), colonAt);
    103103      colonAt += 1;
Note: See TracChangeset for help on using the changeset viewer.