Ignore:
Timestamp:
2004-08-06T16:23:22+12:00 (20 years ago)
Author:
chi
Message:

Some minor changes in preparation for the introduction of METSPlug.

File:
1 edited

Legend:

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

    r7508 r7900  
    6767                        'Doctype' => \&Doctype,
    6868                        'Default' => \&Default
    69                         }
    70                  );
     69                        });
     70
     71   
     72               
    7173    $self->{'parser'} = $parser;
    7274
     
    100102    $self->{'parser'}->parsefile($filename);
    101103    };
     104 
    102105    if ($@) {
    103106
     
    109112    # we'll just continue quietly
    110113
     114    ## print STDERR "**** Error is: $@\n";
     115
    111116    my ($msg) = $@ =~ /Carp::croak\(\'(.*?)\'\)/;
    112117    if (defined $msg) {
     
    115120        print $outhandle "$plugin_name failed to process $file ($msg)\n";
    116121    }
     122
    117123    # reset ourself for the next document
    118124    $self->{'section_level'}=0;
    119125    return -1; # error during processing
    120126    }
    121 
    122127    return 1; # processed the file
    123128}
     
    2502551;
    251256
     257
     258
     259
Note: See TracChangeset for help on using the changeset viewer.