Changeset 18689

Show
Ignore:
Timestamp:
16.03.2009 15:11:31 (10 years ago)
Author:
ak19
Message:

Minor correction to unknown_file meta which uses Source meta: it's already UTF-8 encoded so it is now added as-is by calling the doc::add_utf8_metadata subroutine.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/UnknownPlugin.pm

    r16991 r18689  
    144144    $doc_obj->add_metadata ($section, "FileFormat", $file_format); 
    145145    $doc_obj->add_metadata ($section, "MimeType", $mime_type); 
    146     $doc_obj->add_metadata ($section, $assoc_field, $doc_obj->get_source()); 
    147      
     146    $doc_obj->add_utf8_metadata ($section, $assoc_field, $doc_obj->get_source()); # Source metadata is already in utf8  
     147 
    148148    $doc_obj->add_metadata ($section, "srclink",  
    149149                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">");