Bugfix for Foundry: Missing type casts to number, resulting in an alphabetic comparison instead of a numeric.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3811 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
3d85523feb
commit
ad28c9b42d
|
|
@ -164,7 +164,7 @@
|
||||||
<xsl:template match="object-list//paginator">
|
<xsl:template match="object-list//paginator">
|
||||||
<xsl:param name="object-list-datatree" tunnel="yes"/>
|
<xsl:param name="object-list-datatree" tunnel="yes"/>
|
||||||
|
|
||||||
<xsl:if test="($object-list-datatree/nav:objectList/nav:paginator/@pageCount > 1)
|
<xsl:if test="(number($object-list-datatree/nav:objectList/nav:paginator/@pageCount) > 1)
|
||||||
or ./@show = 'always'">
|
or ./@show = 'always'">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="paginator-baseurl"
|
<xsl:with-param name="paginator-baseurl"
|
||||||
|
|
@ -308,7 +308,7 @@
|
||||||
<xsl:param name="paginator-baseurl" tunnel="yes" select="''"/>
|
<xsl:param name="paginator-baseurl" tunnel="yes" select="''"/>
|
||||||
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
||||||
|
|
||||||
<xsl:if test="($paginator-page-number != '') and ($paginator-page-number > 1)">
|
<xsl:if test="($paginator-page-number != '') and (number($paginator-page-number) > 1)">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="href"
|
<xsl:with-param name="href"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
|
|
@ -335,7 +335,7 @@
|
||||||
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
||||||
|
|
||||||
<xsl:if test="($paginator-page-number != '')
|
<xsl:if test="($paginator-page-number != '')
|
||||||
and ($paginator-page-number < $paginator-page-count)">
|
and (number($paginator-page-number) < number($paginator-page-count))">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="href"
|
<xsl:with-param name="href"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
|
|
@ -361,7 +361,7 @@
|
||||||
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
||||||
|
|
||||||
<xsl:if test="($paginator-page-number != '')
|
<xsl:if test="($paginator-page-number != '')
|
||||||
and ($paginator-page-number > 1)">
|
and (number($paginator-page-number) > 1)">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="href"
|
<xsl:with-param name="href"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
|
|
@ -386,7 +386,7 @@
|
||||||
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
<xsl:param name="paginator-page-param" tunnel="yes" select="''"/>
|
||||||
|
|
||||||
<xsl:if test="($paginator-page-number != '')
|
<xsl:if test="($paginator-page-number != '')
|
||||||
and ($paginator-page-number < $paginator-page-count)">
|
and (number($paginator-page-number) < number($paginator-page-count))">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
<xsl:with-param name="href"
|
<xsl:with-param name="href"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue