diff artifacts/doc/conf/meta-data.xml @ 7665:6d39b4066c91

Add sources/sinks to sediment yield datacage.
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 06 Dec 2013 13:58:27 +0100
parents 877d558747c6
children c36aae57ad43
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Fri Dec 06 13:17:05 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Fri Dec 06 13:58:27 2013 +0100
@@ -1434,6 +1434,7 @@
       
     <dc:macro name="yields">
       <yields>
+      <dc:call-macro name="annotations_sediment_yield"/>
       <years>
       <dc:context>
         <dc:statement>
@@ -1522,6 +1523,24 @@
       </annotations>
     </dc:macro>
 
+    <dc:macro name="annotations_sediment_yield">
+      <sources_sinks>
+        <dc:context>
+          <dc:statement>
+            SELECT id   AS anno_id,
+                   name AS anno_description
+            FROM annotation_types
+	    WHERE name IN ('Quelle', 'Senke')
+          </dc:statement>
+          <dc:for-each>
+            <annotation name="{$anno_description}"
+                        factory="annotations" target_out="{$out}"
+                        ids="{$river_id}:{$anno_description}"/>
+          </dc:for-each>
+        </dc:context>
+      </sources_sinks>
+    </dc:macro>
+
     <dc:macro name="basedata_2_fixations_relative_point">
       <dc:filter expr="$kind=2">
         <dc:if test="dc:has-result()">

http://dive4elements.wald.intevation.org