diff flys-artifacts/doc/conf/meta-data.xml @ 2140:3d73109005b8

Recommend hyks if hit by cross section out. flys-artifacts/trunk@3718 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 19 Jan 2012 12:59:36 +0000
parents e84e2fcd0241
children 734d5f5e55c0
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Thu Jan 19 12:52:44 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Thu Jan 19 12:59:36 2012 +0000
@@ -335,6 +335,25 @@
           </cross-sections>
         </dc:macro>
 
+        <dc:macro name="hyks">
+          <hyks>
+            <dc:attribute name="id" value="hyk-${river_id}"/>
+            <dc:context>
+              <dc:statement>
+                SELECT id          AS hyk_id,
+                       description AS hyk_description
+                FROM hyks WHERE river_id = ${river_id}
+              </dc:statement>
+              <dc:elements>
+                <hyk>
+                  <dc:attribute name="name" value="${hyk_description}"/>
+                  <dc:attribute name="ids" value="${hyk_id}"/>
+                  <dc:attribute name="factory" value="hyk"/>
+                </hyk>
+              </dc:elements>
+            </dc:context>
+          </hyks>
+        </dc:macro>
 
         <dc:comment>
 
@@ -355,6 +374,7 @@
                </dc:if>
                <dc:if test="dc:contains($artifact-outs, 'cross_section')">
                  <dc:call-macro name="cross_sections"/>
+                 <dc:call-macro name="hyks"/>
                </dc:if>
             </dc:when>
             <dc:otherwise>

http://dive4elements.wald.intevation.org