Changeset 9465 for trunk/gsdl
- Timestamp:
- 2005-03-18T14:10:58+13:00 (19 years ago)
- Location:
- trunk/gsdl/perllib/plugins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ConvertToPlug.pm
r9067 r9465 267 267 sub read { 268 268 my $self = shift (@_); 269 my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs ) = @_;269 my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs, $gli) = @_; 270 270 # if ($self->is_recursive()) { 271 271 # die "BasPlug::read function must be implemented in sub-class for recursive plugins\n"; … … 337 337 $self->extra_metadata ($doc_obj, $doc_obj->get_top_section(), $metadata); 338 338 # do plugin specific processing of doc_obj 339 return -1 unless defined ($self->process (\$text, $pluginfo, $base_dir, $file, $metadata, $doc_obj ));339 return -1 unless defined ($self->process (\$text, $pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli )); 340 340 # do any automatic metadata extraction 341 341 $self->auto_extract_metadata ($doc_obj); -
trunk/gsdl/perllib/plugins/ExcelPlug.pm
r6408 r9465 78 78 print $outhandle "ExcelPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 79 79 if $self->{'verbosity'} > 1; 80 print STDERR "<Processing n='$_[3]' p='ExcelPlug'>\n" if ($_[6]); 80 81 81 82 return ConvertToPlug::process_type($self,"xls",@_); -
trunk/gsdl/perllib/plugins/PDFPlug.pm
r8795 r9465 140 140 sub process { 141 141 my $self = shift (@_); 142 #my ($textref, $pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli) = @_; 143 142 144 my $outhandle=$self->{'outhandle'}; 143 145 … … 208 210 print $outhandle "PDFPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 209 211 if $self->{'verbosity'} > 1; 212 print STDERR "<Processing n='$_[3]' p='PDFPlug'>\n" if ($_[6]); 210 213 211 214 # tell htmlplug to extract these metadata fields from the HEAD META fields … … 214 217 my $result = ConvertToPlug::process_type($self,"pdf",@_); 215 218 216 my $doc_obj = pop(@_);217 219 #my $doc_obj = pop(@_); 220 my $doc_obj = $_[5]; 218 221 # fix up the extracted date metadata to be in Greenstone date format, 219 222 # and fix the capitalisation of 'date' -
trunk/gsdl/perllib/plugins/PPTPlug.pm
r6408 r9465 76 76 print $outhandle "PPTPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 77 77 if $self->{'verbosity'} > 1; 78 print STDERR "<Processing n='$_[3]' p='PPTPlug'>\n" if ($_[6]); 78 79 79 80 return ConvertToPlug::process_type($self,"ppt",@_); -
trunk/gsdl/perllib/plugins/PSPlug.pm
r8171 r9465 169 169 sub process { 170 170 my $self = shift (@_); 171 my ($trash, $trash2, $path, $file, $trash3, $doc ) = @_;171 my ($trash, $trash2, $path, $file, $trash3, $doc, $gli) = @_; 172 172 173 173 my $outhandle = $self->{'outhandle'}; 174 174 print $outhandle "PSPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 175 175 if $self->{'verbosity'} > 1; 176 176 print STDERR "<Processing n='$_[3]' p='PDFPlug'>\n" if ($gli); 177 177 178 &extract_metadata_from_postscript($self,"$path/$file", $doc); 178 179 -
trunk/gsdl/perllib/plugins/RTFPlug.pm
r6408 r9465 70 70 print $outhandle "RTFPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 71 71 if $self->{'verbosity'} > 1; 72 print STDERR "<Processing n='$_[3]' p='RTFPlug'>\n" if ($_[6]); 72 73 73 74 return ConvertToPlug::process_type($self,"rtf",@_); -
trunk/gsdl/perllib/plugins/WordPlug.pm
r6408 r9465 74 74 sub process { 75 75 my $self = shift (@_); 76 #my ($textref, $pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli) = @_; 76 77 77 my $outhandle = $self->{'outhandle'}; 78 my $outhandle = $self->{'outhandle'}; 78 79 print $outhandle "WordPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 79 80 if $self->{'verbosity'} > 1; 80 81 print STDERR "<Processing n='$_[3]' p='WordPlug'>\n" if ($_[6]); 82 81 83 return ConvertToPlug::process_type($self,"doc",@_); 82 84 }
Note:
See TracChangeset
for help on using the changeset viewer.