Ignore:
Timestamp:
2010-02-16T19:57:37+13:00 (14 years ago)
Author:
ak19
Message:

For Fedora: the Greenstone server's prefix URL is obtained from gsdlsite.cfg for GS2 and from greenstone3.xml in packages/tomcat for GS3 and this is used by FedoraMETSPlugout so it can refer to the relative paths for associated files like images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/g2futil.pm

    r21687 r21719  
    320320 
    321321    # b. Use the collectParentDir to create the contents of gsdl.xml
     322    my $greenstone_url_prefix = &util::get_greenstone_url_prefix(); # would have the required slash at front
    322323    my $gsdlXMLcontents = "<?xml version='1.0' encoding='utf-8'?>\n<Context docBase=\"";
    323     $gsdlXMLcontents = $gsdlXMLcontents.$collectParentDir."\" path=\"/gsdl\"></Context>";
     324    $gsdlXMLcontents = $gsdlXMLcontents.$collectParentDir."\" path=\"$greenstone_url_prefix\"></Context>";
    324325   
    325326    # 3. If there is already a gsdl.xml file in host_path, compare the string we
Note: See TracChangeset for help on using the changeset viewer.