Personal tools
You are here: Home Documentation How-tos Hyperlinking “Thumbnail” Images
Document Actions

Hyperlinking “Thumbnail” Images

This How-to applies to: 2.0.2

Explanation how to insert hyperlinked “thumbnail” images as previews in the results page of metadata records, which are written according to FGDC standard.

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>

by Admin last modified 2007-03-14 01:55
Contributors: Mohideen Sadir (m.sadir@cgiar.org) – IWMI, Colombo, Sri Lanka
Creative Commons - http://creativecommons.org/licenses/by/2.5/

insert image

Posted by Agus Setiawan at 2008-05-23 00:06
hello...

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

Creative Commons License
This work is licensed under a Creative Commons Attribution-No Derivative Works 3.0 Unported License.

Powered by Plone CMS, the Open Source Content Management System