Changeset 15872 for gsdl/trunk/perllib/plugins/ISISPlugin.pm
- Timestamp:
- 2008-06-05T09:29:32+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/ISISPlugin.pm
r15865 r15872 1 1 ########################################################################### 2 2 # 3 # ISISPlug .pm -- A plugin for CDS/ISIS databases3 # ISISPlugin.pm -- A plugin for CDS/ISIS databases 4 4 # 5 5 # A component of the Greenstone digital library software … … 25 25 ########################################################################### 26 26 27 package ISISPlug ;27 package ISISPlugin; 28 28 29 29 30 30 use multiread; 31 use Split Plug;31 use SplitTextFile; 32 32 33 33 use strict; 34 34 no strict 'refs'; # allow filehandles to be variables and viceversa 35 35 36 # ISISPlug is a sub-class of SplitPlug.36 # ISISPlugin is a sub-class of SplitTextFile. 37 37 sub BEGIN { 38 @ISISPlug ::ISA = ('SplitPlug');38 @ISISPlugin::ISA = ('SplitTextFile'); 39 39 } 40 40 … … 42 42 my $arguments = 43 43 [ { 'name' => "process_exp", 44 'desc' => "{Bas Plug.process_exp}",44 'desc' => "{BasePlugin.process_exp}", 45 45 'type' => "regexp", 46 46 'reqd' => "no", 47 47 'deft' => &get_default_process_exp() }, 48 48 { 'name' => "block_exp", 49 'desc' => "{Bas Plug.block_exp}",49 'desc' => "{BasePlugin.block_exp}", 50 50 'type' => "regexp", 51 51 'reqd' => "no", … … 53 53 'hiddengli' => "yes" }, 54 54 { 'name' => "split_exp", 55 'desc' => "{Split Plug.split_exp}",55 'desc' => "{SplitTextFile.split_exp}", 56 56 'type' => "regexp", 57 57 'reqd' => "no", … … 61 61 # The interesting options 62 62 { 'name' => "entry_separator", 63 'desc' => "{ISISPlug .entry_separator}",63 'desc' => "{ISISPlugin.entry_separator}", 64 64 'type' => "string", 65 65 'reqd' => "no", 66 66 'deft' => "<br>" }, 67 67 { 'name' => "subfield_separator", 68 'desc' => "{ISISPlug .subfield_separator}",68 'desc' => "{ISISPlugin.subfield_separator}", 69 69 'type' => "string", 70 70 'reqd' => "no", … … 72 72 ]; 73 73 74 my $options = { 'name' => "ISISPlug ",75 'desc' => "{ISISPlug .desc}",74 my $options = { 'name' => "ISISPlugin", 75 'desc' => "{ISISPlugin.desc}", 76 76 'abstract' => "no", 77 77 'inherits' => "yes", … … 104 104 push(@$pluginlist, $class); 105 105 106 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}107 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};108 109 my $self = new Split Plug($pluginlist, $inputargs, $hashArgOptLists);106 push(@{$hashArgOptLists->{"ArgList"}},@{$arguments}); 107 push(@{$hashArgOptLists->{"OptList"}},$options); 108 109 my $self = new SplitTextFile($pluginlist, $inputargs, $hashArgOptLists); 110 110 111 111 if ($self->{'info_only'}) { … … 157 157 158 158 my $reader = new multiread(); 159 $reader->set_handle('ISISPlug ::FILE');159 $reader->set_handle('ISISPlugin::FILE'); 160 160 $reader->set_encoding($encoding); 161 161 $reader->read_file($textref); … … 186 186 187 187 # Report that we're processing the file 188 print STDERR "\n<Processing n='$file' p='ISISPlug '>\n" if ($gli);188 print STDERR "\n<Processing n='$file' p='ISISPlugin'>\n" if ($gli); 189 189 print $outhandle "IsisPlug: processing $file\n" if ($self->{'verbosity'}) > 1; 190 190 … … 348 348 my $fdtfiletext = ""; 349 349 my $reader = new multiread(); 350 $reader->set_handle('ISISPlug ::FDT_FILE');350 $reader->set_handle('ISISPlugin::FDT_FILE'); 351 351 $reader->set_encoding($encoding); 352 352 $reader->read_file($fdtfiletext);
Note:
See TracChangeset
for help on using the changeset viewer.