Changeset 18581 for gsdl


Ignore:
Timestamp:
02/23/09 12:47:38 (12 years ago)
Author:
kjdon
Message:

when getting the namespace off the metadata element to compare to the exporting set prefix, the former included the '.' but the latter didn't. So now get the namespace without the '.' so we can correctly match it.

File:
1 edited

Legend:

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

    r17546 r18581  
    5252  text_t metaItem;
    5353  text_t::const_iterator start, last; // Use two iterators to go through metaItem
    54  
     54
    5555  while (here != end) {
    5656    start = last = here->first.begin();
     
    6161    }
    6262    else {
    63       last += this->formatPrefix().size() + 1; // Move last so that it is one place beyond where the "." should be.
     63      last += this->formatPrefix().size(); // Move last so that it is at the
     64      // '.'
    6465      metaItem = substr(start, last);          // Gets the substring starting at start and going up to (but
    65                                                // not including) last. This should be "dc." (for example)
     66                                               // not including) last. This should be "dc" (for example)
    6667    }
    6768
    6869    if (metaItem == this->formatPrefix()) {
    69       metaItem = substr(last, here->first.end()); // Get the rest of the metadata tag (it's name)
     70      metaItem = substr(last+1, here->first.end()); // Get the rest of the metadata tag (it's name) but without the '.'
    7071      lc(metaItem); // Convert it to lowercase for putting in the xml tags
    7172
Note: See TracChangeset for help on using the changeset viewer.