Changeset 14282


Ignore:
Timestamp:
2007-07-31T10:41:04+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/oaiaction.cpp

    r9608 r14282  
    216216 
    217217  // Read stuff from the gsdlsite.cfg file. We do this to get the base URL (httpdomain)
    218   site_cfg_read(gsdlhome, httpdomain, httpprefix);
     218  //site_cfg_read(gsdlhome, httpdomain, httpprefix);
     219  text_t baseURL = this->configuration->getCollectionConfig("", "baseURL");
    219220
    220221  int version = this->configuration->getOAIVersion();
     
    225226     * <requestURL>http://baseURL.com/oaimain?verb="someVerb"&amp;key=value</requestURL>
    226227     */
    227     requestURL = "  <requestURL>" + httpdomain + "/oaimain";
     228    requestURL = "  <requestURL>" + baseURL;
    228229   
    229230    if(numArgs == 0) break; // If no args, all done - the error will be picked up later
     
    251252     */
    252253    if(numArgs == 0) {
    253       requestURL = "  <request>" + httpdomain + "/oaimain</request>\n";
     254      requestURL = "  <request>" + baseURL + "</request>\n";
    254255      break;
    255256    }
     
    260261      ++here;
    261262    }
    262     requestURL += ">\n           " + httpdomain + "/oaimain</request>\n";
     263    requestURL += ">\n           " + baseURL + "</request>\n";
    263264    break;
    264265  }
Note: See TracChangeset for help on using the changeset viewer.