Ignore:
Timestamp:
2013-09-10T15:37:45+12:00 (11 years ago)
Author:
ak19
Message:
  1. Jenny and I fixed an oversight in OAIDownload, thanks to Kathy's suggestion, where an html page's contents used to be inspected for file types specified to be downloaded with GetDocument ONLY if the file extension was htm(l). Now the test is whether the header specifies Content-Type text/html. 2. Deprecated utils functions replaced with their FileUtils equivalents.
File:
1 edited

Legend:

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

    r17527 r28250  
    4444    if ($ENV{'GSDLCOLLECTDIR'}){
    4545   
    46     $coldownloadname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},
     46    $coldownloadname = &FileUtils::filenameConcatenate($ENV{'GSDLCOLLECTDIR'},
    4747                          "perllib","downloaders",
    4848                          "${download_name}.pm");
     
    5050    }
    5151   
    52     my $maindownloadname = &util::filename_cat($ENV{'GSDLHOME'},
     52    my $maindownloadname = &FileUtils::filenameConcatenate($ENV{'GSDLHOME'},
    5353                           "perllib","downloaders",
    5454                           "${download_name}.pm");
Note: See TracChangeset for help on using the changeset viewer.