[PATCH 3 of 9] issue1473: Let vollmer curves appear under 'former calc/waterlevels from fix.'

Wald Commits scm-commit at wald.intevation.org
Thu Oct 17 08:51:29 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381988551 -7200
# Node ID 4e055f92a8b32717c1220f923d62461b61ba9788
# Parent  78862ae87121ac6227b5b36842c11bbd3ab3e8f8
issue1473: Let vollmer curves appear under 'former calc/waterlevels from fix.'.

diff -r 78862ae87121 -r 4e055f92a8b3 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Thu Oct 17 07:39:42 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Thu Oct 17 07:42:31 2013 +0200
@@ -568,7 +568,11 @@
         (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'))">
+        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'))
+        ">
         <dc:if test="dc:has-result()">
           <waterlevels_fix>
             <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)">
@@ -580,7 +584,14 @@
                     <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="fix_longitudinal_section_curve"/>
+                    <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:element>
                 </dc:for-each>
               </waterlevels>


More information about the Dive4elements-commits mailing list