- Timestamp:
- 2011-06-03T22:44:28+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiconfig.cpp
r23233 r24114 83 83 if (!this->configureCollection(gsdlhome, *here)) { 84 84 this->collectList.erase(here); 85 } 86 85 } 87 86 } 88 87 else { … … 119 118 if (!file_exists(cnfgfile)) { 120 119 return false; 121 } 120 } 121 122 122 this->collection = gsdlcollect; 123 123 this->read_configfile(cnfgfile); 124 124 125 // to work out the earliestDatestamp for the repository, need to 126 // to read in the build.cfg file of each OAI collection, in order to 127 // find the oldest earliestDatestamp field of all the OAI collections 128 text_t buildcnfgfile = filename_cat(gsdlhome, "collect", gsdlcollect, "index", "build.cfg"); 129 if (file_exists(buildcnfgfile)) { 130 this->read_configfile(buildcnfgfile); 131 } 132 125 133 return true; 126 134 } … … 309 317 this->oaiVersion = cfgline[0]; 310 318 } 311 312 } 319 } 320 313 321 314 322 text_t oaiconfig::generateBaseServerURL() {
Note:
See TracChangeset
for help on using the changeset viewer.