Ignore:
Timestamp:
2006-04-28T11:26:25+12:00 (18 years ago)
Author:
grbuchan
Message:

Improved functionality in resumptiontoken; additional support of resumption
behaviour in configuration; better honouring of OAI settings on collections
(i.e. collections not explicitly listed could be revealed through OAI by
accident).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/oaiservr/oaiconfig.cpp

    r9608 r11732  
    3434
    3535oaiconfig::oaiconfig() : configurable () {
     36  this->resumptionSize = -1; // Default = do not use resumption tokens
    3637}
    3738
     
    4142  text_t mainconfig = filename_cat(gsdlhome, "etc", "oai.cfg");
    4243  this->collection = "";
     44  this->resumptionSize = -1;
    4345  this->read_configfile(mainconfig);
    44  
     46
    4547  // then if we've not got a specified collection in the gsdlcollect
    4648  // parameter, read in all the collection's individual configurations
     
    6668    ++here;
    6769  }
     70}
     71
     72int oaiconfig::resumeAfter()
     73{ return this->resumptionSize;
    6874}
    6975
     
    186192    this->oaiVersion = cfgline[0];
    187193  }
     194  else if (key == "resumeafter" && cfgline.size() >= 1) {
     195    this->resumptionSize = cfgline[0].getint();
     196  }
    188197  // get and note a maintainer item to support the Identify Verb of OAI
    189198  else if (key == "maintainer" && cfgline.size() >= 1) {
Note: See TracChangeset for help on using the changeset viewer.