- Timestamp:
- 2022-08-25T09:13:34+12:00 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/MetadataCSVDeprecatedPlugin.pm
r36479 r36481 1 1 ########################################################################### 2 2 # 3 # MetadataCSV Plugin.pm -- A plugin for metadata in comma-separated value format3 # MetadataCSVDeprecatedPlugin.pm -- A plugin for metadata in comma-separated value format 4 4 # 5 5 # A component of the Greenstone digital library software … … 25 25 ########################################################################### 26 26 27 package MetadataCSV Plugin;27 package MetadataCSVDeprecatedPlugin; 28 28 29 29 … … 43 43 # methods with identical signatures take precedence in the order given in the ISA list. 44 44 sub BEGIN { 45 @MetadataCSV Plugin::ISA = ('MetadataRead', 'BaseImporter', 'CSVFieldSeparator');45 @MetadataCSVDeprecatedPlugin::ISA = ('MetadataRead', 'BaseImporter', 'CSVFieldSeparator'); 46 46 } 47 47 … … 58 58 59 59 60 my $options = { 'name' => "MetadataCSV Plugin",61 'desc' => "{MetadataCSV Plugin.desc}",60 my $options = { 'name' => "MetadataCSVDeprecatedPlugin", 61 'desc' => "{MetadataCSVDeprecatedPlugin.desc}", 62 62 'abstract' => "no", 63 63 'inherits' => "yes", … … 115 115 return undef unless $self->can_process_this_file_for_metadata($filename_full_path); 116 116 117 print STDERR "\n<Processing n='$file' p='MetadataCSV Plugin'>\n" if ($gli);118 print STDERR "MetadataCSV Plugin: processing $file\n" if ($self->{'verbosity'}) > 1;117 print STDERR "\n<Processing n='$file' p='MetadataCSVDeprecatedPlugin'>\n" if ($gli); 118 print STDERR "MetadataCSVDeprecatedPlugin: processing $file\n" if ($self->{'verbosity'}) > 1; 119 119 120 120 my $outhandle = $self->{'outhandle'}; … … 129 129 open(CSV_FILE, "$filename_full_path"); 130 130 my $csv_file_reader = new multiread(); 131 $csv_file_reader->set_handle('MetadataCSV Plugin::CSV_FILE');131 $csv_file_reader->set_handle('MetadataCSVDeprecatedPlugin::CSV_FILE'); 132 132 $csv_file_reader->read_file(\$csv_file_content); 133 133 134 # Would be nice if MetadataCSV Plugin was extended to support a minus134 # Would be nice if MetadataCSVDeprecatedPlugin was extended to support a minus 135 135 # option to choose the character encoding the CSV file is in 136 136 # For now we will assume it is always in UTF8 … … 280 280 my ($outhandle, $failhandle, $gli, $file, $error) = @_; 281 281 282 print $outhandle "MetadataCSV Plugin Error: $file: $error\n";283 print $failhandle "MetadataCSV Plugin Error: $file: $error\n";282 print $outhandle "MetadataCSVDeprecatedPlugin Error: $file: $error\n"; 283 print $failhandle "MetadataCSVDeprecatedPlugin Error: $file: $error\n"; 284 284 print STDERR "<ProcessingError n='$file' r='$error'/>\n" if ($gli); 285 285 }
Note:
See TracChangeset
for help on using the changeset viewer.