Changeset 22658
- Timestamp:
- 2010-08-17T17:30:28+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ImageConverter.pm
r22655 r22658 244 244 245 245 $doc_obj->add_metadata ($section, "srclink_file", "[Image]"); 246 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[ Image]\" width=\"[ImageWidth]\" height=\"[ImageHeight]\">");246 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[srclink_file]\" width=\"[ImageWidth]\" height=\"[ImageHeight]\">"); 247 247 248 248 # Add the image as an associated file -
main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm
r22655 r22658 133 133 $doc_obj->add_metadata ($section, "srclink_file", "[SourceFile]"); 134 134 # We don't know the size of the image, but the browser should display it at full size 135 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[ SourceFile]\">");135 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclink_file]\">"); 136 136 137 137 # Add a fake thumbnail icon with the full-sized image scaled down by the browser 138 $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[ SourceFile]\" width=\"" . $self->{'thumbnailsize'} . "\">");138 $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclink_file]\" width=\"" . $self->{'thumbnailsize'} . "\">"); 139 139 } 140 140 #we have no text - adds dummy text and NoText metadata
Note:
See TracChangeset
for help on using the changeset viewer.