[PATCH] Mention gauge name in theme name for historical discharge curves

Wald Commits scm-commit at wald.intevation.org
Mon Oct 20 14:22:54 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1413807771 -7200
# Node ID 4fd063703487c7468686829450f64f14d586d359
# Parent  17c3aaa17112fb763d13fb81f64757ad611138f2
Mention gauge name in theme name for historical discharge curves.

diff -r 17c3aaa17112 -r 4fd063703487 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Mon Oct 20 13:52:15 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Mon Oct 20 14:22:51 2014 +0200
@@ -1046,15 +1046,16 @@
             <dc:group expr="$gauge_name">
               <gauge name="{dc:group-key()}">
                 <dc:for-each>
-                  <dc:variable name="combined_desc"
-                               expr="concat($bfg_id, ' ',
+                  <dc:variable name="validity"
+                               expr="concat(
                                      dc:date-format('dd.MM.yyyy', $start_time),
                                      ' - ',
                                      dc:date-format('dd.MM.yyyy', $stop_time))"/>
-                  <histdis name="{$combined_desc}"
-                           description="{$combined_desc}"
+                  <histdis name="{concat($bfg_id, ' ', $validity)}"
+                           description="{concat($bfg_id, ' ', $validity)}"
                            factory="gaugedischarge" target_out="{$out}"
-                           ids="{$gauge_name};{$dt_id};{$combined_desc}"/>
+                           ids="{$gauge_name};{$dt_id};{concat($bfg_id, ' ',
+                                  $gauge_name, ' ', $validity)}"/>
                 </dc:for-each>
               </gauge>
             </dc:group>


More information about the Dive4Elements-commits mailing list