Show
Ignore:
Timestamp:
16.08.2011 21:17:46 (8 years ago)
Author:
ak19
Message:

To do with EmbeddedMetadataPlugin?: 1.mkcol.pl and GLI changes puts the plugin in the bottom four plugins of the plugin pipeline. 2. EmbeddedMetadataPlugin? and PDFPlugin are modified to work together again after the recent changes (introduction of overridable BasePlugin? method can_process_file_for_metadata) which were needed to get the EmbeddedMetadataPlugin? and OAIPlugin to work together.

Files:
1 modified

Legend:

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

    r24290 r24414  
    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. 
     220sub 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 
    215230sub init { 
    216231    my $self = shift (@_);