Changeset 11834


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).

Location:
trunk/gsdl/perllib/plugins
Files:
12 edited

Legend:

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

    r11681 r11834  
    12521252
    12531253        my ($doc_ext) = ($tail_filename =~ m/^.*\.(.*)$/);
    1254         my $start_doclink = "<a href=\"_httpcollection_/index/assoc/{Or}{[parent(Top):archivedir],[archivedir]}/$tail_filename\">";
     1254        my $start_doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):archivedir],[archivedir]}/$tail_filename\">";
    12551255        my $srcicon = "_icon".$doc_ext."_";
    12561256        my $end_doclink = "</a>";
  • trunk/gsdl/perllib/plugins/ConvertToPlug.pm

    r11833 r11834  
    476476    $doc_obj->set_utf8_metadata_element($cursection, "FileFormat", $file_format);
    477477
    478     my $doclink = "<a href=\"_httpcollection_/index/assoc/[archivedir]/doc.$doc_ext\">";
     478    my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/doc.$doc_ext\">";
    479479    $doc_obj->add_utf8_metadata ($cursection, "srclink",  $doclink);
    480480    $doc_obj->add_utf8_metadata ($cursection, "srcicon",  "_icon".$doc_ext."_");
  • trunk/gsdl/perllib/plugins/ConvertToRogPlug.pm

    r11090 r11834  
    445445    $doc_obj->associate_file($filename, "doc.$doc_ext", undef, $cursection);
    446446
    447     my $doclink = "<a href=\"_httpcollection_/index/assoc/[archivedir]/doc.$doc_ext\">";
     447    my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/doc.$doc_ext\">";
    448448    $doc_obj->add_utf8_metadata ($cursection, "srclink",  $doclink);
    449449    $doc_obj->add_utf8_metadata ($cursection, "srcicon",  "_icon".$doc_ext."_");
  • 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";
  • 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",
  • trunk/gsdl/perllib/plugins/OggVorbisPlug.pm

    r11676 r11834  
    142142    # srclink
    143143    $doc_obj->add_metadata ($section, "FileFormat", "OggVorbis");
    144     $doc_obj->add_metadata ($section, "srclink", "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Source]\">");
     144    $doc_obj->add_metadata ($section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Source]\">");
    145145    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    146146    # srcicon (need to include "iogg.gif" in the greenstone images directory
  • trunk/gsdl/perllib/plugins/OpenDocumentPlug.pm

    r11333 r11834  
    236236
    237237    #setup to doclink thingi
    238     my $doclink = "<a href=\"_httpcollection_/index/assoc/[archivedir]/$file_only\">";
     238    my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/$file_only\">";
    239239    $doc_obj->add_utf8_metadata ("", "srclink",  $doclink);
    240     $doc_obj->add_utf8_metadata ("", "srcicon",  "<img border=\"0\" align=\"absmiddle\" src=\"_httpcollection_/index/assoc/[archivedir]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">");
     240    $doc_obj->add_utf8_metadata ("", "srcicon",  "<img border=\"0\" align=\"absmiddle\" src=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">");
    241241    $doc_obj->add_utf8_metadata ("", "/srclink", "</a>");
    242242    $doc_obj->add_utf8_metadata ("", "Source", &ghtml::dmsafe($file_only));
  • trunk/gsdl/perllib/plugins/PagedImgPlug.pm

    r11676 r11834  
    369369    if ($top) {
    370370    $doc_obj->add_metadata ($section, "srclink",
    371                 "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
    372     $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
     371                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Image]\">");
     372    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Image]\">");
    373373
    374374    } else {
    375375    $doc_obj->add_metadata ($section, "srclink",
    376                 "<a href=\"_httpcollection_/index/assoc/[parent(Top):assocfilepath]/[Image]\">");
    377     $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[parent(Top):assocfilepath]/[Image]\">");
     376                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[parent(Top):assocfilepath]/[Image]\">");
     377    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[parent(Top):assocfilepath]/[Image]\">");
    378378
    379379    }
     
    414414        $doc_obj->add_metadata ($section, "Thumb", $id."thumb.$thumbnailtype");
    415415        if ($top) {
    416         $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
     416        $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
    417417        } else {
    418         $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpcollection_/index/assoc/[parent(Top):assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
     418        $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[parent(Top):assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
    419419        }
    420420    }
     
    471471
    472472        if ($top) {
    473         $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
     473        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    474474        } else {
    475         $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/[parent(Top):assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
     475        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[parent(Top):assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    476476
    477477        }
  • trunk/gsdl/perllib/plugins/RealMediaPlug.pm

    r11090 r11834  
    119119    # srclink
    120120    $doc_obj->add_metadata($top_section, "FileFormat", "RealMedia");
    121     $doc_obj->add_metadata($top_section, "srclink", "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Source]\">");
     121    $doc_obj->add_metadata($top_section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Source]\">");
    122122    $doc_obj->add_metadata($top_section, "/srclink", "</a>");
    123123    # srcicon (need to include "irmvideo.gif" in the greenstone images directory
  • trunk/gsdl/perllib/plugins/StructuredHTMLPlug.pm

    r11380 r11834  
    277277    $doc_obj->associate_file($filename, "doc.doc", undef, $cursection);
    278278   
    279     my $doclink = "<a href=_httpcollection_/index/assoc/[archivedir]/doc.doc>";
     279    my $doclink = "<a href=_httpprefix_/collect/[collection]/index/assoc/[archivedir]/doc.doc>";
    280280    $doc_obj->add_utf8_metadata ($cursection, "srclink",  $doclink);
    281281    $doc_obj->add_utf8_metadata ($cursection, "srcicon",  "_icondoc_");
  • trunk/gsdl/perllib/plugins/UnknownPlug.pm

    r11123 r11834  
    152152   
    153153    $doc_obj->add_metadata ($section, "srclink",
    154                 "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[$assoc_field]\">");
     154                "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[$assoc_field]\">");
    155155    #$doc_obj->add_metadata ($section, "srcicon", "_iconunknown_");
    156156    $doc_obj->add_metadata ($section, "srcicon", "_".$self->{'srcicon'}."_");
  • trunk/gsdl/perllib/plugins/W3ImgPlug.pm

    r11090 r11834  
    532532    $doc_obj->add_metadata($section, "PageTitle", $pagetitle);
    533533    $doc_obj->add_metadata($section, "ThumbURL",
    534                "_httpcollection_/index/assoc/[archivedir]/$fn.thumb.jpg");
     534               "_httpprefix_/collect/[collection]/index/assoc/[archivedir]/$fn.thumb.jpg");
    535535    $doc_obj->add_metadata($section, "FileFormat", "W3Img");
    536536
     
    554554    $doc_obj->associate_file($filepath, $onlyfn, undef, $section);
    555555    $doc_obj->add_utf8_metadata($section, "CacheURL",
    556                    "_httpcollection_/index/assoc/[archivedir]/$onlyfn");
     556                   "_httpprefix_/collect/[collection]/index/assoc/[archivedir]/$onlyfn");
    557557    }
    558558    return 1;
Note: See TracChangeset for help on using the changeset viewer.