[PATCH 2 of 2] (issue1051) Fix recommended official epochs for period mode

Wald Commits scm-commit at wald.intevation.org
Thu Mar 19 16:50:29 CET 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1426780224 -3600
# Node ID af840bf7f05a2e727081be218e09475e14af1bc4
# Parent  ba2a34a4e4400a2bf939ea09b538970ad6e6d7d2
(issue1051) Fix recommended official epochs for period mode

diff -r ba2a34a4e440 -r af840bf7f05a artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Thu Mar 19 16:28:40 2015 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Thu Mar 19 16:50:24 2015 +0100
@@ -3077,6 +3077,12 @@
           <dc:variable name="end" type="number"
                        expr="dc:max-number(dc:find-all('\d{4}', $epochs))"/>
         </dc:if>
+        <dc:if test="string-length(dc:get('years')) > 0">
+          <dc:variable name="start" type="number"
+                       expr="dc:min-number(dc:find-all('\d{4}', $years))"/>
+          <dc:variable name="end" type="number"
+                       expr="dc:max-number(dc:find-all('\d{4}', $years))"/>
+        </dc:if>
         <dc:filter expr="$kind = 'official' and
                          $sqid = $sq_time_id and
                          not(number($end) <


More information about the Dive4Elements-commits mailing list