Hyperlinking “Thumbnail” Images
This How-to applies to: 2.0.2
The prerequisite for this is that preview images are accessible through a web link, which is specified in the correct field in the metadata file. Similarly this can be done for metadata records compiled according to ISO 19115 standards, which contain a corresponding URL pointing to a preview image.
As described below two changes need to be made; in the metadata-fgdc-std.xsl file which is stored in the web\xsl directory of GeoNetwork. The lines need to be inserted at the correct place, as indicated below. Note also that the code is case sensitive.
1. Below code should to be included into <! -- FGDC --> area of the metadata-fgdc-std.xsl file:
<xsl:copy-of select="idinfo/browse/browsen"/>
Example:
<Metadata>
<xsl:copy-of select="idinfo/citation/citeinfo/title"/>
<xsl:copy-of select="idinfo/descript/abstract"/>
<xsl:copy-of select="idinfo/browse/browsen"/>
</Metadata>
Note: Similarly the code to display previews for ISO 19115 files can be changed in the
<!-- ISO 19115 --> area
2. Below code should be included into <! -- papermaps thumbnail --> area of the metadata-utils.xsl file:
<!-- no thumbnail -->
<xsl:when test="$metadata/browsen">
<a href="{$metadata/browsen}" target="_blank">
<IMG border="0" height="130" width="130" src="{$metadata/browsen}" title="Click on image for larger view"></IMG></a> <tr><td align="right" colspan="2">Click on image for larger view</td></tr>
</xsl:when>
<xsl:otherwise>
<img src="{/root/gui/locUrl}/images/nopreview.gif" alt="{/root/gui/strings/thumbnail}"/>
</xsl:otherwise>
insert image
i wanna ask, how to insert the thumbnail images to the metadata using the fgcd standard.
i already use this trick but i'm confused how to insert the image.
thx