Changeset 17590

Show
Ignore:
Timestamp:
24.10.2008 10:34:39 (11 years ago)
Author:
kjdon
Message:

commit 17320 means that DirectoryPlugin? now assumes that filepaths in extrametadata are relative to current directory, not import dir, so need to remove path info for the oai file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/OAIPlugin.pm

    r17588 r17590  
    197197    my $srcdoc_pos = 0; 
    198198    my $filename_dir = &util::filename_head($filename_full_path); 
    199     my $filename_for_metadata = $file; # this assumes there will only be one record per oai file - is this always the case?? 
     199     
     200    # filenames in extrametadata must have no path info, as DirectoryPlugin  
     201    # adds path info on itself 
     202    my ($filename_for_metadata) = $file =~ /([^\\\/]+)$/; # this assumes there will only be one record per oai file - is this always the case?? 
    200203    for (my $i=0; $i<$num_urls; $i++) { 
    201204