Ignore:
Timestamp:
2008-08-11T14:04:23+12:00 (16 years ago)
Author:
kjdon
Message:

if marc mapping file cannot be located, print a warning about can't extract metadata but continue to process the file - get the record in the text so at least get something in the collection

File:
1 edited

Legend:

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

    r16695 r16697  
    111111    my $msg = "MARCXMLPlugin ERROR: Can't locate mapping file \"" .
    112112        $self->{'metadata_mapping_file'} . "\".\n " .
    113         "    No marc files can be processed.\n";
     113        "    No metadata will be extracted from MARCXML files.\n";
    114114
    115115    print $outhandle $msg;
     
    206206
    207207    my $outhandle = $self->{'outhandle'};
    208     print $outhandle "Record $self->{'record_count'} - MARCXMLPlugin: processing $self->{'file'}\n" if $self->{'verbosity'} > 1;
     208    print $outhandle "Record $self->{'record_count'}\n" if $self->{'verbosity'} > 1;
    209209
    210210        $self->{'record_count'}++;
     
    322322
    323323    ## map the xmlmarc to gsdl metadata
    324     if ($element eq "datafield" and defined $self->{'doc_obj'} and defined $self->{'marc_mapping'}){
     324    if ($element eq "datafield" and defined $self->{'doc_obj'} and defined $self->{'marc_mapping'} and defined $self->{'metadata_mapping'}){
    325325    my $metadata_mapping = $self->{'metadata_mapping'};
    326326    my $marc_mapping = $self->{'marc_mapping'};
Note: See TracChangeset for help on using the changeset viewer.