Changeset 20804


Ignore:
Timestamp:
2009-10-12T13:12:00+13:00 (15 years ago)
Author:
kjdon
Message:

adding back in the code to store which file metaata came from. used later to add metadata files into reverse lookup database - otherwise we can't tell which files are new, which are existing

File:
1 edited

Legend:

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

    r20794 r20804  
    193193    $extrametadata->{$csv_line_filename} = \%csv_line_metadata;
    194194    push(@$extrametakeys, $csv_line_filename);
    195     # record which file the metadata came from - don't need to do this as if meta file changes, we
    196     # reimport everything
    197 #   if (!defined $extrametafile->{$csv_line_filename}) {
    198 #       $extrametafile->{$csv_line_filename} = {};
    199 #   }
     195    # record which file the metadata came from
     196    if (!defined $extrametafile->{$csv_line_filename}) {
     197        $extrametafile->{$csv_line_filename} = {};
     198    }
    200199    # maps the file to full path
    201 #   $extrametafile->{$csv_line_filename}->{$file} = $filename;
     200    $extrametafile->{$csv_line_filename}->{$file} = $filename;
    202201    }
    203202}
Note: See TracChangeset for help on using the changeset viewer.