[PATCH 1 of 2] meta-data.xml: Add a macro to load previous discharge calculations

Wald Commits scm-commit at wald.intevation.org
Wed Oct 9 09:50:00 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381305469 -7200
# Node ID 36fa4c75200906fd5a2531c322c68db12eb00f9e
# Parent  cf1c4af57a41e2e294ec16cc3d97d30ed84e14e5
meta-data.xml: Add a macro to load previous discharge calculations.

diff -r cf1c4af57a41 -r 36fa4c752009 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Tue Oct 08 15:24:33 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Oct 09 09:57:49 2013 +0200
@@ -710,6 +710,25 @@
       </dc:filter>
     </dc:macro>
 
+    <dc:macro name="computed-discharge-curve">
+      <dc:filter expr="$facet_name = 'computed_discharge_curve.q'">
+        <dc:if test="dc:has-result()">
+          <computed_discharge_curves>
+            <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="${a_gid}"/>
+                <dc:attribute name="out" value="computed_discharge_curve"/>
+              </dc:element>
+            </dc:for-each>
+          </computed_discharge_curves>
+        </dc:if>
+      </dc:filter>
+    </dc:macro>
+
     <dc:macro name="duration-curve">
       <dc:filter expr="$facet_name = 'duration_curve.q' or $facet_name = 'duration_curve.w'">
         <dc:if test="dc:has-result()">


More information about the Dive4elements-commits mailing list