Changeset 24796 for main/trunk


Ignore:
Timestamp:
11/02/11 20:00:51 (9 years ago)
Author:
ak19
Message:

EmbeddedMetadataPlugin now blocks *.oai files so that they can be processed by OAIPlugin even if this plugin comes later in the plugin pipeline than EmbeddedMetadataPlugin.

File:
1 edited

Legend:

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

    r24487 r24796  
    147147
    148148
    149 # This plugin doesn't block any files
    150 #sub get_default_block_exp()
    151 #{
    152 #    return '';
    153 #}
     149# This plugin blocks *.oai files, so that they can be processed by OAIPlugin
     150# even if OAIPlugin comes later in the pipeline than EmbeddedMetadataPlugin.
     151sub get_default_block_exp()
     152{
     153    return q^(?i)\.(oai)$^;
     154}
    154155
    155156# plugins that rely on more than process_exp (eg XML plugins) can override this method
Note: See TracChangeset for help on using the changeset viewer.