Ignore:
Timestamp:
2017-03-13T11:12:37+13:00 (7 years ago)
Author:
kjdon
Message:

renamed EncodingUtil to CommonUtil, BasePlugin to BaseImporter. The idea is that only top level plugins that you can specify in your collection get to have plugin in their name. Modified all other plugins to reflect these name changes

File:
1 edited

Legend:

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

    r31480 r31492  
    8282my $arguments =
    8383    [ { 'name' => "process_exp",
    84     'desc' => "{BasePlugin.process_exp}",
     84    'desc' => "{BaseImporter.process_exp}",
    8585    'type' => "string",
    8686    'deft' => &get_default_process_exp(),
     
    101101#   'reqd' => "no" },
    102102      {'name' => "processing_tmp_files",
    103        'desc' => "{BasePlugin.processing_tmp_files}",
     103       'desc' => "{BaseImporter.processing_tmp_files}",
    104104       'type' => "flag",
    105105       'hiddengli' => "yes"}
     
    141141    my $rxf_self = new ReadXMLFile($pluginlist, $inputargs, $hashArgOptLists);
    142142
    143     my $self = BasePlugin::merge_inheritance($imc_self,$rtf_self,$rxf_self);
     143    my $self = BaseImporter::merge_inheritance($imc_self,$rtf_self,$rxf_self);
    144144
    145145    # Update $self used by XML::Parser so it finds callback functions
     
    188188
    189189
    190 # want to use BasePlugin's version of this, not ReadXMLFile's
     190# want to use BaseImporter's version of this, not ReadXMLFile's
    191191sub can_process_this_file {
    192192    my $self = shift(@_);
    193     return $self->BasePlugin::can_process_this_file(@_);
     193    return $self->BaseImporter::can_process_this_file(@_);
    194194}
    195195
     
    213213}
    214214
    215 # we want to use BasePlugin's read, not ReadXMLFile's
     215# we want to use BaseImporter's read, not ReadXMLFile's
    216216sub read
    217217{
    218218    my $self = shift (@_);
    219219
    220     $self->BasePlugin::read(@_);
     220    $self->BaseImporter::read(@_);
    221221}
    222222
Note: See TracChangeset for help on using the changeset viewer.