[PATCH] Do not filter tables without end date in recommendations for historical discharge tables

Wald Commits scm-commit at wald.intevation.org
Fri Dec 12 11:11:30 CET 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1418379086 -3600
# Node ID 1314d876a7e591fd9b1bf1d1fa6514facbaf67d3
# Parent  dc0351c5d098916acc6fea262897e3949120a856
Do not filter tables without end date in recommendations for historical discharge tables.

diff -r dc0351c5d098 -r 1314d876a7e5 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Thu Dec 04 18:15:05 2014 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Fri Dec 12 11:11:26 2014 +0100
@@ -1046,7 +1046,9 @@
         <dc:filter expr="$kind = 1 and
                          number(dc:date-format('yyyyMMdd', $start_time))
                            < $stop and
-                         number(dc:date-format('yyyyMMdd', $stop_time))
+                         number(dc:coalesce(
+                             dc:date-format('yyyyMMdd', $stop_time),
+                             '99999999'))
                            > $start">
           <dc:call-macro name="hist_discharge_factory"/>
         </dc:filter>


More information about the Dive4Elements-commits mailing list