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/DSpacePlug.pm

    r9853 r10218  
    5454
    5555sub BEGIN {
    56     @ISA = ('BasPlug');
     56    @DSpacePlug::ISA = ('BasPlug');
    5757}
    5858
     
    9696
    9797sub new {
    98     my $class = shift (@_);
    99     #my $plugin_name = shift (@_);
    100 
    101     $self = new BasPlug ($class, @_);
    102     $self->{'plugin_type'} = "DSpacePlug";
    103 
    104     my $option_list = $self->{'option_list'};
    105     push( @{$option_list}, $options );
    106 
    107  
    108     if (!parsargv::parse(\@_,
    109              q^only_first_doc^, \$self->{'only_first_doc'},
    110              q^first_inorder_ext/.*/^, \$self->{'first_inorder_ext'},
    111              q^first_inorder_mime/.*/^, \$self->{'first_inorder_mime'},
    112              "allow_extra_options")) {
    113     print STDERR "\nDSpacePlug uses an incorrect option.\n";
    114     print STDERR "Check your collect.cfg configuration file.\n\n";
    115     $self->print_txt_usage("");  # Use default resource bundle
    116     die "\n";
    117     }
     98    my ($class) = shift (@_);
     99    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     100    push(@$pluginlist, $class);
     101
     102    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     103    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     104
     105    $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    118106   
    119107    #create XML::Parser object for parsing dublin_core.xml files
Note: See TracChangeset for help on using the changeset viewer.