[PATCH 2 of 2] issue1613: In DC, also show the 'diff' facets, define former calc. for hist. W/Q out
Wald Commits
scm-commit at wald.intevation.org
Mon Nov 18 12:30:14 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1384774236 -3600
# Node ID 4f69ebe580e112e3e3d4d5c3d70680b1c826d6a9
# Parent 8fd314253839d5664dbab8c61fc06e7428fe4167
issue1613: In DC, also show the 'diff' facets, define former calc. for hist. W/Q out.
diff -r 8fd314253839 -r 4f69ebe580e1 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml Mon Nov 18 12:22:22 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml Mon Nov 18 12:30:36 2013 +0100
@@ -397,6 +397,9 @@
<dc:when test="$out = 'historical_discharge'">
<dc:call-macro name="historical-discharge-user"/>
</dc:when>
+ <dc:when test="$out = 'historical_discharge_wq'">
+ <dc:call-macro name="historical-discharge-wq-user"/>
+ </dc:when>
<dc:when test="starts-with($out, 'sq_relation')">
<dc:call-macro name="sqrelations_user"/>
</dc:when>
@@ -412,7 +415,30 @@
<!-- Macros to load user data -->
<dc:macro name="historical-discharge-user">
- <dc:filter expr="$out = 'historical_discharge' and ($facet_name = 'historical_discharge.historicalq' or $facet_name = 'historical_discharge.historicalw')">
+ <dc:filter expr="$out = 'historical_discharge' and starts-with($facet_name, 'historical_discharge.historical')">
+ <dc:if test="dc:has-result()">
+ <historical_discharges>
+ <dc:call-macro name="collection-group">
+ <discharges description="{dc:group-key()}">
+ <dc:for-each>
+ <dc:element name="${facet_name}">
+ <dc:attribute name="description" value="${facet_description}"/>
+ <dc:attribute name="factory" value="winfo"/>
+ <dc:attribute name="target_out" value="${out}"/>
+ <dc:attribute name="artifact-id" value="${a_gid}"/>
+ <dc:attribute name="ids" value="${facet_num}"/>
+ <dc:attribute name="out" value="historical_discharge"/>
+ </dc:element>
+ </dc:for-each>
+ </discharges>
+ </dc:call-macro>
+ </historical_discharges>
+ </dc:if>
+ </dc:filter>
+ </dc:macro>
+
+ <dc:macro name="historical-discharge-wq-user">
+ <dc:filter expr="$out = 'historical_discharge_wq' and starts-with($facet_name, 'historical_discharge.wq')">
<dc:if test="dc:has-result()">
<historical_discharges>
<dc:call-macro name="collection-group">
More information about the Dive4elements-commits
mailing list