Ignore:
Timestamp:
2011-09-02T16:28:57+12:00 (13 years ago)
Author:
ak19
Message:

Added new abstract plugin MetadataRead that defines can_process_this_file_for_metadata that MetadataPlugin subclasses can inherit (if MetadataRead is listed first in the ISA inheritance list) and which will then override the one defined in BasePlugin. For now committing MARC, ISIS and OAIPlugins which now additionally inherit from MetadataRead. Other metadataPlugins also need to be committed.

File:
1 edited

Legend:

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

    r23352 r24547  
    3232use ReadXMLFile;
    3333use ReadTextFile;
     34use MetadataRead;
    3435use marcmapping;
    3536
     
    3738no strict 'refs'; # allow filehandles to be variables and viceversa
    3839
     40# methods with identical signatures take precedence in the order given in the ISA list.
    3941sub BEGIN {
    40     @MARCXMLPlugin::ISA = ('ReadXMLFile', 'ReadTextFile');
     42    @MARCXMLPlugin::ISA = ('MetadataRead', 'ReadXMLFile', 'ReadTextFile');
    4143}
    4244
Note: See TracChangeset for help on using the changeset viewer.