Changeset 29501


Ignore:
Timestamp:
12/01/14 12:03:53 (6 years ago)
Author:
kjdon
Message:

made the slideshow and view options optional, based on gsf:option (ViewSelection, SlideShow) in display element in config file

File:
1 edited

Legend:

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

    r29500 r29501  
    238238                            <xsl:if test="count(//documentNode/metadataList/metadata[@name = 'Screen']) > 0 or /page/pageResponse/document/@docType = 'paged' or /page/pageResponse/document/@docType = 'pagedhierarchy'">
    239239                                <!-- view selection option -->
     240                  <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='ViewSelection']) or /page/pageResponse/format[@type='display']/gsf:option[@name='ViewSelection']/@value='true')">
    240241                <li id="pagedImageOptions">
    241242                    <select id="viewSelection" onchange="changeView();">
     
    259260                    </select>
    260261                </li>
    261                
     262                </xsl:if>
    262263                <!-- Slide-show options -->
     264                <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='SlideShow']) or /page/pageResponse/format[@type='display']/gsf:option[@name='SlideShow']/@value='true')">
    263265                <li id="slideShowOptions">
    264266                    <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.slideshowTooltip')"/></xsl:attribute>
     
    268270                </li>
    269271                    </xsl:if>
     272                </xsl:if>
    270273                <!-- Realistic books link -->
    271274                <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'">
Note: See TracChangeset for help on using the changeset viewer.