Ignore:
Timestamp:
2010-06-23T13:49:55+12:00 (14 years ago)
Author:
kjdon
Message:

new toOID takes an extra arg, repos_id, so its generates ids like oai:repos-id:collname:doc-id. old version is still used for set spec ids which remain like demo:CL5. another method to extrac the collection name from a full id

File:
1 edited

Legend:

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

    r22212 r22284  
    261261    this->repositoryName = cfgline[0];
    262262  }
     263  else if (key == "repositoryId") {
     264    this->repositoryId = cfgline[0];
     265  }
     266  else if (key == "repositoryIdVersion") {
     267    this->repositoryIdVersion = cfgline[0];
     268  }
    263269  else if (key == "baseURL") {
    264270    this->baseURL = cfgline[0];
     
    270276    this->baseDocRoot = cfgline[0];
    271277  }
     278  else if (key == "oaiversion") {
     279    this->oaiVersion = cfgline[0];
     280  }
    272281 
    273282}
     
    334343  return this->repositoryName;
    335344}
     345text_t oaiconfig::getRepositoryId()
     346{
     347  return this->repositoryId;
     348}
     349text_t oaiconfig::getRepositoryIdVersion()
     350{
     351  return this->repositoryIdVersion;
     352}
    336353text_t oaiconfig::getMaintainer()
    337354{
Note: See TracChangeset for help on using the changeset viewer.