Ignore:
Timestamp:
2013-06-04T15:56:26+12:00 (11 years ago)
Author:
kjdon
Message:

more changes for super collection stuff. Now can handle having collections in a super colleciton that are not in the main collection list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/listidsaction.cpp

    r27528 r27534  
    210210
    211211    // 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    }     
    229216
    230217    // Check the child set if it was given
Note: See TracChangeset for help on using the changeset viewer.