diff artifacts/doc/conf/meta-data.xml @ 8119:a9a6414b3563

Format timestamps in datacage tooltip for porosities.
author "Tom Gottfried <tom@intevation.de>"
date Fri, 22 Aug 2014 08:04:43 +0200
parents 84f42caeea2a
children b57f4bcd0f6f
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Thu Aug 21 18:58:10 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Fri Aug 22 08:04:43 2014 +0200
@@ -1356,8 +1356,9 @@
                 p.description  || '&lt;BR&gt;' ||
                 'Tiefe: ' || d.lower || ' - ' || d.upper 
                     || ' cm &lt;BR&gt;' ||
-                'Zeitraum: ' || t.start_time || ' - ' || t.stop_time
-                AS info
+                'Zeitraum: ' AS info,
+                t.start_time AS syear,
+                t.stop_time AS eyear
             FROM     porosity p
                 JOIN depths d ON p.depth_id = d.id
                 JOIN time_intervals t ON p.time_interval_id=t.id
@@ -1369,7 +1370,8 @@
                   <porosity description="{$depth_lower}-{$depth_upper} cm"
                    factory="porosity"
                    target_out="{$out}"
-                   info="{$info}"
+                   info="{concat($info, dc:date-format('yyyy', $syear),
+                             ' - ', dc:date-format('yyyy', $eyear))}"
                    ids="{$pid};{$description}" />
           </dc:for-each>
         </dc:if>

http://dive4elements.wald.intevation.org