changeset 1758:1d78039a36e6

Include differences in datacage. flys-artifacts/trunk@3070 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 25 Oct 2011 12:37:05 +0000 (2011-10-25)
parents 63d5d52ba7f3
children c51089a84d13
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml
diffstat 2 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Oct 25 12:13:04 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Oct 25 12:37:05 2011 +0000
@@ -1,3 +1,9 @@
+2011-10-25  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* doc/conf/meta-data.xml: Added configuration to include differences
+	  in datacage when longitudinal sections are shown (yet not
+	  functional).
+
 2011-10-25  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* doc/conf/meta-data.xml: Cosmetics.
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue Oct 25 12:13:04 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue Oct 25 12:37:05 2011 +0000
@@ -390,6 +390,33 @@
       ------------------
     </dc:comment>
     <dc:when test="dc:contains($parameters, 'user-id')">
+      <dc:comment>
+        Show diffferences if longitudinal sections are there.
+        -----------------------------------------------------
+      </dc:comment>
+      <dc:choose>
+      <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')">
+        <dc:context>
+          <dc:statement>
+            SELECT name AS facet_name, num as facet_num, description AS facet_description
+            FROM facets
+            WHERE name = 'w_differences'
+            ORDER BY num ASC, name DESC
+          </dc:statement>
+            <dc:elements>
+             <differences>
+              <dc:element name="${facet_name}">
+                <dc:attribute name="description" value="${facet_description}"/>
+                <dc:attribute name="ids"         value="${facet_num}"/>
+                <dc:attribute name="factory"     value="winfo"/>
+                <!--dc:attribute name="artifact-id" value="${a_gid}"/-->
+                <dc:attribute name="out"         value="w_differences"/>
+              </dc:element>
+             </differences>
+            </dc:elements>
+        </dc:context>
+      </dc:when>
+      </dc:choose>
       <old_calculations>
         <dc:context connection="user">
           <dc:statement>SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name

http://dive4elements.wald.intevation.org