[PATCH 12 of 19] issue1435: Add densities-macro to meta-data.xml

Wald Commits scm-commit at wald.intevation.org
Mon Sep 30 17:30:37 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380555167 -7200
# Node ID b893e1d0ddc7624141a6e6eddbb594f49e8c34b1
# Parent  fc965ef589728d016c767a45ec5ac2702f2b6828
issue1435: Add densities-macro to meta-data.xml .

diff -r fc965ef58972 -r b893e1d0ddc7 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Mon Sep 30 17:32:04 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Mon Sep 30 17:32:47 2013 +0200
@@ -1229,6 +1229,34 @@
       </minfo>
     </dc:macro>
 
+    <dc:macro name="densities">
+      <densities>
+      <dc:context>
+        <dc:statement>
+            SELECT DISTINCT
+                sd.id          AS sdid,
+                sd.description AS description,
+                d.lower        AS depth_lower,
+                d.upper        AS depth_upper
+            FROM     sediment_density sd
+                JOIN rivers r ON sd.river_id = r.id
+                JOIN depths d ON sd.depth_id = d.id
+            WHERE   r.id = ${river_id}
+        </dc:statement>
+        <dc:if test="dc:has-result()">
+          <dc:for-each>
+            <density description="{$description}"
+                   factory="sedimentdensity"
+                   target_out="{$out}"
+                   info="infome"
+                   ids="{$sdid}" />
+          </dc:for-each>
+        </dc:if>
+      </dc:context>
+      </densities>
+    </dc:macro>
+
+
     <dc:macro name="yields">
       <yields>
       <years>


More information about the Dive4elements-commits mailing list