Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r9853 r10218  
    3939
    4040sub BEGIN {
    41     @ISA = ('BasPlug');
     41    @BNContentePlug::ISA = ('BasPlug');
    4242    unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
    4343}
     
    9393
    9494sub new {
    95     my $class = shift (@_);
    96     #my $plugin_name = shift (@_);
    97 
    98     $self = new BasPlug ($class, @_);
    99     $self->{'plugin_type'} = "BNContentePlug";
    100 
    101     my $option_list = $self->{'option_list'};
    102     push( @{$option_list}, $options );
    103  
    104     if (!parsargv::parse(\@_,
    105              "allow_extra_options")) {
    106     print STDERR "\nBNContentePlug uses an incorrect option.\n";
    107     print STDERR "Check your collect.cfg configuration file.\n\n";
    108     $self->print_txt_usage("");  # Use default resource bundle
    109     die "\n";
    110     }
     95    my ($class) = shift (@_);
     96    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     97    push(@$pluginlist, $class);
     98
     99    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     100    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     101
     102    $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    111103   
    112104    #create XML::Parser object for parsing metsHTML.xml, NCB_???.xml files
Note: See TracChangeset for help on using the changeset viewer.