Changeset 16708


Ignore:
Timestamp:
2008-08-12T09:50:26+12:00 (16 years ago)
Author:
mdewsnip
Message:

Changed the resumptionToken tags to not have any whitespace around the resumption tokens, because this confuses harvesters/validators

Location:
gsdl/trunk/runtime-src/src/oaiservr
Files:
2 edited

Legend:

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

    r15428 r16708  
    180180  // do a resumption token if required; errors cancel a token...
    181181  if (this->replyToken != NULL && this->errorType == "") {
    182     output << "  <resumptionToken>" << endl;
    183     output << "    " << this->replyToken->getToken() << endl;
    184     output << "  </resumptionToken>" << endl;
     182    // Don't add any whitespace around the resumption token as it can confuse harvesters/validators
     183    output << "  <resumptionToken>" << this->replyToken->getToken() << "</resumptionToken>" << endl;
    185184  }
    186185
  • gsdl/trunk/runtime-src/src/oaiservr/listsetsaction.cpp

    r15428 r16708  
    114114  // do a resumption token if required; errors cancel a token...
    115115  if (this->replyToken != NULL && this->errorType == "") {
    116     output << "  <resumptionToken>" << endl;
    117     output << "    " << this->replyToken->getToken() << endl;
    118     output << "  </resumptionToken>" << endl;
     116    // Don't add any whitespace around the resumption token as it can confuse harvesters/validators
     117    output << "  <resumptionToken>" << this->replyToken->getToken() << "</resumptionToken>" << endl;
    119118  }
    120119
Note: See TracChangeset for help on using the changeset viewer.