Changeset 10218 for trunk/gsdl/perllib/plugins/OAIPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/OAIPlug.pm
r10111 r10218 54 54 55 55 sub new { 56 my $class = shift (@_); 57 my $self = new XMLPlug ($class, @_); 58 $self->{'plugin_type'} = "OAIPlug"; 59 # 14-05-02 To allow for proper inheritance of arguments - John Thompson 60 my $option_list = $self->{'option_list'}; 61 push( @{$option_list}, $options ); 62 63 if (!parsargv::parse(\@_, 64 "allow_extra_options")) { 65 66 print STDERR "\nIncorrect options passed to OAIPlug, check your collect.cfg configuration file\n"; 67 $self->print_txt_usage(""); # Use default resource bundle 68 die "\n"; 69 } 56 my ($class) = shift (@_); 57 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 58 push(@$pluginlist, $class); 59 60 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 61 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 62 63 my $self = (defined $hashArgOptLists)? new XMLPlug($pluginlist,$inputargs,$hashArgOptLists): new XMLPlug($pluginlist,$inputargs); 70 64 71 65 return bless $self, $class;
Note:
See TracChangeset
for help on using the changeset viewer.