Show
Ignore:
Timestamp:
01.12.2014 11:28:06 (5 years ago)
Author:
kjdon
Message:

encase whole toc output stuff in a test if toc option is set, otherwise still get bits and pieces of it, even if toc is set to off

Files:
1 modified

Legend:

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

    r29401 r29500  
    4444     
    4545    <xsl:template name="displayTOC"> 
     46      <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'"> 
    4647        <div class="tableOfContentsContainer ui-state-default"> 
    4748            <table class="tocTable ui-widget-content"> 
     
    136137            </table> 
    137138        </div> 
     139      </xsl:if> 
    138140    </xsl:template> 
    139141