Ignore:
Timestamp:
2010-08-18T10:50:18+12:00 (14 years ago)
Author:
mdewsnip
Message:

Changed "srclink_file" metadata to always contain the filename, instead of referencing another metadata element. This is so the C++ code can escape underscores in the filename values correctly.

File:
1 edited

Legend:

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

    r22658 r22663  
    243243    }
    244244
    245     $doc_obj->add_metadata ($section, "srclink_file", "[Image]");
     245    $doc_obj->add_metadata ($section, "srclink_file", $url_to_filename_no_path);
    246246    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[srclink_file]\" width=\"[ImageWidth]\" height=\"[ImageHeight]\">");
    247247
Note: See TracChangeset for help on using the changeset viewer.