Mercurial > dive4elements > river
diff artifacts/doc/conf/meta-data.xml @ 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 | 21d320ebb50c |
children | 598e4bec920b |
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">