diff artifacts/doc/conf/meta-data.xml @ 8334:38f57e854977

Q-main values as recommendations in SQ. TODO: solve DDZ.
author "Tom Gottfried <tom@intevation.de>"
date Fri, 26 Sep 2014 10:53:26 +0200
parents 1e4e5ff44aa9
children 9d62a8b4bf15
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Fri Sep 26 10:50:54 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Fri Sep 26 10:53:26 2014 +0200
@@ -90,6 +90,10 @@
                     <dc:call-macro name="mainvalues"/>
                     <dc:call-macro name="qsectors"/>
                   </dc:when>
+                  <dc:when test="starts-with($out, 'sq_') and
+                                 not($out = 'sq_relation_export')">
+                    <dc:call-macro name="qmainvalues"/>
+                  </dc:when>
                   <dc:comment> Cross sections </dc:comment>
                   <dc:when test="$out = 'cross_section'">
                     <dc:call-macro name="cross_sections"/>
@@ -1082,9 +1086,13 @@
       <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" />
     </dc:macro>
 
+    <dc:macro name="qmainvalues">
+      <qmainvalue factory="mainvalue" ids="{$river_id}:q" target_out="{$out}"/>
+    </dc:macro>
+
     <dc:macro name="mainvalues">
-      <wmainvalue factory="mainvalue" ids="{$river_id}:w" target_out="{$out}" />
-      <qmainvalue factory="mainvalue" ids="{$river_id}:q" target_out="{$out}" />
+      <wmainvalue factory="mainvalue" ids="{$river_id}:w" target_out="{$out}"/>
+      <dc:call-macro name="qmainvalues"/>
     </dc:macro>
 
     <dc:macro name="cross_sections">

http://dive4elements.wald.intevation.org