Changeset 8365


Ignore:
Timestamp:
2004-10-18T16:08:56+13:00 (20 years ago)
Author:
kjdon
Message:

put doule quotes around values of <a href=xxx> and <img src=xxx>

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

Legend:

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

    r8350 r8365  
    207207
    208208    $doc_obj->add_metadata ($section, "srclink",
    209                 "<a href=_httpcollection_/index/assoc/[assocfilepath]/[Image]>");
     209                "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
    210210    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    211211
    212     $doc_obj->add_metadata ($section, "srcicon", "<img src=_httpcollection_/index/assoc/[assocfilepath]/[Image] width=100>");
     212    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\" width=100>");
    213213
    214214   
     
    239239    $doc_obj->add_metadata ($section, "Thumb", "thumbnail.$thumbnailtype");
    240240
    241     $doc_obj->add_metadata ($section, "thumbicon", "<img src=_httpcollection_/index/assoc/[assocfilepath]/[Thumb] width=[ThumbWidth] height=[ThumbHeight]>");
     241    $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
    242242    }
    243243
     
    284284        $doc_obj->add_metadata ($section, "Screen", "screenview.$screenviewtype");
    285285
    286         $doc_obj->add_metadata ($section, "screenicon", "<img src=_httpcollection_/index/assoc/[assocfilepath]/[Screen] width=[ScreenWidth] height=[ScreenHeight]>");
     286        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    287287    } else {
    288288        print $outhandle "ImagePlug: couldn't find \"$screenviewfilename\"\n";
  • trunk/gsdl/perllib/plugins/MP3Plug.pm

    r8166 r8365  
    230230   
    231231    $doc_obj->add_metadata ($section, "srclink",
    232                 "<a href=_httpcollection_/index/assoc/[assocfilepath]/[srcurl]>");
    233     $doc_obj->add_metadata ($section, "srcicon", "<img src=_httpimg_/mp3icon.gif>");
     232                "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[srcurl]\">");
     233    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpimg_/mp3icon.gif\">");
    234234    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    235235
     
    269269    my $gi_query_url = gi_query_url(\@search_terms);
    270270
    271     $doc_obj->add_metadata ($section, "giquery", "<a href=$gi_base$gi_query_url target=giwindow>");
     271    $doc_obj->add_metadata ($section, "giquery", "<a href=\"$gi_base$gi_query_url\" target=giwindow>");
    272272    $doc_obj->add_metadata ($section, "/giquery", "</a>");
    273273
     
    288288        my $imgref_url = $imgref_urls->[$i-1];
    289289
    290         $doc_obj->add_metadata ($section, "imgref$i", "<a href=$imgref_url target=giwindow>");
     290        $doc_obj->add_metadata ($section, "imgref$i", "<a href=\"$imgref_url\" target=giwindow>");
    291291        $doc_obj->add_metadata ($section, "/imgref$i", "</a>");
    292292        }
  • trunk/gsdl/perllib/plugins/OggVorbisPlug.pm

    r8138 r8365  
    147147    # srclink
    148148    $doc_obj->add_metadata ($section, "FileFormat", "OggVorbis");
    149     $doc_obj->add_metadata ($section, "srclink", "<a href=_httpcollection_/index/assoc/[assocfilepath]/[Source]>");
     149    $doc_obj->add_metadata ($section, "srclink", "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Source]\">");
    150150    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    151151    # srcicon (need to include "ogg.png" in the greenstone images directory
    152     $doc_obj->add_metadata ($section, "srcicon", "<img src=_httpprefix_/images/ogg.png title=\"Download\" border=0>");
     152    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/images/ogg.png\" title=\"Download\" border=0>");
    153153
    154154    # Add the actual file as an associated file
  • trunk/gsdl/perllib/plugins/PagedImgPlug.pm

    r8246 r8365  
    329329    if ($top) {
    330330    $doc_obj->add_metadata ($section, "srclink",
    331                 "<a href=_httpcollection_/index/assoc/[assocfilepath]/[Image]>");
    332     $doc_obj->add_metadata ($section, "srcicon", "<img src=_httpcollection_/index/assoc/[assocfilepath]/[Image]>");
     331                "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
     332    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Image]\">");
    333333
    334334    } else {
    335335    $doc_obj->add_metadata ($section, "srclink",
    336                 "<a href=_httpcollection_/index/assoc/[parent:assocfilepath]/[Image]>");
    337     $doc_obj->add_metadata ($section, "srcicon", "<img src=_httpcollection_/index/assoc/[parent:assocfilepath]/[Image]>");
     336                "<a href=\"_httpcollection_/index/assoc/[parent:assocfilepath]/[Image]\">");
     337    $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpcollection_/index/assoc/[parent:assocfilepath]/[Image]\">");
    338338
    339339    }
     
    374374        $doc_obj->add_metadata ($section, "Thumb", $id."thumb.$thumbnailtype");
    375375       
    376         $doc_obj->add_metadata ($section, "thumbicon", "<img src=_httpcollection_/index/assoc/[parent:assocfilepath]/[Thumb] width=[ThumbWidth] height=[ThumbHeight]>");
     376        $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpcollection_/index/assoc/[parent:assocfilepath]/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>");
    377377    }
    378378   
     
    428428
    429429        if ($top) {
    430         $doc_obj->add_metadata ($section, "screenicon", "<img src=_httpcollection_/index/assoc/[assocfilepath]/[Screen] width=[ScreenWidth] height=[ScreenHeight]>");
     430        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/[assocfilepath]/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    431431        } else {
    432         $doc_obj->add_metadata ($section, "screenicon", "<img src=_httpcollection_/index/assoc/{If}{[parent:assocfilepath],[parent:assocfilepath],[assocfilepath]}/[Screen] width=[ScreenWidth] height=[ScreenHeight]>");
     432        $doc_obj->add_metadata ($section, "screenicon", "<img src=\"_httpcollection_/index/assoc/{If}{[parent:assocfilepath],[parent:assocfilepath],[assocfilepath]}/[Screen]\" width=[ScreenWidth] height=[ScreenHeight]>");
    433433
    434434        }
  • trunk/gsdl/perllib/plugins/UnknownPlug.pm

    r8315 r8365  
    146146   
    147147    $doc_obj->add_metadata ($section, "srclink",
    148                 "<a href=_httpcollection_/index/assoc/[assocfilepath]/[$assoc_field]>");
     148                "<a href=\"_httpcollection_/index/assoc/[assocfilepath]/[$assoc_field]\">");
    149149    $doc_obj->add_metadata ($section, "srcicon", "_iconunknown_");
    150150    $doc_obj->add_metadata ($section, "/srclink", "</a>");
Note: See TracChangeset for help on using the changeset viewer.