Ignore:
Timestamp:
2011-07-04T19:43:43+12:00 (13 years ago)
Author:
ak19
Message:

Still on ticket 449. Now srclink_file metadata (contains an underscore that makes things difficult for GS3) is renamed to srclinkFile. Related commits are in GS2's runtime-src formattools.cpp and dublincore.cpp and GS3's default/transform/config_format.xsl and Action.java.

File:
1 edited

Legend:

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

    r23353 r24225  
    138138        $doc_obj->associate_file($filename_full_path, $assoc_file, "", $section);
    139139       
     140        # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile
    140141        $doc_obj->add_metadata ($section, "srclink_file", $doc_obj->get_sourcefile());
     142        $doc_obj->add_metadata ($section, "srclinkFile", $doc_obj->get_sourcefile());
    141143        # 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]\">");
    143145       
    144146        # 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'} . "\">");
    146148    }
    147149    #we have no text - adds dummy text and NoText metadata
Note: See TracChangeset for help on using the changeset viewer.