Changeset 22284 for main/trunk/greenstone2/runtime-src/src
- Timestamp:
- 2010-06-23T13:49:55+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/src/oaiservr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiconfig.cpp
r22212 r22284 261 261 this->repositoryName = cfgline[0]; 262 262 } 263 else if (key == "repositoryId") { 264 this->repositoryId = cfgline[0]; 265 } 266 else if (key == "repositoryIdVersion") { 267 this->repositoryIdVersion = cfgline[0]; 268 } 263 269 else if (key == "baseURL") { 264 270 this->baseURL = cfgline[0]; … … 270 276 this->baseDocRoot = cfgline[0]; 271 277 } 278 else if (key == "oaiversion") { 279 this->oaiVersion = cfgline[0]; 280 } 272 281 273 282 } … … 334 343 return this->repositoryName; 335 344 } 345 text_t oaiconfig::getRepositoryId() 346 { 347 return this->repositoryId; 348 } 349 text_t oaiconfig::getRepositoryIdVersion() 350 { 351 return this->repositoryIdVersion; 352 } 336 353 text_t oaiconfig::getMaintainer() 337 354 { -
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiconfig.h
r22212 r22284 36 36 text_t getBaseDocRoot(); 37 37 text_t getRepositoryName(); 38 text_t getRepositoryId(); 39 text_t getRepositoryIdVersion(); 38 40 text_t getMaintainer(); 39 41 private: 40 42 bool configureCollection(const text_t &gsdlhome, const text_t &collection); 41 43 42 text_t repositoryName; 44 text_t repositoryName; // human readable name 45 text_t repositoryId; // unique (among oai servers) domain name or id for the repository 46 text_t repositoryIdVersion; // 1.1 or 2.0 for identifier scheme 43 47 text_t baseURL; // URL of oaiserver.cgi 44 48 text_t baseLibraryURL; // URL of library.cgi (used for urls to greenstone documents )
Note:
See TracChangeset
for help on using the changeset viewer.