Show
Ignore:
Timestamp:
01.09.2009 14:54:36 (11 years ago)
Author:
oranfry
Message:

collapse search services onto one tab

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/oran/transform/util.xsl

    r20465 r20466  
    44    xmlns:xslt="http://www.w3.org/1999/XSL/Transform" 
    55    xmlns:gslib="http://www.greenstone.org/XSL/Library" 
    6         xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 
     6    xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 
    77    xmlns:util="http://org.greenstone.gsdl3.util.XSLTUtil" 
    88    exclude-result-prefixes="util gslib gsf xslt"> 
     
    354354<!-- classifier page ............................................................................ --> 
    355355 
     356<xsl:template name="collapsedNavigationTab"> 
     357    <xsl:param name="type"/> 
     358    <xsl:variable name="isCurrent" select="service[@name=/page/pageResponse/service/@name]"/> 
     359    <li> 
     360        <xsl:if test="$isCurrent"> 
     361            <xsl:attribute name="class">current</xsl:attribute> 
     362        </xsl:if> 
     363        <a> 
     364            <xsl:if test="service[@name=$type]/displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="service[@name=$type]/displayItem[@name='description']"/></xsl:attribute></xsl:if> 
     365            <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=q&amp;rt=d&amp;s=<xsl:value-of select="service[@type=$type]/@name"/>&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:attribute> 
     366            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $type)"/> 
     367        </a> 
     368    </li> 
     369</xsl:template> 
    356370 
    357371<xsl:template name="navigationTab">