Ignore:
Timestamp:
2010-11-26T12:09:53+13:00 (13 years ago)
Author:
davidb
Message:

More careful use of encoding parameter to $self->set_Source_metadata so it reflects the *filename* encoding that Greenstone has worked out, not the encoding for the *content* of the file, which of course could be completely different!

File:
1 edited

Legend:

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

    r22862 r23349  
    659659   
    660660    my ($filemeta) = $file =~ /([^\\\/]+)$/;
    661     $self->set_Source_metadata($doc_obj, $filemeta);
     661    my $plugin_filename_encoding = $self->{'filename_encoding'};
     662    my $filename_encoding = $self->deduce_filename_encoding($file,$metadata,$plugin_filename_encoding);
     663    $self->set_Source_metadata($doc_obj, $filemeta, $filename_encoding);
    662664    $doc_obj->set_utf8_metadata_element($doc_obj->get_top_section(), "Plugin", "$self->{'plugin_type'}");
    663665    $doc_obj->set_utf8_metadata_element($doc_obj->get_top_section(), "FileSize", (-s $filename_full_path));
Note: See TracChangeset for help on using the changeset viewer.