Ignore:
Timestamp:
2011-08-12T18:10:11+12:00 (11 years ago)
Author:
ak19
Message:

Dr Bainbridge has fixed the conflict between OAIPlugin and EmbeddedMetadataPlugin which resulted in the oai tutorial (with the JCDL pictures) going wrong: meta was not attached to the images. Dr Bainbridge solved the problem by introducing a new method in BasePlugin: can_process_this_file_for_metadata, which by default returns undef so that things should work by default mostly. This method has been overridden in OAIPlugin and EmbeddedMetadataPlugin now to do the right thing there.

File:
1 edited

Legend:

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

    r23352 r24403  
    185185}
    186186
     187sub can_process_this_file_for_metadata {
     188    my $self = shift(@_);
     189
     190    return $self->can_process_this_file(@_);
     191}
     192
    187193
    188194sub metadata_read {
     
    195201    # can we process this file??
    196202    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
    197     return undef unless $self->can_process_this_file($filename_full_path);
     203    return undef unless $self->can_process_this_file_for_metadata($filename_full_path);
    198204   
    199205    if (!$self->parse_file($filename_full_path, $file, $gli)) {
Note: See TracChangeset for help on using the changeset viewer.