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/ReadXMLFile.pm

    r28836 r31492  
    2626package ReadXMLFile;
    2727
    28 use BasePlugin;
     28use BaseImporter;
    2929use doc;
    3030use strict;
     
    3232
    3333sub BEGIN {
    34     @ReadXMLFile::ISA = ('BasePlugin');
     34    @ReadXMLFile::ISA = ('BaseImporter');
    3535    unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
    3636}
     
    4040my $arguments =
    4141    [ { 'name' => "process_exp",
    42     'desc' => "{BasePlugin.process_exp}",
     42    'desc' => "{BaseImporter.process_exp}",
    4343    'type' => "regexp",
    4444    'deft' => &get_default_process_exp(),
     
    6464    push(@{$hashArgOptLists->{"OptList"}},$options);
    6565   
    66     my $self = new BasePlugin($pluginlist, $inputargs, $hashArgOptLists);
     66    my $self = new BaseImporter($pluginlist, $inputargs, $hashArgOptLists);
    6767
    6868    if ($self->{'info_only'}) {
     
    385385    $self->set_Source_metadata($doc_obj, $filename_full_path, $filename_encoding);
    386386   
    387     # do we want other auto metadata here (see BasePlugin.read_into_doc_obj)
     387    # do we want other auto metadata here (see BaseImporter.read_into_doc_obj)
    388388}
    389389
     
    392392    my $doc_obj = $self->{'doc_obj'};
    393393
    394     # do we want other auto stuff here, see BasePlugin.read_into_doc_obj
     394    # do we want other auto stuff here, see BaseImporter.read_into_doc_obj
    395395
    396396    # include any metadata passed in from previous plugins
Note: See TracChangeset for help on using the changeset viewer.