Changeset 18689 for gsdl


Ignore:
Timestamp:
2009-03-16T15:11:31+13:00 (15 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.

File:
1 edited

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]\">");
Note: See TracChangeset for help on using the changeset viewer.