Changeset 14283


Ignore:
Timestamp:
2007-07-31T10:43:25+12:00 (17 years ago)
Author:
xiao
Message:

modify to read the baseURL from oai.cfg using getCollectionConfig() instead of using site_cfg_read() from gsdlsite.cfg.

File:
1 edited

Legend:

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

    r9608 r14283  
    2626  text_t version = (this->configuration->getOAIVersion() <= 110) ? (text_t)"1.1":(text_t)"2.0";
    2727
    28   site_cfg_read(gsdlhome, httpdomain, httpprefix);
     28  //site_cfg_read(gsdlhome, httpdomain, httpprefix);
     29  text_t baseURL = this->configuration->getCollectionConfig("", "baseURL");
    2930 
    3031  output << "  <repositoryName>"  << repositoryName << "</repositoryName>" << endl;
    31   output << "  <baseURL>"         << httpdomain     << "/oaimain</baseURL>" << endl; // Tack on the app name
     32  output << "  <baseURL>"         << baseURL     << "</baseURL>" << endl; // Tack on the app name
    3233  output << "  <adminEmail>"      << maintainer     << "</adminEmail>" << endl;
    3334  output << "  <protocolVersion>" << version        << "</protocolVersion>" << endl;
Note: See TracChangeset for help on using the changeset viewer.