comparison 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
comparison
equal deleted inserted replaced
7946:0f1a3bbfd243 7947:a4764ab23eef
1717 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" /> 1717 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" />
1718 </rastermap> 1718 </rastermap>
1719 </dc:macro> 1719 </dc:macro>
1720 1720
1721 <dc:macro name="minfo-heights"> 1721 <dc:macro name="minfo-heights">
1722 <dc:call-macro name="minfo-heights-years">
1723 <bedheights>
1724 <dc:call-macro name="bed-heights-single"/>
1725 <dc:call-macro name="bed-heights-epoch"/>
1726 </bedheights>
1727 </dc:call-macro>
1728 </dc:macro>
1729
1730 <dc:macro name="minfo-heights-years">
1722 <dc:comment> 1731 <dc:comment>
1723 The input here is a list differenc ids noted in the 1732 The input here is a list differenc ids noted in the
1724 form: 1733 form:
1725 [2726deb8-e71f-4acc-bc57-c7ae6062df2e;bedheight;0;FP-Mai2006vHW]# 1734 [2726deb8-e71f-4acc-bc57-c7ae6062df2e;bedheight;0;FP-Mai2006vHW]#
1726 [df79ba16-7e2a-43d6-b15b-34dca1fd9bff;bedheight;0;FP-2007_0-286]# 1735 [df79ba16-7e2a-43d6-b15b-34dca1fd9bff;bedheight;0;FP-2007_0-286]#
1763 <dc:comment>Just show everything</dc:comment> 1772 <dc:comment>Just show everything</dc:comment>
1764 <dc:variable name="year_to" expr="9999" type="number"/> 1773 <dc:variable name="year_to" expr="9999" type="number"/>
1765 <dc:variable name="year_from" expr="0" type="number"/> 1774 <dc:variable name="year_from" expr="0" type="number"/>
1766 </dc:otherwise> 1775 </dc:otherwise>
1767 </dc:choose> 1776 </dc:choose>
1768 <bedheights> 1777 <dc:macro-body/>
1769 <dc:call-macro name="bed-heights-single"/>
1770 <dc:call-macro name="bed-heights-epoch"/>
1771 </bedheights>
1772 </dc:macro> 1778 </dc:macro>
1773 1779
1774 <dc:macro name="bed-heights-single"> 1780 <dc:macro name="bed-heights-single">
1775 <single> 1781 <single>
1776 <dc:context> 1782 <dc:context>

http://dive4elements.wald.intevation.org