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

    r22655 r22663  
    262262
    263263    #setup to doclink thingi
    264     $doc_obj->add_metadata ("", "srclink_file", "[SourceFile]");
     264    $doc_obj->add_metadata ("", "srclink_file", $doc_obj->get_sourcefile());
    265265    $doc_obj->add_utf8_metadata ("", "srcicon",  "<img border=\"0\" align=\"absmiddle\" src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">");
    266266    $self->set_Source_metadata($doc_obj, $file_only);
Note: See TracChangeset for help on using the changeset viewer.