Ignore:
Timestamp:
2005-03-23T15:46:13+12:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed some problems with SplitPlug and MARCPlug caused by the metadata_read code (only one file would be processed because the data wasn't stored by filename and would therefore be overwritten by following files).

File:
1 edited

Legend:

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

    r9118 r9493  
    191191    $self->{'readfile_encoding'} = $encoding;
    192192
    193     @marc_entries = ();
     193    my @marc_entries = ();
    194194
    195195    if (!-r $filename)
     
    208208    }
    209209
    210     $self->{'marc_entries'} = \@marc_entries;
     210    $self->{'marc_entries'}->{$filename} = \@marc_entries;
    211211}
    212212
     
    235235    $doc_obj->add_metadata($cursection, "FileFormat", "MARC");
    236236   
    237     my $marc_entries = $self->{'marc_entries'};
     237    my $filename = &util::filename_cat($base_dir, $file);
     238    my $marc_entries = $self->{'marc_entries'}->{$filename};
    238239    my $marc = shift(@$marc_entries);
    239240
Note: See TracChangeset for help on using the changeset viewer.