Changeset 15872 for gsdl/trunk/perllib/plugins/OAIPlugin.pm
- Timestamp:
- 2008-06-05T09:29:32+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/OAIPlugin.pm
r15865 r15872 25 25 ########################################################################### 26 26 27 package OAIPlug; 28 29 use BasPlug; 27 package OAIPlugin; 28 30 29 use unicode; 31 30 use util; … … 34 33 no strict 'refs'; # allow filehandles to be variables and viceversa 35 34 36 use XMLPlug;35 use ReadXMLFile; 37 36 38 37 sub BEGIN { 39 @OAIPlug ::ISA = ('XMLPlug');38 @OAIPlugin::ISA = ('ReadXMLFile'); 40 39 } 41 40 … … 49 48 ]; 50 49 51 my $options = { 'name' => "OAIPlug ",52 'desc' => "{OAIPlug .desc}",50 my $options = { 'name' => "OAIPlugin", 51 'desc' => "{OAIPlugin.desc}", 53 52 'abstract' => "no", 54 53 'inherits' => "yes", … … 61 60 push(@$pluginlist, $class); 62 61 63 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}64 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};65 66 my $self = new XMLPlug($pluginlist, $inputargs, $hashArgOptLists);62 push(@{$hashArgOptLists->{"ArgList"}},@{$arguments}); 63 push(@{$hashArgOptLists->{"OptList"}},$options); 64 65 my $self = new ReadXMLFile($pluginlist, $inputargs, $hashArgOptLists); 67 66 68 67 return bless $self, $class; … … 98 97 99 98 my $outhandle = $self->{'outhandle'}; 100 print $outhandle "OAIPlug : processing $self->{'file'}\n" if $self->{'verbosity'} > 1;101 print STDERR "<Processing n='$self->{'file'}' p='OAIPlug '>\n" if $self->{'gli'};99 print $outhandle "OAIPlugin: processing $self->{'file'}\n" if $self->{'verbosity'} > 1; 100 print STDERR "<Processing n='$self->{'file'}' p='OAIPlugin'>\n" if $self->{'gli'}; 102 101 103 102 } … … 199 198 if ($srcdoc_exists) 200 199 { 201 print $outhandle "OAIPlug : passing metadata on to $url_array->[0]\n"200 print $outhandle "OAIPlugin: passing metadata on to $url_array->[0]\n" 202 201 if ($self->{'verbosity'}>1); 203 202 … … 265 264 my $outhandle = $self->{'outhandle'}; 266 265 267 print STDERR "<Processing n='$file' p='OAIPlug '>\n" if ($gli);268 print $outhandle "OAIPlug : processing $file\n"266 print STDERR "<Processing n='$file' p='OAIPlugin'>\n" if ($gli); 267 print $outhandle "OAIPlugin: processing $file\n" 269 268 if $self->{'verbosity'} > 1; 270 269 … … 411 410 412 411 if ($top_level_prefix !~ /dc$/) { 413 print $outhandle "Warning: OAIPlug currently only designed for Dublin Core (or variant) metadata\n";412 print $outhandle "Warning: OAIPlugin currently only designed for Dublin Core (or variant) metadata\n"; 414 413 print $outhandle " This recorded metadata section '$top_level_prefix' does not appear to match.\n"; 415 414 print $outhandle " Metadata assumed to be in form: <prefix:tag>value</prefix:tag> and will be converted\n";
Note:
See TracChangeset
for help on using the changeset viewer.