Changeset 15872 for gsdl/trunk/perllib/plugins/ReferPlugin.pm
- Timestamp:
- 2008-06-05T09:29:32+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/ReferPlugin.pm
r15865 r15872 1 1 ########################################################################### 2 2 # 3 # ReferPlug .pm - a plugin for bibliography records in Refer format3 # ReferPlugin.pm - a plugin for bibliography records in Refer format 4 4 # 5 5 # A component of the Greenstone digital library software … … 26 26 ########################################################################### 27 27 28 # ReferPlug reads bibliography files in Refer format.28 # ReferPlugin reads bibliography files in Refer format. 29 29 # 30 30 # by Gordon W. Paynter ([email protected]), November 2000 … … 36 36 # 37 37 # 38 # ReferPlug creates a document object for every reference in the file.39 # It is a subclass of Split Plug, so if there are multiple records, all38 # ReferPlugin creates a document object for every reference in the file. 39 # It is a subclass of SplitTextFile, so if there are multiple records, all 40 40 # are read. 41 41 # … … 61 61 # 62 62 63 # 12/05/02 Added usage datastructure - John Thompson 64 65 package ReferPlug; 66 67 use SplitPlug; 63 package ReferPlugin; 64 65 use SplitTextFile; 68 66 use strict; 69 67 no strict 'refs'; # allow filehandles to be variables and viceversa 70 68 71 # ReferPlug is a sub-class of BasPlug.69 # ReferPlugin is a sub-class of BasePlugin. 72 70 sub BEGIN { 73 @ReferPlug ::ISA = ('SplitPlug');71 @ReferPlugin::ISA = ('SplitTextFile'); 74 72 } 75 73 76 74 my $arguments = 77 75 [ { 'name' => "process_exp", 78 'desc' => "{Bas Plug.process_exp}",76 'desc' => "{BasePlugin.process_exp}", 79 77 'type' => "regexp", 80 78 'deft' => &get_default_process_exp(), 81 79 'reqd' => "no" }, 82 80 { 'name' => "split_exp", 83 'desc' => "{Split Plug.split_exp}",81 'desc' => "{SplitTextFile.split_exp}", 84 82 'type' => "regexp", 85 83 'reqd' => "no", … … 87 85 ]; 88 86 89 my $options = { 'name' => "ReferPlug ",90 'desc' => "{ReferPlug .desc}",87 my $options = { 'name' => "ReferPlugin", 88 'desc' => "{ReferPlugin.desc}", 91 89 'abstract' => "no", 92 90 'inherits' => "yes", … … 109 107 push(@$pluginlist, $class); 110 108 111 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}112 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};113 114 my $self = new Split Plug($pluginlist, $inputargs, $hashArgOptLists);109 push(@{$hashArgOptLists->{"ArgList"}},@{$arguments}); 110 push(@{$hashArgOptLists->{"OptList"}},$options); 111 112 my $self = new SplitTextFile($pluginlist, $inputargs, $hashArgOptLists); 115 113 116 114 return bless $self, $class; … … 130 128 my $cursection = $doc_obj->get_top_section(); 131 129 # Report that we're processing the file 132 print STDERR "<Processing n='$file' p='ReferPlug '>\n" if ($gli);133 print $outhandle "ReferPlug : processing $file\n"130 print STDERR "<Processing n='$file' p='ReferPlugin'>\n" if ($gli); 131 print $outhandle "ReferPlugin: processing $file\n" 134 132 if ($self->{'verbosity'}) > 1; 135 133
Note:
See TracChangeset
for help on using the changeset viewer.