- Timestamp:
- 2011-06-01T16:19:14+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/metaformatsaction.cpp
r22739 r24108 80 80 { 81 81 text_t identifier = params["identifier"]; 82 83 text_t oai_OID_prefix = "oai:"+this->configuration->getRepositoryId()+":"; 84 if(identifier.replace(oai_OID_prefix, "") <= 0) { 85 this->errorType = "idDoesNotExist"; 86 // Only throw an error if we're using v2.0. 87 if (this->configuration->getOAIVersion() >= 200) { 88 return false; 89 } 90 } 82 91 83 92 // Extract the collection name from the identifier specification … … 86 95 87 96 // Check a document with the specified identifier exists 88 text_tset metadata; 97 text_tset metadata; 98 89 99 if (!get_info(identifier, collection, "", metadata, false, protocol, this->gsdlResponse, *logout)) 90 100 {
Note:
See TracChangeset
for help on using the changeset viewer.