Changeset 17590 for gsdl


Ignore:
Timestamp:
2008-10-24T10:34:39+13:00 (15 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

File:
1 edited

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   
Note: See TracChangeset for help on using the changeset viewer.