changeset 2572:700f28bfd7ef

Partial fix flys/issue615, adjusted datacage conf. flys-artifacts/trunk@4102 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 01 Mar 2012 12:44:33 +0000
parents 63f44b8b41a3
children 39145db61317
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml
diffstat 2 files changed, 25 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Mar 01 12:17:38 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Mar 01 12:44:33 2012 +0000
@@ -1,3 +1,10 @@
+2012-03-01	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Partial fix flys/issue615 (datacage: events for fixations).
+
+	* doc/conf/meta-data.xml: Adjusted to make loading single events
+	  possible.
+
 2012-03-01	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Partial Dontcrash on flys/issue647 (NaNs from WstValueTable interpolation).
--- a/flys-artifacts/doc/conf/meta-data.xml	Thu Mar 01 12:17:38 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Thu Mar 01 12:44:33 2012 +0000
@@ -122,9 +122,24 @@
               </dc:statement>
               <dc:elements>
                 <fixation>
-                    <dc:attribute name="name" value="${prot_description}"/>
-                    <dc:attribute name="ids" value="fixations-wstv-A-${prot_id}"/>
-                    <dc:attribute name="factory" value="wqinterpol"/>
+                  <dc:attribute name="name" value="${prot_description}"/>
+                  <!--dc:attribute name="ids" value="fixations-wstv-A-${prot_id}"/-->
+                  <dc:context>
+                    <dc:statement>
+                      SELECT id       AS prot_column_id,
+                             name     AS prot_column_name,
+                             position AS prot_rel_pos
+                      FROM wst_columns WHERE wst_id = ${prot_id}
+                      ORDER by position
+                    </dc:statement>
+                    <dc:elements>
+                      <column>
+                        <dc:attribute name="name" value="${prot_column_name}"/>
+                        <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
+                        <dc:attribute name="factory" value="wqinterpol"/>
+                      </column>
+                    </dc:elements>
+                  </dc:context>
                 </fixation>
               </dc:elements>
             </dc:context>

http://dive4elements.wald.intevation.org