changeset 8496:1314d876a7e5

Do not filter tables without end date in recommendations for historical discharge tables.
author Tom Gottfried <tom@intevation.de>
date Fri, 12 Dec 2014 11:11:26 +0100
parents dc0351c5d098
children b9434fe6d7d6
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))
                            &lt; $stop and
-                         number(dc:date-format('yyyyMMdd', $stop_time))
+                         number(dc:coalesce(
+                             dc:date-format('yyyyMMdd', $stop_time),
+                             '99999999'))
                            &gt; $start">
           <dc:call-macro name="hist_discharge_factory"/>
         </dc:filter>

http://dive4elements.wald.intevation.org