Changeset 31182

Show
Ignore:
Timestamp:
08.12.2016 02:03:05 (3 years ago)
Author:
litvinovg
Message:

Added xslt code to search by CCS in group from group page

Files:
1 modified

Legend:

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

    r30859 r31182  
    200200      <input type="hidden" name="rt" value="rd"/> 
    201201      <input type="hidden" name="s" value="{@name}"/> 
    202       <input type="hidden" name="s1.collection" value="all"/> 
     202      <xsl:choose> 
     203        <xsl:when test="/page/pageRequest/paramList/param[@name='group']/@value"> 
     204            <input type="hidden" name="s1.collection" value="none" /> 
     205            <input type="hidden" name="s1.group"> 
     206                <xsl:attribute name="value"> 
     207                    <xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value" /> 
     208                </xsl:attribute> 
     209            </input> 
     210        </xsl:when> 
     211        <xsl:otherwise> 
     212            <input type="hidden" name="s1.collection" value="all" /> 
     213        </xsl:otherwise> 
     214      </xsl:choose> 
    203215      <input type="text" name="s1.query" size="20"/> 
    204216      <input type="submit">