[PATCH 3 of 6] meta-data.xml: Subsume the different bed-quality dc-nodes
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 25 16:01:07 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1382703029 -7200
# Node ID 8ce14aeebe61b4b2a98d3a4cd299e3755e3b6eda
# Parent 96938401b1cd1654f251130e36eb5d44e665b96e
meta-data.xml: Subsume the different bed-quality dc-nodes.
diff -r 96938401b1cd -r 8ce14aeebe61 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml Fri Oct 25 13:53:48 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml Fri Oct 25 14:10:29 2013 +0200
@@ -900,12 +900,17 @@
</dc:filter>
</dc:macro>
- <dc:macro name="bedquality-bed">
+ <dc:macro name="bedquality">
<dc:filter expr="$out_name = 'bed_longitudinal_section' and
($facet_name = 'bed_longitudinal_section.bed_diameter_toplayer' or
- $facet_name = 'bed_longitudinal_section.bed_diameter_sublayer')">
+ $facet_name = 'bed_longitudinal_section.bed_diameter_sublayer' or
+ $facet_name = 'bed_longitudinal_section.bedload_diameter' or
+ $facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or
+ $facet_name = 'bed_longitudinal_section.sediment_density_sublayer' or
+ $facet_name = 'bed_longitudinal_section.porosity_toplayer' or
+ $facet_name = 'bed_longitudinal_section.porosity_sublayer')">
<dc:if test="dc:has-result()">
- <bed_quality_bed>
+ <bed_quality>
<dc:call-macro name="collection-group">
<quality-bed description="{dc:group-key()}">
<dc:for-each>
@@ -920,81 +925,7 @@
</dc:for-each>
</quality-bed>
</dc:call-macro>
- </bed_quality_bed>
- </dc:if>
- </dc:filter>
- </dc:macro>
-
- <dc:macro name="bedquality-load">
- <dc:filter expr="$out_name = 'bed_longitudinal_section' and
- $facet_name = 'bed_longitudinal_section.bedload_diameter'">
- <dc:if test="dc:has-result()">
- <bed_quality_load>
- <dc:call-macro name="collection-group">
- <quality-load 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}-${facet_name}"/>
- <dc:attribute name="artifact-id" value="${a_gid}"/>
- <dc:attribute name="out" value="bed_longitudinal_section"/>
- </dc:element>
- </dc:for-each>
- </quality-load>
- </dc:call-macro>
- </bed_quality_load>
- </dc:if>
- </dc:filter>
- </dc:macro>
-
- <dc:macro name="bedquality-density">
- <dc:filter expr="$out_name = 'bed_longitudinal_section' and
- ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or
- $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')">
- <dc:if test="dc:has-result()">
- <bed_quality_density>
- <dc:call-macro name="collection-group">
- <density 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}-${facet_name}"/>
- <dc:attribute name="artifact-id" value="${a_gid}"/>
- <dc:attribute name="out" value="bed_longitudinal_section"/>
- </dc:element>
- </dc:for-each>
- </density>
- </dc:call-macro>
- </bed_quality_density>
- </dc:if>
- </dc:filter>
- </dc:macro>
-
- <dc:macro name="bedquality-porosity">
- <dc:filter expr="$out_name = 'bed_longitudinal_section' and
- ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or
- $facet_name = 'bed_longitudinal_section.porosity_sublayer')">
- <dc:if test="dc:has-result()">
- <bed_quality_porosity>
- <dc:call-macro name="collection-group">
- <porosity 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}-${facet_name}"/>
- <dc:attribute name="artifact-id" value="${a_gid}"/>
- <dc:attribute name="out" value="bed_longitudinal_section"/>
- </dc:element>
- </dc:for-each>
- </porosity>
- </dc:call-macro>
- </bed_quality_porosity>
+ </bed_quality>
</dc:if>
</dc:filter>
</dc:macro>
@@ -1307,12 +1238,9 @@
<dc:call-macro name="longitudinal-section-fix"/>
<dc:comment> MINFO </dc:comment>
<dc:call-macro name="bedheight_differences"/>
- <dc:call-macro name="bedquality-bed"/>
- <dc:call-macro name="bedquality-load"/>
+ <dc:call-macro name="bedquality"/>
<dc:call-macro name="flow-velocity"/>
<dc:call-macro name="sediment-load"/>
- <dc:call-macro name="bedquality-density"/>
- <dc:call-macro name="bedquality-porosity"/>
</dc:macro>
More information about the Dive4elements-commits
mailing list