changeset 2717:4cd55689e9a9

Allow to load previous DurationCurves and fixations in Dur.C. via DC. flys-artifacts/trunk@4446 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 May 2012 09:02:58 +0000
parents 150dcdefeb7d
children 9ea3ac23bd9d
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri May 18 12:44:20 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon May 21 09:02:58 2012 +0000
@@ -1,3 +1,8 @@
+2012-05-21  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* doc/conf/meta-data.xml: Allow loading of previous duration curves and
+	  fixations in duration curves.
+
 2012-05-18  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java:
--- a/flys-artifacts/doc/conf/meta-data.xml	Fri May 18 12:44:20 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Mon May 21 09:02:58 2012 +0000
@@ -505,7 +505,15 @@
           </dc:if>
 
           <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
-            <dc:call-macro name="mainvalues"/>
+            <dc:choose>
+                <dc:when test="dc:contains($parameters, 'recommended')">
+                  <dc:call-macro name="mainvalues"/>
+                </dc:when>
+                <dc:otherwise>
+                  <dc:call-macro name="mainvalues"/>
+                  <dc:call-macro name="basedata_2_fixations"/>
+                </dc:otherwise>
+            </dc:choose>
           </dc:if>
 
           <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
@@ -1092,7 +1100,7 @@
                         <dc:statement>
                           SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
                           FROM outs as o, facets as f, artifacts as a
-                          WHERE f.name = 'duration_curve.q' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
+                          WHERE (f.name = 'duration_curve.q' or f.name = 'duration_curve.w') and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
                         </dc:statement>
                         <dc:elements>
                           <dc:element name="${facet_name}">

http://dive4elements.wald.intevation.org