Foundry: BugFix in for navigation display. The selected-only attribute was not handled correctly.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3675 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
ef3ba28dfe
commit
39da2f1993
|
|
@ -296,7 +296,9 @@
|
||||||
<xsl:param name="selected-only" tunnel="yes"/>
|
<xsl:param name="selected-only" tunnel="yes"/>
|
||||||
<xsl:param name="current-level" select="1" tunnel="yes"/>
|
<xsl:param name="current-level" select="1" tunnel="yes"/>
|
||||||
<xsl:param name="current-level-tree"
|
<xsl:param name="current-level-tree"
|
||||||
select="$data-tree//nav:categoryMenu[@id=$navigation-id]/nav:category/nav:category"
|
select="if($selected-only)
|
||||||
|
then $data-tree//nav:categoryMenu[@id=$navigation-id]/nav:category/nav:category[@isSelected='true']
|
||||||
|
else $data-tree//nav:categoryMenu[@id=$navigation-id]/nav:category/nav:category"
|
||||||
tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
|
|
||||||
<xsl:call-template name="foundry:message-debug">
|
<xsl:call-template name="foundry:message-debug">
|
||||||
|
|
@ -313,30 +315,56 @@
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="($current-level >= $min-level) and ($current-level <= $max-level)">
|
<xsl:when test="($current-level >= $min-level) and ($current-level <= $max-level)">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="navigation-id" select="$navigation-id" tunnel="yes"/>
|
<xsl:with-param name="navigation-id"
|
||||||
<xsl:with-param name="with-colorset" select="$with-colorset" tunnel="yes"/>
|
select="$navigation-id"
|
||||||
<xsl:with-param name="min-level" select="$min-level" tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="max-level" select="$max-level" tunnel="yes"/>
|
<xsl:with-param name="with-colorset"
|
||||||
|
select="$with-colorset"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="min-level"
|
||||||
|
select="$min-level"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="max-level"
|
||||||
|
select="$max-level"
|
||||||
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="show-description-text"
|
<xsl:with-param name="show-description-text"
|
||||||
select="$show-description-text"
|
select="$show-description-text"
|
||||||
tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="current-level" select="$current-level + 1" tunnel="yes"/>
|
<xsl:with-param name="selected-only"
|
||||||
|
select="$selected-only"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="current-level"
|
||||||
|
select="$current-level + 1"
|
||||||
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="current-level-tree"
|
<xsl:with-param name="current-level-tree"
|
||||||
select="$current-level-tree"
|
select="$current-level-tree"
|
||||||
tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="navigation-links-tree" select="." tunnel="yes"/>
|
<xsl:with-param name="navigation-links-tree"
|
||||||
|
select="."
|
||||||
|
tunnel="yes"/>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="($current-level < $min-level) and $current-level-tree/nav:category">
|
<xsl:when test="($current-level < $min-level) and $current-level-tree/nav:category">
|
||||||
<xsl:apply-templates select=".">
|
<xsl:apply-templates select=".">
|
||||||
<xsl:with-param name="navigation-id" select="$navigation-id" tunnel="yes"/>
|
<xsl:with-param name="navigation-id"
|
||||||
<xsl:with-param name="with-colorset" select="$with-colorset" tunnel="yes"/>
|
select="$navigation-id"
|
||||||
<xsl:with-param name="min-level" select="$min-level" tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="max-level" select="$max-level"/>
|
<xsl:with-param name="with-colorset"
|
||||||
|
select="$with-colorset"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="min-level"
|
||||||
|
select="$min-level"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="max-level"
|
||||||
|
select="$max-level"/>
|
||||||
<xsl:with-param name="show-description-text"
|
<xsl:with-param name="show-description-text"
|
||||||
select="$show-description-text"
|
select="$show-description-text"
|
||||||
tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="current-level" select="$current-level + 1"
|
<xsl:with-param name="selected-only"
|
||||||
|
select="$selected-only"
|
||||||
|
tunnel="yes"/>
|
||||||
|
<xsl:with-param name="current-level"
|
||||||
|
select="$current-level + 1"
|
||||||
tunnel="yes"/>
|
tunnel="yes"/>
|
||||||
<xsl:with-param name="current-level-tree"
|
<xsl:with-param name="current-level-tree"
|
||||||
select="$current-level-tree/nav:category"
|
select="$current-level-tree/nav:category"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue