Changeset 31818


Ignore:
Timestamp:
07/24/17 14:44:25 (3 years ago)
Author:
kjdon
Message:

changing ViewSelection to viewSelection and SlideShow to slideShow to match other option names. only display zoom option if disableZoom not set

File:
1 edited

Legend:

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

    r31535 r31818  
    228228                            <xsl:if test="count(//documentNode/metadataList/metadata[@name = 'Screen']) > 0 or /page/pageResponse/document/@docType = 'paged' or /page/pageResponse/document/@docType = 'pagedhierarchy'">
    229229                                <!-- view selection option -->
    230                   <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'">
     230                  <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'">
    231231                <li id="pagedImageOptions">
    232232                    <select id="viewSelection" onchange="changeView();">
     
    252252                </xsl:if>
    253253                <!-- Slide-show options -->
    254                 <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'">
     254                <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'">
    255255                <li id="slideShowOptions">
    256256                    <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.slideshowTooltip')"/></xsl:attribute>
     
    288288               
    289289                <!-- Zoom on/off button -->
     290      <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='disableZoom']) or /page/pageResponse/format[@type='display']/gsf:option[@name='disableZoom']/@value='false'">
     291
    290292                <li id="zoomOptions" style="display:none;">
    291293                    <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.zoomTooltip')"/></xsl:attribute>
     
    309311                    </script>
    310312                </li>
    311 
     313      </xsl:if>
    312314                <!-- Floating TOC on/off button -->
    313315                <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')">
Note: See TracChangeset for help on using the changeset viewer.