Ignore:
Timestamp:
2011-09-02T19:39:10+12:00 (13 years ago)
Author:
ak19
Message:

Part 2 of previous commit (r24547). 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/LOMPlugin.pm

    r23212 r24548  
    3434use ReadTextFile;
    3535use MetadataPass;
     36use MetadataRead;
    3637use XMLParser;
    3738use Cwd;
    3839
     40# methods with identical signatures take precedence in the order given in the ISA list.
    3941sub BEGIN {
    40     @ISA = ('ReadTextFile', 'MetadataPass');
     42    @ISA = ('MetadataRead', 'ReadTextFile', 'MetadataPass');
    4143}
    4244
     
    129131    # can we process this file??
    130132    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
    131     return undef unless $self->can_process_this_file($filename_full_path);
     133    return undef unless $self->can_process_this_file_for_metadata($filename_full_path);
    132134
    133135    $file =~ s/^[\/\\]+//; # $file often begins with / so we'll tidy it up
Note: See TracChangeset for help on using the changeset viewer.