Changeset 26148 for main/trunk


Ignore:
Timestamp:
2012-08-31T02:23:39+12:00 (12 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

File:
1 edited

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">
Note: See TracChangeset for help on using the changeset viewer.