Ignore:
Timestamp:
2008-08-11T11:01:37+12:00 (16 years ago)
Author:
kjdon
Message:

MARCXMLPlugin uses textcat_language_and_encoding method from ReadTextFile so made it inherit from this as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/MARCXMLPlugin.pm

    r16692 r16693  
    3131
    3232use ReadXMLFile;
     33use ReadTextFile;
    3334use marcmapping;
    3435
     
    3738
    3839sub BEGIN {
    39     @MARCXMLPlugin::ISA = ('ReadXMLFile');
     40    @MARCXMLPlugin::ISA = ('ReadXMLFile', 'ReadTextFile');
    4041}
    4142
     
    6162    push(@{$hashArgOptLists->{"OptList"}},$options);
    6263   
     64    # we want to be able to use the textcat methods from ReadTextFile
     65    # to get the language and encoding
     66    new ReadTextFile($pluginlist, $inputargs, $hashArgOptLists, 1);
     67
    6368    my $self = new ReadXMLFile($pluginlist, $inputargs, $hashArgOptLists);
    6469   
Note: See TracChangeset for help on using the changeset viewer.