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/ImagePlugin.pm

    r22658 r22663  
    131131    $doc_obj->associate_file($filename_full_path, $assoc_file, "", $section);
    132132
    133     $doc_obj->add_metadata ($section, "srclink_file", "[SourceFile]");
     133    $doc_obj->add_metadata ($section, "srclink_file", $doc_obj->get_sourcefile());
    134134    # We don't know the size of the image, but the browser should display it at full size
    135135    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclink_file]\">");
Note: See TracChangeset for help on using the changeset viewer.