Show
Ignore:
Timestamp:
30.03.2015 14:18:40 (5 years ago)
Author:
kjdon
Message:

EmbeddedMEtadataPlugin needs to make raw filenames into unicode for adding into extrametadata tables. changed this on linux. need to test on windows and mac

Files:
1 modified

Legend:

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

    r26146 r29820  
    419419    # Then need to convert the filename to a regex, no longer to protect windows directory chars \, but for 
    420420    # protecting special characters like brackets in the filepath such as "C:\Program Files (x86)\Greenstone". 
     421    print STDERR "file = $file " . &unicode::debug_unicode_string($file); 
     422    $file = &util::raw_filename_to_unicode(&util::filename_head($filename), $file); 
     423    print STDERR "$file ". &unicode::debug_unicode_string($file); 
    421424    $file = &util::filepath_to_url_format($file); 
     425    print STDERR "$file " . &unicode::debug_unicode_string($file); 
    422426    $file = &util::filename_to_regex($file);  
     427    print STDERR "$file ".&unicode::debug_unicode_string($file) ."\n"; 
    423428     
    424429    # Associate the metadata now 
     
    462467    if (!$self->can_process_this_file_for_metadata($filename_full_path)) { 
    463468 
    464     # Avoid scanning it with ExitTool ... 
     469    # Avoid scanning it with ExifTool ... 
    465470    # ... but let any other plugin in metadata_read() passes pipeline 
    466471    # consider it