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

    r11090 r11834  
    200200
    201201    $doc_obj->add_metadata ($section, "srclink",
    202                 "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
     202                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Image]\">");
    203203    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    204204
    205     $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\" width=100>");
     205    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Image]\" width=100>");
    206206
    207207   
     
    232232    $doc_obj->add_metadata ($section, "Thumb", "thumbnail.$thumbnailtype");
    233233
    234     $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
     234    $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
    235235    }
    236236
     
    277277        $doc_obj->add_metadata ($section, "Screen", "screenview.$screenviewtype");
    278278
    279         $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
     279        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    280280    } else {
    281281        print $outhandle "ImagePlug: couldn't find \"$screenviewfilename\"\n";
Note: See TracChangeset for help on using the changeset viewer.