changeset 7947:a4764ab23eef

Datacage: Moved year filtering of bed heights to separate macro to be reusable in other contextes.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 18 Jun 2014 15:30:39 +0200
parents 0f1a3bbfd243
children 36f634917104
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Wed Jun 18 15:20:07 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Jun 18 15:30:39 2014 +0200
@@ -1719,6 +1719,15 @@
     </dc:macro>
 
     <dc:macro name="minfo-heights">
+      <dc:call-macro name="minfo-heights-years">
+        <bedheights>
+          <dc:call-macro name="bed-heights-single"/>
+          <dc:call-macro name="bed-heights-epoch"/>
+        </bedheights>
+      </dc:call-macro>
+    </dc:macro>
+
+    <dc:macro name="minfo-heights-years">
         <dc:comment>
         The input here is a list differenc ids noted in the
         form:
@@ -1765,10 +1774,7 @@
           <dc:variable name="year_from" expr="0" type="number"/>
         </dc:otherwise>
       </dc:choose>
-      <bedheights>
-        <dc:call-macro name="bed-heights-single"/>
-        <dc:call-macro name="bed-heights-epoch"/>
-      </bedheights>
+      <dc:macro-body/>
     </dc:macro>
 
     <dc:macro name="bed-heights-single">

http://dive4elements.wald.intevation.org