Changeset 18896


Ignore:
Timestamp:
2009-04-06T13:30:36+12:00 (15 years ago)
Author:
kjdon
Message:

convert CoverageSpatial to Spatial. Just deletes anything before the . This may not be enough in future if sets validly have

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/oaiservr/metaformat.cpp

    r18895 r18896  
    6969    if (metaItem == this->formatPrefix()) {
    7070      metaItem = substr(last+1, here->first.end()); // Get the rest of the metadata tag (it's name) but without the '.'
     71      // remove xxx^ eg Coverage^Spatial becomes spatial
     72      // this is for qualified dublin core. May affect other sets later if they
     73      // validly have ^ in them.
     74      text_t::iterator hat = findchar(metaItem.begin(), metaItem.end(), '^');
     75      if (hat != metaItem.end()) {
     76    metaItem = substr(hat+1, metaItem.end());
     77      }
    7178      lc(metaItem.begin(),metaItem.begin()+1); // We want lowercase, but some of the fields in qualified dublin core have internal upper case, eg instructionalMethod. So we assume that lowercasing the first letter is enough
    7279      if (doOutput) {
Note: See TracChangeset for help on using the changeset viewer.