Changeset 13065


Ignore:
Timestamp:
2006-10-10T14:05:55+13:00 (18 years ago)
Author:
shaoqun
Message:

added the host name to the downloaded oai file path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/downloaders/OAIDownload.pm

    r12580 r13065  
    285285
    286286        $strOutputDir  =~ s/"//g; #"
     287
     288        my $host =$self->{'url'};
    287289 
    288     my $strFileURL = "$strOutputDir/$fileDirs[0]/$fileDirs[1].oai";
     290        $host =~ s/http:\/\///g;
     291
     292        $host =~ s/:.*//g;
     293
     294    my $strFileURL = "$strOutputDir/$host/$fileDirs[0]/$fileDirs[1].oai";
    289295   
    290296    # prepare subdirectory for record (if needed)
Note: See TracChangeset for help on using the changeset viewer.