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

    r21742 r21760  
    262262 
    263263    #setup to doclink thingi 
    264     my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$file_only\">"; 
    265     $doc_obj->add_utf8_metadata ("", "srclink",  $doclink);  
     264    #my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$file_only\">"; 
     265    #$doc_obj->add_utf8_metadata ("", "srclink",  $doclink);  
     266    $doc_obj->add_metadata ($section, "srclink_file", "[SourceFile]");  
    266267    $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\">");  
    267     $doc_obj->add_utf8_metadata ("", "/srclink", "</a>");  
     268    #$doc_obj->add_utf8_metadata ("", "/srclink", "</a>");  
    268269    $self->set_Source_metadata($doc_obj, $file_only); 
    269270     $doc_obj->set_utf8_metadata_element("", "FileSize", (-s $filename));