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

    r18689 r21760  
    146146    $doc_obj->add_utf8_metadata ($section, $assoc_field, $doc_obj->get_source()); # Source metadata is already in utf8
    147147
    148     $doc_obj->add_metadata ($section, "srclink",
    149                 "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">");
     148    #$doc_obj->add_metadata ($section, "srclink",
     149#               "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">");
     150    $doc_obj->add_metadata ($section, "srclink_file", "[SourceFile]");
    150151    $doc_obj->add_metadata ($section, "srcicon", "_".$self->{'srcicon'}."_");
    151     $doc_obj->add_metadata ($section, "/srclink", "</a>");
     152    #$doc_obj->add_metadata ($section, "/srclink", "</a>");
    152153   
    153154    # we have no text - add dummy text and NoText metadata
Note: See TracChangeset for help on using the changeset viewer.