diff artifacts/doc/conf/meta-data.xml @ 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 f9e3ef5d38d0
children 06aca4e889b9
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