Ignore:
Timestamp:
2006-05-18T15:10:38+12:00 (18 years ago)
Author:
mdewsnip
Message:

Replaced all "_httpcollection_" in metadata (especially srclink) with "_httpprefix_/collect/[collection]" (this works correctly when using cross-collection searching).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/MP3Plug.pm

    r11493 r11834  
    222222   
    223223    $doc_obj->add_metadata ($section, "srclink",
    224                 "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[srcurl]\">");
     224                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srcurl]\">");
    225225    $doc_obj->add_metadata ($section, "srcicon", "_iconmp3_");
    226226    $doc_obj->add_metadata ($section, "/srclink", "</a>");
     
    229229    if (defined $applet_metadata && $applet_metadata ) {
    230230    my $applet_html
    231         = gen_mp3applet("_httpcollection_/index/assoc/[assocfilepath]/[srcurl]");
     231        = gen_mp3applet("_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srcurl]");
    232232    $doc_obj->add_metadata ($section, "mp3applet", $applet_html);
    233233    }
     
    272272        $doc_obj->associate_file($img_filename, $dst_file, "image/jpeg", $section);
    273273
    274         my $srcurl = "src=\"_httpcollection_/index/assoc/[assocfilepath]/$dst_file\"";
     274        my $srcurl = "src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$dst_file\"";
    275275
    276276        $doc_obj->add_metadata ($section, "img$i",
Note: See TracChangeset for help on using the changeset viewer.