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

    r18320 r21760  
    266266    $doc_obj->add_metadata ($section, "FileFormat", "MP3");
    267267   
    268     $doc_obj->add_metadata ($section, "srclink",
    269                 "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srcurl]\">");
     268    #$doc_obj->add_metadata ($section, "srclink",
     269#               "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srcurl]\">");
    270270    $doc_obj->add_metadata ($section, "srcicon", "_iconmp3_");
    271     $doc_obj->add_metadata ($section, "/srclink", "</a>");
    272 
     271    #$doc_obj->add_metadata ($section, "/srclink", "</a>");
     272    $doc_obj->add_metadata ($section, "srclink_file", "[srcurl]");
    273273    my $applet_metadata = $self->{'applet_metadata'};
    274274    if (defined $applet_metadata && $applet_metadata ) {
Note: See TracChangeset for help on using the changeset viewer.