Changeset 23234


Ignore:
Timestamp:
2010-10-27T14:42:35+13:00 (11 years ago)
Author:
kjdon
Message:

use a relative path for oai2.xsl, otherwise sometimes it doesn't like it if the IP address is not exactly the same as the original URL

Location:
main/trunk/greenstone2/runtime-src/src/oaiservr
Files:
2 edited

Legend:

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

    r22739 r23234  
    332332  }
    333333  else {
    334     text_t baseDocRoot = this->configuration->getBaseDocRoot();
     334    text_t baseDocRoot = this->configuration->getRelativeBaseDocRoot();
    335335    output << "<?xml-stylesheet type=\"text/xsl\" href=\""<<baseDocRoot<<"/web/style/oai2.xsl\" ?>\n";
    336336    // output OAI v2.0 action header tag
  • main/trunk/greenstone2/runtime-src/src/oaiservr/oaidispatcher.cpp

    r22739 r23234  
    8888    else {
    8989      // output OAI v2.0 action header tag
    90       text_t baseDocRoot = this->configuration->getBaseDocRoot();
     90      text_t baseDocRoot = this->configuration->getRelativeBaseDocRoot();
    9191      output << "<?xml-stylesheet type=\"text/xsl\" href=\""<<baseDocRoot<<"/web/style/oai2.xsl\" ?>\n";   
    9292      output << "<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"\n"
Note: See TracChangeset for help on using the changeset viewer.