Changeset 20792

Show
Ignore:
Timestamp:
07.10.2009 15:55:15 (10 years ago)
Author:
kjdon
Message:

store the oai file as a metadata fiels for the source doc if is exists, using the extrametafile mechanism

Files:
1 modified

Legend:

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

    r20787 r20792  
    248248    $extrametadata->{$filename_for_metadata} = $new_metadata; 
    249249    push(@$extrametakeys, $filename_for_metadata); 
    250  
     250    if ($srcdoc_exists) { 
     251    if (!defined $extrametafile->{$filename_for_metadata}) { 
     252        $extrametafile->{$filename_for_metadata} = {}; 
     253    } 
     254     #maps the file to full path 
     255    $extrametafile->{$filename_for_metadata}->{$file} = $filename_full_path; 
     256    } 
    251257    return 1; 
    252258