Changeset 22552

Show
Ignore:
Timestamp:
02.08.2010 11:00:20 (9 years ago)
Author:
kjdon
Message:

by default we want this to process all files, so changed default process exp to .*. Then in metadata read, madeit check process_exp before processing the file, otherwise can't restrict processing to certain types of documents

Files:
1 modified

Legend:

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

    r22451 r22552  
    8686sub get_default_process_exp() 
    8787{ 
    88     return ""; 
     88    return ".*"; 
    8989    #q^(?i)\.(wma|wmv|jpe?g|gif)$^; 
    9090} 
     
    208208   
    209209  # we don't want to process directories 
    210   if (!-f $filename_full_path) { 
     210  if (!-f $filename_full_path || !$self->can_process_this_file($filename_full_path)) { 
    211211      return undef; 
    212212  }