changeset 8598:af840bf7f05a

(issue1051) Fix recommended official epochs for period mode
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 19 Mar 2015 16:50:24 +0100
parents ba2a34a4e440
children 8641ce84a4b3
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')) &gt; 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) &lt;

http://dive4elements.wald.intevation.org