Changeset 25686

Show
Ignore:
Timestamp:
29.05.2012 10:24:11 (7 years ago)
Author:
sjm84
Message:

The correct browse tab will now be shown if the a sub-classifier is being viewed

Files:
1 modified

Legend:

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

    r25595 r25686  
    5959        <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script> 
    6060        <script type="text/javascript" src="interfaces/{$interface_name}/js/zoomer.js"><xsl:text> </xsl:text></script> 
    61          
     61 
    6262        <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'"> 
    6363            <xsl:call-template name="map-scripts"/> 
     
    117117                            <xsl:choose> 
    118118                                <!-- If this tab is selected then colour it differently --> 
    119                                 <xsl:when test="@name = /page/pageRequest/paramList/param[@name = 'cl' and /page/pageRequest/@action = 'b']/@value"> 
     119                                <xsl:when test="util:contains(/page/pageRequest/paramList/param[@name = 'cl' and /page/pageRequest/@action = 'b']/@value, @name)"> 
    120120                                    <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute> 
    121121                                </xsl:when> 
     
    356356    </xsl:template> 
    357357     
    358      
    359358    <!-- ***** QUICK SEARCH AREA ***** --> 
    360359    <xsl:template name="quick-search-area">