[PATCH 2 of 4] issue1571: Hav eown folder in dc for vollmer curves

Wald Commits scm-commit at wald.intevation.org
Fri Nov 1 12:12:54 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1383300818 -3600
# Node ID deaf6e84863573c0439feba52564549932222b35
# Parent  5775d14b3db2898c42d2906a5f7bafd05783129f
issue1571: Hav eown folder in dc for vollmer curves.

diff -r 5775d14b3db2 -r deaf6e848635 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Fri Nov 01 11:12:38 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Fri Nov 01 11:13:38 2013 +0100
@@ -566,15 +566,41 @@
       </dc:filter>
     </dc:macro>
 
+    <dc:macro name="longitudinal-section-fix-common">
+    </dc:macro>
+
+    <dc:macro name="longitudinal-section-fix-vollmer">
+      <dc:filter expr="$a_state = 'state.fix.vollmer.compute' and
+          ($facet_name = 'longitudinal_section.w' or
+           $facet_name = 'longitudinal_section.q')
+        ">
+        <dc:if test="dc:has-result()">
+          <waterlevels_fix_vollmer>
+            <dc:call-macro name="collection-group">
+              <waterlevels description="{dc:group-key()}">
+                <dc:for-each>
+                  <dc:element name="${facet_name}">
+                    <dc:attribute name="description" value="${facet_description}"/>
+                    <dc:attribute name="ids" value="${facet_num}"/>
+                    <dc:attribute name="factory" value="fixanalysis"/>
+                    <dc:attribute name="target_out" value="${out}"/>
+                    <dc:attribute name="artifact-id" value="${a_gid}"/>
+                    <dc:attribute name="out" value="longitudinal_section"/>
+                  </dc:element>
+                </dc:for-each>
+              </waterlevels>
+            </dc:call-macro>
+          </waterlevels_fix_vollmer>
+        </dc:if>
+      </dc:filter>
+    </dc:macro>
+
     <dc:macro name="longitudinal-section-fix">
       <dc:filter expr="$out_name = 'fix_longitudinal_section_curve' and
         (starts-with($facet_name, 'fix_deviation_ls') or
         starts-with($facet_name, 'fix_sector_average_ls') or
         starts-with($facet_name, 'fix_analysis_events_ls') or
-        starts-with($facet_name, 'fix_reference_events_ls')) or
-        ($a_state = 'state.fix.vollmer.compute' and
-          ($facet_name = 'longitudinal_section.w' or
-           $facet_name = 'longitudinal_section.q'))
+        starts-with($facet_name, 'fix_reference_events_ls'))
         ">
         <dc:if test="dc:has-result()">
           <waterlevels_fix>
@@ -587,14 +613,7 @@
                     <dc:attribute name="factory" value="fixanalysis"/>
                     <dc:attribute name="target_out" value="${out}"/>
                     <dc:attribute name="artifact-id" value="${a_gid}"/>
-                    <dc:choose>
-                      <dc:when test="$a_state = 'state.fix.vollmer.compute'">
-                        <dc:attribute name="out" value="longitudinal_section"/>
-                      </dc:when>
-                      <dc:otherwise>
-                        <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
-                      </dc:otherwise>
-                    </dc:choose>
+                    <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
                   </dc:element>
                 </dc:for-each>
               </waterlevels>
@@ -1242,6 +1261,7 @@
       <dc:call-macro name="differences"/>
       <dc:call-macro name="waterlevels-discharge"/>
       <dc:call-macro name="longitudinal-section-fix"/>
+      <dc:call-macro name="longitudinal-section-fix-vollmer"/>
       <dc:comment> MINFO </dc:comment>
       <dc:call-macro name="bedheight_differences"/>
       <dc:call-macro name="bedquality"/>


More information about the Dive4elements-commits mailing list