Mercurial > dive4elements > river
changeset 3361:89df168f289c
FixA: Overview: Generate only legend entries for existing discharge sectors.
flys-client/trunk@5048 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 18 Jul 2012 17:30:44 +0000 |
parents | 00fd2bd71ac9 |
children | bea50e45f0d3 |
files | flys-client/ChangeLog flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed Jul 18 17:14:16 2012 +0000 +++ b/flys-client/ChangeLog Wed Jul 18 17:30:44 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl: + Generate only legend entries for existing discharge sectors. + 2012-07-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/fixation/FixGaugeSelectPanel.java:
--- a/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl Wed Jul 18 17:14:16 2012 +0000 +++ b/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl Wed Jul 18 17:30:44 2012 +0000 @@ -177,26 +177,34 @@ <th>Farbe</th> <th colspan="2">Bedeutung</th> </tr> + <xsl:if test="count(/fixings/events/event/sector[@class = '0']) > 0"> <tr> <td style="background: green"> </td> <td>um MNQ</td> <td>Q ∈ [0, (MNQ+MQ)/2)</td> </tr> + </xsl:if> + <xsl:if test="count(/fixings/events/event/sector[@class = '1']) > 0"> <tr> <td style="background: blue"> </td> <td>um MQ</td> <td>Q ∈ [(MNQ+MQ)/2, (MQ+MHQ)/2)</td> </tr> + </xsl:if> + <xsl:if test="count(/fixings/events/event/sector[@class = '2']) > 0"> <tr> <td style="background: magenta"> </td> <td>um MHQ</td> <td>Q ∈ [(MQ+MHQ)/2, HQ5)</td> </tr> + </xsl:if> + <xsl:if test="count(/fixings/events/event/sector[@class = '3']) > 0"> <tr> <td style="background: red"> </td> <td>über HQ5</td> <td>Q ∈ [HQ5, ∞)</td> </tr> + </xsl:if> </table> </xsl:template>