Changeset 28631


Ignore:
Timestamp:
2013-11-15T13:25:47+13:00 (10 years ago)
Author:
jlwhisler
Message:

added language partition to quick search

File:
1 edited

Legend:

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

    r28623 r28631  
    527527                                </xsl:apply-templates>
    528528                            </span>
    529                         </xsl:if>                       
     529                        </xsl:if>   
     530                        <!-- The language selection list -->                       
     531                        <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']/@type = 'enum_single'">
     532                            <span class="textselect">
     533                                <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']">
     534                                    <xsl:with-param name="default">
     535                                        <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']" mode="calculate-default"/>
     536                                    </xsl:with-param>
     537                                    <xsl:with-param name="hideSingle">true</xsl:with-param>
     538                                    <xsl:with-param name="quickSearch">true</xsl:with-param>
     539                                </xsl:apply-templates>
     540                            </span>
     541                        </xsl:if>                           
    530542                        <!-- The submit button (for TextQuery) -->
    531543                        <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
     
    547559                        <li>
    548560                        <xsl:choose>
    549                         <xsl:when test="@name = /page/pageRequest/paramList/param[@name='s']/@value">
     561                        <xsl:when test="@name = /page/pageRequest/paramList/param[@name='s']/@value and not(/page/pageRequest/paramList/param[@name='qs']/@value = 1)">
    550562                    <xsl:attribute name="class">ui-state-default ui-corner-all ui-state-active</xsl:attribute>
    551563                    </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.