Ignore:
Timestamp:
2012-04-03T12:27:45+12:00 (12 years ago)
Author:
kjdon
Message:

if we block OAI files, then they won't get processed by OAIPlugin, so removing the block exp

File:
1 edited

Legend:

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

    r24971 r25332  
    148148}
    149149
    150 
    151 # This plugin blocks *.oai files, so that they can be processed by OAIPlugin
    152 # even if OAIPlugin comes later in the pipeline than EmbeddedMetadataPlugin.
    153 sub get_default_block_exp()
    154 {
    155     return q^(?i)\.(oai)$^;
    156 }
    157 
    158150# plugins that rely on more than process_exp (eg XML plugins) can override this method
    159151sub can_process_this_file {
     
    230222            if (defined $value && $value =~ /[a-z0-9]+/i) {
    231223                my $field = "ex.$group.$tag";
    232        
     224               
    233225                my $encoding = $self->{'input_encoding'};
    234226                if($encoding eq "auto")
     
    335327
    336328    if (defined &extrametautil::getmetadata($extrametadata, $file)) {
    337     print STDERR "\n****  Need to merge new metadata with existing stored metadata: file = $file\n" if $verbosity > 2;
     329    print STDERR "\n****  EmbeddedMetadataPlugin: Need to merge new metadata with existing stored metadata: file = $file\n" if $verbosity > 3;
    338330
    339331    my $file_metadata_table = &extrametautil::getmetadata($extrametadata, $file);
Note: See TracChangeset for help on using the changeset viewer.