Mercurial > dive4elements > river
changeset 3377:a5c790ed09bd
FixA: Bring overview transformation in sync with flys-artifacts.
flys-client/trunk@5095 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 21 Jul 2012 18:05:58 +0000 (2012-07-21) |
parents | 653dd9d7f5d5 |
children | c8193b600d9b |
files | flys-client/ChangeLog flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl |
diffstat | 2 files changed, 30 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Sat Jul 21 13:13:21 2012 +0000 +++ b/flys-client/ChangeLog Sat Jul 21 18:05:58 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl: + Bring in sync with transformation in flys-client. + 2012-07-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl:
--- a/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl Sat Jul 21 13:13:21 2012 +0000 +++ b/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl Sat Jul 21 18:05:58 2012 +0000 @@ -274,10 +274,32 @@ <xsl:with-param name="gauge" select="."/> </xsl:call-template> <div> + <xsl:variable name="start"> + <xsl:choose> + <xsl:when test="number(@from) < $global-min"> + <xsl:value-of select="$global-min"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="number(@from)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="end"> + <xsl:choose> + <xsl:when test="number(@to) > $global-max"> + <xsl:value-of select="$global-max"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="number(@to)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:attribute name="style"> <xsl:text>overflow:hidden;background:</xsl:text> <xsl:choose> - <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</xsl:when> + <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</xsl:when> <xsl:otherwise>silver</xsl:otherwise> </xsl:choose> <xsl:text>;width:</xsl:text> @@ -290,9 +312,9 @@ <xsl:attribute name="title"> <xsl:value-of select="@name"/> <xsl:text>: km </xsl:text> - <xsl:value-of select="format-number(@from, $km-pattern, $locale)"/> + <xsl:value-of select="format-number($start, $km-pattern, $locale)"/> <xsl:text> - </xsl:text> - <xsl:value-of select="format-number(@to, $km-pattern, $locale)"/> + <xsl:value-of select="format-number($end, $km-pattern, $locale)"/> </xsl:attribute> <nobr><xsl:value-of select="@name"/></nobr> </div>