Changeset 26148

Show
Ignore:
Timestamp:
31.08.2012 02:23:39 (7 years ago)
Author:
davidb
Message:

Extra 'if-statement' added to the Google maps support. Only want the marker icons added in if the given document has Latitude and Longitude metadata

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/classifiertools.xsl

    r26118 r26148  
    152152    <xsl:template name="documentNodePost"> 
    153153        <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'"> 
    154             <xsl:call-template name="mapFeatures"/> 
     154            <xsl:if test="metadataList/metadata[@name='Latitude' or @name='Longitude']"> 
     155                <xsl:call-template name="mapFeatures"/> 
     156            </xsl:if> 
    155157        </xsl:if> 
    156158    </xsl:template> 
    157159     
     160select=" 
     161 
    158162    <xsl:template name="mapFeatures"> 
    159163        <td style="padding-left:5px; padding-right:5px;" valign="top">