Ignore:
Timestamp:
2022-08-25T09:13:34+12:00 (20 months ago)
Author:
kjdon
Message:

now fixed up the files to use the new names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MetadataCSVDeprecatedPlugin.pm

    r36479 r36481  
    11###########################################################################
    22#
    3 # MetadataCSVPlugin.pm -- A plugin for metadata in comma-separated value format
     3# MetadataCSVDeprecatedPlugin.pm -- A plugin for metadata in comma-separated value format
    44#
    55# A component of the Greenstone digital library software
     
    2525###########################################################################
    2626
    27 package MetadataCSVPlugin;
     27package MetadataCSVDeprecatedPlugin;
    2828
    2929
     
    4343# methods with identical signatures take precedence in the order given in the ISA list.
    4444sub BEGIN {
    45     @MetadataCSVPlugin::ISA = ('MetadataRead', 'BaseImporter', 'CSVFieldSeparator');
     45    @MetadataCSVDeprecatedPlugin::ISA = ('MetadataRead', 'BaseImporter', 'CSVFieldSeparator');
    4646}
    4747
     
    5858
    5959
    60 my $options = { 'name'     => "MetadataCSVPlugin",
    61         'desc'     => "{MetadataCSVPlugin.desc}",
     60my $options = { 'name'     => "MetadataCSVDeprecatedPlugin",
     61        'desc'     => "{MetadataCSVDeprecatedPlugin.desc}",
    6262        'abstract' => "no",
    6363        'inherits' => "yes",
     
    115115    return undef unless $self->can_process_this_file_for_metadata($filename_full_path);
    116116   
    117     print STDERR "\n<Processing n='$file' p='MetadataCSVPlugin'>\n" if ($gli);
    118     print STDERR "MetadataCSVPlugin: 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;
    119119
    120120    my $outhandle = $self->{'outhandle'};
     
    129129    open(CSV_FILE, "$filename_full_path");
    130130    my $csv_file_reader = new multiread();
    131     $csv_file_reader->set_handle('MetadataCSVPlugin::CSV_FILE');
     131    $csv_file_reader->set_handle('MetadataCSVDeprecatedPlugin::CSV_FILE');
    132132    $csv_file_reader->read_file(\$csv_file_content);
    133133
    134     # Would be nice if MetadataCSVPlugin was extended to support a minus
     134    # Would be nice if MetadataCSVDeprecatedPlugin was extended to support a minus
    135135    # option to choose the character encoding the CSV file is in
    136136    # For now we will assume it is always in UTF8
     
    280280    my ($outhandle, $failhandle, $gli, $file, $error) = @_;
    281281
    282     print $outhandle "MetadataCSVPlugin Error: $file: $error\n";
    283     print $failhandle "MetadataCSVPlugin Error: $file: $error\n";
     282    print $outhandle "MetadataCSVDeprecatedPlugin Error: $file: $error\n";
     283    print $failhandle "MetadataCSVDeprecatedPlugin Error: $file: $error\n";
    284284    print STDERR "<ProcessingError n='$file' r='$error'/>\n" if ($gli);
    285285}
Note: See TracChangeset for help on using the changeset viewer.