Changeset 27787

Show
Ignore:
Timestamp:
09.07.2013 12:53:46 (6 years ago)
Author:
kjdon
Message:

making the thumbicon img tag valid HTML - adding alt att, and putting quotes around width and height

Location:
main/trunk/greenstone2/perllib/plugins
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ImageConverter.pm

    r27519 r27787  
    374374    $doc_obj->add_utf8_metadata ($section, "Thumb", $url_to_filehead."_thumb.$thumbnailtype"); # url to generated image 
    375375     
    376     $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[Thumb]\" width=[ThumbWidth] height=[ThumbHeight]>"); 
     376    $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[Thumb]\" alt=\"[Thumb]\" width=\"[ThumbWidth]\" height=\"[ThumbHeight]\">"); 
    377377     
    378378     
  • main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm

    r24225 r27787  
    145145         
    146146        # Add a fake thumbnail icon with the full-sized image scaled down by the browser 
    147         $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclinkFile]\" width=\"" . $self->{'thumbnailsize'} . "\">"); 
     147        $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclinkFile]\" alt=\"[srclinkFile]\" width=\"" . $self->{'thumbnailsize'} . "\">"); 
    148148    } 
    149149    #we have no text - adds dummy text and NoText metadata