Changeset 25822

Show
Ignore:
Timestamp:
26.06.2012 15:40:04 (7 years ago)
Author:
kjdon
Message:

trying to get rid of toc box when have a simple doc type

Files:
1 modified

Legend:

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

    r25720 r25822  
    3838                    <!-- the contents (if enabled) --> 
    3939                    <xsl:choose> 
    40                         <xsl:when test="/page/pageResponse/document/documentNode/@docType = 'paged'"> 
     40          <xsl:when test="/page/pageResponse/document/@docType = 'simple'"></xsl:when> 
     41                        <xsl:when test="/page/pageResponse/document/@docType = 'paged'"> 
    4142                            <gsf:image type="Thumb"/> 
    4243                            <!-- Table of contents will be dynamically retrieved when viewing a paged document --> 
     
    243244            </xsl:if> 
    244245            <td style="vertical-align:top; text-align:right;"> 
    245                 <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'"> 
     246                <xsl:if test="not(/page/pageResponse/document/@docType='simple') and (not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true')"> 
    246247                    <span class="tableOfContentsTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/></span> 
    247248