Ignore:
Timestamp:
2010-03-03T11:09:07+13:00 (14 years ago)
Author:
kjdon
Message:

srclink now generated dynamically at runtime. instead of storing srclink metadata, we store srclink_file metadata, which can be a value (doc.doc) or a metadata format element (eg [SourceFile]).

File:
1 edited

Legend:

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

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