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 (2012-07-18)
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']) &gt; 0">
       <tr>
         <td style="background: green">&#160;</td>
         <td>um MNQ</td>
         <td>Q &#8712; [0, (MNQ+MQ)/2)</td>
       </tr>
+      </xsl:if>
+      <xsl:if test="count(/fixings/events/event/sector[@class = '1']) &gt; 0">
       <tr>
         <td style="background: blue">&#160;</td>
         <td>um MQ</td>
         <td>Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</td>
       </tr>
+      </xsl:if>
+      <xsl:if test="count(/fixings/events/event/sector[@class = '2']) &gt; 0">
       <tr>
         <td style="background: magenta">&#160;</td>
         <td>um MHQ</td>
         <td>Q &#8712; [(MQ+MHQ)/2, HQ5)</td>
       </tr>
+      </xsl:if>
+      <xsl:if test="count(/fixings/events/event/sector[@class = '3']) &gt; 0">
       <tr>
         <td style="background: red">&#160;</td>
         <td>über HQ5</td>
         <td>Q &#8712; [HQ5, &#8734;)</td>
       </tr>
+      </xsl:if>
     </table>
   </xsl:template>
 

http://dive4elements.wald.intevation.org