Changeset 10218 for trunk/gsdl/perllib/plugins/ProCitePlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ProCitePlug.pm
r9494 r10218 74 74 sub new 75 75 { 76 my $class = shift(@_); 77 78 my $self = new SplitPlug($class, @_); 79 if (!parsargv::parse(\@_, 80 "allow_extra_options")) { 81 die "\nIncorrect options passed to ProCitePlug, check your collect.cfg configuration file\n"; 82 } 83 84 # To allow for proper inheritance of arguments 85 my $option_list = $self->{'option_list'}; 86 push(@{$option_list}, $options); 87 $self->{'plugin_type'} = "ProCitePlug"; 76 my ($class) = shift (@_); 77 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 78 push(@$pluginlist, $class); 79 80 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 81 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 82 83 my $self = (defined $hashArgOptLists)? new SplitPlug($pluginlist,$inputargs,$hashArgOptLists): new SplitPlug($pluginlist,$inputargs); 88 84 89 85 return bless $self, $class;
Note:
See TracChangeset
for help on using the changeset viewer.