changeset 7208:b893e1d0ddc7

issue1435: Add densities-macro to meta-data.xml .
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 30 Sep 2013 17:32:47 +0200
parents fc965ef58972
children a5c142500d51
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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>

http://dive4elements.wald.intevation.org