Changeset 24225 for main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm
- Timestamp:
- 2011-07-04T19:43:43+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm
r23353 r24225 138 138 $doc_obj->associate_file($filename_full_path, $assoc_file, "", $section); 139 139 140 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 140 141 $doc_obj->add_metadata ($section, "srclink_file", $doc_obj->get_sourcefile()); 142 $doc_obj->add_metadata ($section, "srclinkFile", $doc_obj->get_sourcefile()); 141 143 # We don't know the size of the image, but the browser should display it at full size 142 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclink _file]\">");144 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclinkFile]\">"); 143 145 144 146 # Add a fake thumbnail icon with the full-sized image scaled down by the browser 145 $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclink _file]\" width=\"" . $self->{'thumbnailsize'} . "\">");147 $doc_obj->add_metadata ($section, "thumbicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[srclinkFile]\" width=\"" . $self->{'thumbnailsize'} . "\">"); 146 148 } 147 149 #we have no text - adds dummy text and NoText metadata
Note:
See TracChangeset
for help on using the changeset viewer.