Ignore:
Timestamp:
2010-10-27T14:42:35+13:00 (13 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.