Ignore:
Timestamp:
2011-08-17T18:52:58+12:00 (13 years ago)
Author:
ak19
Message:
  1. Dr Bainbridge fixed another bug with the EmbeddedMetadataPlugin and its interaction with OAIPlugin: extracted metadata is now merged into any earlier extracted metadata table, so that ex.dc.* meta extracted by the OAIPlugin higher up in the plugin pipeline is preserved after EmbeddedMetaPlug is through with the file. 2. Removed recent PDFPlugin commit where can_process_this_file_for_metadata was overridden. It isn't needed and may have adverse effects.
File:
1 edited

Legend:

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

    r24414 r24419  
    213213}
    214214
    215 # Even if a plugin can extract metadata in its metadata_read pass,
    216 # make the default return 'undef' so processing of the file continues
    217 # down the pipeline, so other plugins can also have the opportunity to
    218 # locate metadata and set it up in the extrametakeys variables that
    219 # are passed around.
    220 sub can_process_this_file_for_metadata {
    221     my $self = shift(@_);
    222 
    223     # this plugin will look for metadata in any file through its
    224     # metadata_read(). Returning undef here means anything else further
    225     # down the pipeline can do the same
    226 
    227     return 0;
    228 }
    229 
    230215sub init {
    231216    my $self = shift (@_);
Note: See TracChangeset for help on using the changeset viewer.