Show
Ignore:
Timestamp:
03.03.2010 11:09:07 (10 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?]).

Files:
1 modified

Legend:

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

    r21742 r21760  
    444444    $doc_obj->associate_file($filename, "doc.$doc_ext", undef, $cursection); 
    445445 
    446     my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/doc.$doc_ext\">"; 
    447     $doc_obj->add_utf8_metadata ($cursection, "srclink",  $doclink);  
     446    #my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/doc.$doc_ext\">"; 
     447    #$doc_obj->add_utf8_metadata ($cursection, "srclink",  $doclink);  
     448    $doc_obj->add_metadata ($section, "srclink_file", "doc.$doc_ext");  
    448449    $doc_obj->add_utf8_metadata ($cursection, "srcicon",  "_icon".$doc_ext."_");  
    449     $doc_obj->add_utf8_metadata ($cursection, "/srclink", "</a>");  
     450    #$doc_obj->add_utf8_metadata ($cursection, "/srclink", "</a>");  
    450451    return $ret_val; 
    451452}