changeset 7905:34fa3f8c20ed

issue661: prototyped tooltip for porosities in datacage.
author "Tom Gottfried <tom@intevation.de>"
date Fri, 30 May 2014 15:46:53 +0200
parents 8b8407c71ee2
children 57cb1b7ec547
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Wed May 28 12:26:13 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Fri May 30 15:46:53 2014 +0200
@@ -1334,12 +1334,16 @@
                 p.id          AS pid,
                 p.description AS description,
                 d.lower        AS depth_lower,
-                d.upper        AS depth_upper
+                d.upper        AS depth_upper,
+                p.description  || '&lt;BR&gt;' ||
+                'Tiefe: ' || d.lower || ' - ' || d.upper 
+                    || ' cm &lt;BR&gt;' ||
+                'Zeitraum: ' || t.start_time || ' - ' || t.stop_time
+                AS info
             FROM     porosity p
                 JOIN depths d ON p.depth_id = d.id
-                JOIN porosity_values pv on pv.porosity_id = p.id
+                JOIN time_intervals t ON p.time_interval_id=t.id
             WHERE   p.river_id = ${river_id}
-            GROUP BY p.id, p.description, d.upper, d.lower
             ORDER BY depth_lower, depth_upper
         </dc:statement>
         <dc:if test="dc:has-result()">
@@ -1347,7 +1351,7 @@
                   <porosity description="{$depth_lower}-{$depth_upper} cm"
                    factory="porosity"
                    target_out="{$out}"
-                   info="{$description}"
+                   info="{$info}"
                    ids="{$pid};{$description}" />
           </dc:for-each>
         </dc:if>

http://dive4elements.wald.intevation.org