- Timestamp:
- 2013-06-04T15:56:26+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/listidsaction.cpp
r27528 r27534 210 210 211 211 // Check the collection is one that is in the list in the oai.cfg file 212 text_tarray &collections = this->configuration->getCollectionsList(); 213 bool collection_found = false; 214 for (int c = 0; c < collections.size(); c++) 215 { 216 if (collections[c] == collection) 217 { 218 collection_found = true; 219 break; 220 } 221 } 222 223 // The collection was not found 224 if (!collection_found) 225 { 226 this->errorType = "badArgument"; 227 return false; 228 } 212 if (!this->configuration->isValidCollection(collection)) { 213 this->errorType = "badArgument"; 214 return false; 215 } 229 216 230 217 // Check the child set if it was given
Note:
See TracChangeset
for help on using the changeset viewer.