diff flys-artifacts/doc/conf/meta-data.xml @ 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
parents 63d5d52ba7f3
children 424e26041564
line wrap: on
line diff
--- 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