Changeset 33386

Show
Ignore:
Timestamp:
06.08.2019 11:06:43 (2 weeks ago)
Author:
kjdon
Message:

modified the test for whether this is the selected node or not. cant just use startwith(selectednode, nodeid) as if selected node is eg CL1.15, this will match CL1.1 and CL1.15, ended up with 2 letters being highlighted. the values must be equal, or use startswith(selectednode, nodeid.'.')

Files:
1 modified

Legend:

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

    r33285 r33386  
    104104    <li> 
    105105      <xsl:attribute name="class"> 
    106         <xsl:if test="starts-with($selectedNode, @nodeID) or (not(contains($selectedNode, '.')) and @nodeID = concat($selectedNode, '.1'))">selectedHorizontalClassifierNode </xsl:if> 
     106        <xsl:if test="$selectedNode = @nodeID or starts-with($selectedNode, concat(@nodeID, '.')) or (not(contains($selectedNode, '.')) and @nodeID = concat($selectedNode, '.1'))">selectedHorizontalClassifierNode </xsl:if> 
    107107        <xsl:text>horizontalClassifierNode</xsl:text> 
    108108      </xsl:attribute>