- 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/oaiconfig.cpp
r27528 r27534 110 110 } 111 111 return 200; 112 } 113 114 bool oaiconfig::isValidCollection(const text_t &collection) 115 { 116 for (int c = 0; c < this->collectList.size(); c++) 117 if (this->collectList[c] == collection) { 118 return true; 119 } 120 return false; 112 121 } 113 122 … … 208 217 for (int c = 0; c < cfgline.size(); ++c) { 209 218 this->collectList.push_back(cfgline[c]); 219 addToAllCollectionsList(cfgline[c]); 210 220 } 211 221 } 212 222 else if (key == "oaisupercollection" && cfgline.size() > 1) { 213 223 214 // Configure a hierarchical superset224 // Configure a super collection set 215 225 // The line should read 216 226 // … … 240 250 } 241 251 this->collectMap[sub_coll]->superCollectList.push_back(super_set); 252 addToAllCollectionsList(sub_coll); 242 253 } 243 254 } … … 358 369 } 359 370 } 360 371 372 void oaiconfig::addToAllCollectionsList(const text_t coll_name) { 373 374 for (int c=0; c<this->allCollectList.size(); c++) { 375 if (allCollectList[c] == coll_name) return; 376 } 377 this->allCollectList.push_back(coll_name); 378 379 } 361 380 362 381 text_t oaiconfig::generateBaseServerURL() { … … 481 500 } 482 501 483 text_tarray oaiconfig::getSuperCollectionsForThisCollection(const text_t &collection) { 502 503 text_tarray oaiconfig::getSuperCollectionsForThisCollection(const text_t &collection) 504 { 484 505 485 506 text_tarray super_colls;
Note:
See TracChangeset
for help on using the changeset viewer.