Changeset 20803

Show
Ignore:
Timestamp:
12.10.2009 13:09:18 (10 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

Files:
1 modified

Legend:

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

    r20793 r20803  
    270270         
    271271        # now record which metadata.xml file it came from 
    272         # I don't think we need to do this, as if a metadata file has changed, we  
    273         # reimport the whole folder. - we don't know if the file has metadata for a new doc. 
    274  
    275         #my $file = $self->{'metadata-file'}; 
    276         #my $filename = $self->{'metadata-filename'}; 
    277  
    278         #if (!defined $self->{'metafileref'}->{$target}) { 
    279         #   $self->{'metafileref'}->{$target} = {}; 
    280         #} 
    281  
    282         #$self->{'metafileref'}->{$target}->{$file} = $filename 
     272 
     273        my $file = $self->{'metadata-file'}; 
     274        my $filename = $self->{'metadata-filename'}; 
     275 
     276        if (!defined $self->{'metafileref'}->{$target}) { 
     277            $self->{'metafileref'}->{$target} = {}; 
     278        } 
     279 
     280        $self->{'metafileref'}->{$target}->{$file} = $filename 
    283281    } 
    284282    }