Changeset 10218 for trunk/gsdl/perllib/plugins/BNContentePlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/BNContentePlug.pm
r9853 r10218 39 39 40 40 sub BEGIN { 41 @ ISA = ('BasPlug');41 @BNContentePlug::ISA = ('BasPlug'); 42 42 unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan"); 43 43 } … … 93 93 94 94 sub 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); 111 103 112 104 #create XML::Parser object for parsing metsHTML.xml, NCB_???.xml files
Note:
See TracChangeset
for help on using the changeset viewer.