Changeset 31538

Show
Ignore:
Timestamp:
27.03.2017 11:33:10 (2 years ago)
Author:
kjdon
Message:

don't show the search button for the current search page

Files:
1 modified

Legend:

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

    r31537 r31538  
    659659    <ul> 
    660660      <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']"> 
    661         <li> 
    662           <xsl:choose> 
    663         <xsl:when test="@name = /page/pageRequest/paramList/param[@name='s']/@value and not(/page/pageRequest/paramList/param[@name='qs']/@value = 1)"> 
    664           <xsl:attribute name="class">ui-state-default ui-corner-all ui-state-active</xsl:attribute> 
    665         </xsl:when> 
    666         <xsl:otherwise> 
    667           <xsl:attribute name="class">ui-state-default ui-corner-all</xsl:attribute> 
    668         </xsl:otherwise> 
    669           </xsl:choose> 
    670           <a> 
    671         <xsl:attribute name="href"> 
    672           <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/> 
    673         </xsl:attribute> 
    674         <xsl:value-of select="displayItem[@name='name']"/> 
    675           </a> 
    676         </li> 
     661        <xsl:if test="/page/pageRequest/paramList/param[@name='qs']/@value = 1 or not(@name = /page/pageRequest/paramList/param[@name='s']/@value)"> 
     662          <li class="ui-state-default ui-corner-all"> 
     663            <a> 
     664              <xsl:attribute name="href"> 
     665            <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/> 
     666              </xsl:attribute> 
     667              <xsl:value-of select="displayItem[@name='name']"/> 
     668            </a> 
     669          </li> 
     670        </xsl:if> 
    677671      </xsl:for-each> 
    678672    </ul>