Changeset 24225
- Timestamp:
- 2011-07-04T19:43:43+12:00 (12 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/BasePlugin.pm
r24219 r24225 1366 1366 1367 1367 $doc_obj->associate_file($filename, $assocfilename, undef, $cursection); 1368 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 1368 1369 $doc_obj->add_utf8_metadata ($cursection, "srclink_file", $doc_obj->get_sourcefile()); 1370 $doc_obj->add_utf8_metadata ($cursection, "srclinkFile", $doc_obj->get_sourcefile()); 1369 1371 } 1370 1372 -
main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm
r24192 r24225 476 476 $srclink_filename = $doc_obj->get_sourcefile(); 477 477 } 478 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 478 479 $doc_obj->add_utf8_metadata ($cursection, "srcicon", "_icon".$doc_ext."_"); 479 480 $doc_obj->add_utf8_metadata ($cursection, "srclink_file", $srclink_filename); 481 $doc_obj->add_utf8_metadata ($cursection, "srclinkFile", $srclink_filename); 480 482 return 1; 481 483 } -
main/trunk/greenstone2/perllib/plugins/ConvertToRogPlugin.pm
r24192 r24225 447 447 $doc_obj->associate_file($filename, "doc.$doc_ext", undef, $cursection); 448 448 449 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 449 450 $doc_obj->add_metadata ($cursection, "srclink_file", "doc.$doc_ext"); 451 $doc_obj->add_metadata ($cursection, "srclinkFile", "doc.$doc_ext"); 450 452 $doc_obj->add_utf8_metadata ($cursection, "srcicon", "_icon".$doc_ext."_"); 451 453 -
main/trunk/greenstone2/perllib/plugins/ImageConverter.pm
r23757 r24225 258 258 } 259 259 260 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 260 261 $doc_obj->add_metadata ($section, "srclink_file", $url_to_filename_no_path); 261 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[srclink_file]\" width=\"[ImageWidth]\" height=\"[ImageHeight]\">"); 262 $doc_obj->add_metadata ($section, "srclinkFile", $url_to_filename_no_path); 263 $doc_obj->add_metadata ($section, "srcicon", "<img src=\"_httpprefix_/collect/[collection]/index/assoc/$assocfilemeta/[srclinkFile]\" width=\"[ImageWidth]\" height=\"[ImageHeight]\">"); 262 264 263 265 # Add the image as an associated file -
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 -
main/trunk/greenstone2/perllib/plugins/MP3Plugin.pm
r23355 r24225 267 267 268 268 $doc_obj->add_metadata ($section, "srcicon", "_iconmp3_"); 269 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 269 270 $doc_obj->add_metadata ($section, "srclink_file", $assoc_url); 271 $doc_obj->add_metadata ($section, "srclinkFile", $assoc_url); 270 272 my $applet_metadata = $self->{'applet_metadata'}; 271 273 if (defined $applet_metadata && $applet_metadata ) { -
main/trunk/greenstone2/perllib/plugins/MediainfoOGVPlugin.pm
r22663 r24225 145 145 $doc_obj->add_utf8_metadata ($section, $assoc_field, $doc_obj->get_source()); # Source metadata is already in utf8 146 146 147 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 147 148 $doc_obj->add_metadata ($section, "srclink_file", $doc_obj->get_sourcefile()); 149 $doc_obj->add_metadata ($section, "srclinkFile", $doc_obj->get_sourcefile()); 148 150 $doc_obj->add_metadata ($section, "srcicon", "_iconogg_"); 149 151 -
main/trunk/greenstone2/perllib/plugins/OggVorbisPlugin.pm
r22663 r24225 137 137 138 138 $doc_obj->add_metadata ($top_section, "FileFormat", "OggVorbis"); 139 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 139 140 $doc_obj->add_metadata ($top_section, "srclink_file", $doc_obj->get_sourcefile()); 141 $doc_obj->add_metadata ($top_section, "srclinkFile", $doc_obj->get_sourcefile()); 140 142 $doc_obj->add_metadata ($top_section, "srcicon", "_iconogg_"); 141 143 -
main/trunk/greenstone2/perllib/plugins/OpenDocumentPlugin.pm
r23377 r24225 262 262 263 263 #setup to doclink thingi 264 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 264 265 $doc_obj->add_metadata ("", "srclink_file", $doc_obj->get_sourcefile()); 266 $doc_obj->add_metadata ("", "srclinkFile", $doc_obj->get_sourcefile()); 265 267 $doc_obj->add_utf8_metadata ("", "srcicon", "<img border=\"0\" align=\"absmiddle\" src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">"); 266 268 -
main/trunk/greenstone2/perllib/plugins/RealMediaPlugin.pm
r22663 r24225 108 108 $doc_obj->add_metadata($top_section, "FileFormat", "RealMedia"); 109 109 110 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 110 111 $doc_obj->add_metadata ($top_section, "srclink_file", $doc_obj->get_sourcefile()); 112 $doc_obj->add_metadata ($top_section, "srclinkFile", $doc_obj->get_sourcefile()); 111 113 $doc_obj->add_metadata($top_section, "srcicon", "_iconrmvideo_"); 112 114 -
main/trunk/greenstone2/perllib/plugins/UnknownPlugin.pm
r22663 r24225 145 145 $doc_obj->add_metadata ($section, "MimeType", $mime_type); 146 146 $doc_obj->add_utf8_metadata ($section, $assoc_field, $doc_obj->get_source()); # Source metadata is already in utf8 147 # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile 147 148 $doc_obj->add_metadata ($section, "srclink_file", $doc_obj->get_sourcefile()); 149 $doc_obj->add_metadata ($section, "srclinkFile", $doc_obj->get_sourcefile()); 148 150 $doc_obj->add_metadata ($section, "srcicon", "_".$self->{'srcicon'}."_"); 149 151
Note:
See TracChangeset
for help on using the changeset viewer.