- Timestamp:
- 2010-06-23T13:58:54+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiaction.cpp
r22213 r22289 383 383 output << " <datestamp>" << lastModified << "</datestamp>" << endl; 384 384 385 // copy the collection name off the front of oaiLabel 386 text_t::const_iterator colon = findchar(oaiLabel.begin(), oaiLabel.end(), ':'); 387 text_t collection = substr(oaiLabel.begin(), colon); 388 385 text_t collection_id; 386 // Find the collection id from oai:repos-id:collection:doc 387 oaiclassifier::getCollectionFromOAIID(oaiLabel, collection_id); 389 388 if(oaiVersion >= 200){ 390 389 text_tarray::const_iterator member = memberOf.begin(); … … 392 391 393 392 // As well as all the subsets that a doc appears in, it is also a member of the 'collection' set 394 output << " <setSpec>" << collection << "</setSpec>" << endl;393 output << " <setSpec>" << collection_id << "</setSpec>" << endl; 395 394 while (member != memEnd) { 396 395 text_t oaiSet = *member; 397 oaiclassifier::toOAI(collection , oaiSet);396 oaiclassifier::toOAI(collection_id, oaiSet); 398 397 output << " <setSpec>" << oaiSet << "</setSpec>" << endl; 399 398 ++member;
Note:
See TracChangeset
for help on using the changeset viewer.