Changeset 26285

Show
Ignore:
Timestamp:
04.10.2012 16:51:22 (6 years ago)
Author:
sjm84
Message:

Fixed the lock toc button appearing when there was no toc on the page

Files:
1 modified

Legend:

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

    r26226 r26285  
    315315 
    316316                <!-- Floating TOC on/off button --> 
    317                 <xsl:if test="count(//documentNode) > 1 and not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'"> 
     317                <xsl:if test="count(//documentNode) > 0 and (not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true')"> 
    318318                    <li id="floatingTOCOptions"> 
    319319                        <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.floatingTooltip')"/></xsl:attribute>