Mercurial > dive4elements > river
changeset 8004:05ef23d55046 facet-metadata
Added macro for middle bedheights for old calculations.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 03 Jul 2014 12:30:41 +0200 |
parents | 06668e62cd7b |
children | 95301de332be |
files | artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml Thu Jul 03 11:34:46 2014 +0200 +++ b/artifacts/doc/conf/meta-data.xml Thu Jul 03 12:30:41 2014 +0200 @@ -1030,6 +1030,30 @@ </dc:filter> </dc:macro> + <dc:macro name="middle_bedheights"> + <dc:filter expr="($out_name = 'bedheight_middle') and + (starts-with($facet_name, 'bedheight_middle.single'))"> + <dc:if test="dc:has-result()"> + <middle_bedheights> + <dc:call-macro name="collection-group"> + <middle_bedheight description="{dc:group-key()}"> + <dc:for-each> + <dc:element name="${facet_name}"> + <dc:attribute name="factory" value="minfo"/> + <dc:attribute name="target_out" value="${out}"/> + <dc:attribute name="description" value="${facet_description}"/> + <dc:attribute name="ids" value="${facet_num}"/> + <dc:attribute name="artifact-id" value="${a_gid}"/> + <dc:attribute name="out" value="${out_name}"/> + </dc:element> + </dc:for-each> + </middle_bedheight> + </dc:call-macro> + </middle_bedheights> + </dc:if> + </dc:filter> + </dc:macro> + <dc:macro name="bedheight_differences"> <dc:filter expr="($out_name = 'bed_difference_year' or $out_name = 'bed_difference_height_year') and (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.height'))"> @@ -1313,6 +1337,7 @@ <dc:call-macro name="longitudinal-section-fix"/> <dc:call-macro name="longitudinal-section-fix-vollmer"/> <dc:comment> MINFO </dc:comment> + <dc:call-macro name="middle_bedheights"/> <dc:call-macro name="bedheight_differences"/> <dc:call-macro name="bedquality"/> <dc:call-macro name="flow-velocity"/>