Ignore:
Timestamp:
2013-06-04T11:05:08+12:00 (11 years ago)
Author:
kjdon
Message:

implemented oaisupercollection. add to oai.cfg and the server will make a new set containing the specified collections

File:
1 edited

Legend:

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

    r22739 r27528  
    179179    text_t set = params["set"];
    180180
     181    // Is the set a super collection??
     182    text_tarray &super_collections = this->configuration->getSuperCollectionsList();
     183    bool super_collection_found = false;
     184    for (int c = 0; c < super_collections.size(); c++)
     185    {
     186      if (super_collections[c] == set)
     187      {
     188    super_collection_found = true;
     189    break;
     190      }
     191    }
     192    if (super_collection_found) {
     193      this->errorType = "";
     194      return true;
     195    }
     196   
    181197    // Extract the collection name from the set specification
    182198    text_t collection = "";
Note: See TracChangeset for help on using the changeset viewer.