diff flys-artifacts/doc/conf/meta-data.xml @ 1978:4c10a4cb978f

Recommend cross sections if they can be shown. flys-artifacts/trunk@3405 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 13 Dec 2011 13:37:18 +0000
parents efff4305dc05
children dd3f5bd174ea
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue Dec 13 13:34:52 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue Dec 13 13:37:18 2011 +0000
@@ -229,6 +229,7 @@
             </dc:context>
           </heightmarks>
         </dc:macro>
+
         <dc:macro name="basedata_4_heightmarks-wq">
           <heightmarks>
             <dc:context>
@@ -314,6 +315,26 @@
           </annotation>
         </dc:macro>
 
+        <dc:macro name="cross_sections">
+          <cross-sections>
+            <dc:attribute name="id" value="flood-protections-${river_id}"/>
+            <dc:context>
+              <dc:statement>
+                SELECT id          AS prot_id,
+                       description AS prot_description
+                FROM cross_sections WHERE river_id = ${river_id}
+              </dc:statement>
+              <dc:elements>
+                <cross-section>
+                  <dc:attribute name="name" value="${prot_description}"/>
+                  <dc:attribute name="ids" value="${prot_id}"/>
+                  <dc:attribute name="factory" value="crosssections"/>
+                </cross-section>
+              </dc:elements>
+            </dc:context>
+          </cross-sections>
+        </dc:macro>
+
 
         <dc:comment>
 
@@ -332,6 +353,9 @@
                <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
                   <dc:call-macro name="annotations"/>
                </dc:if>
+               <dc:if test="dc:contains($artifact-outs, 'cross_section')">
+                 <dc:call-macro name="cross_sections"/>
+               </dc:if>
             </dc:when>
             <dc:otherwise>
               <dc:comment>

http://dive4elements.wald.intevation.org