comparison artifacts/doc/conf/meta-data.xml @ 8289:f12a5c55864d

Consider new SQ-diagrams in datacage config.
author "Tom Gottfried <tom@intevation.de>"
date Wed, 17 Sep 2014 13:24:13 +0200
parents a3ecddb5503f
children 6f866709bbff
comparison
equal deleted inserted replaced
8288:2f7f9ced46a5 8289:f12a5c55864d
276 <dc:call-macro name="basedata_2_fixations"/> 276 <dc:call-macro name="basedata_2_fixations"/>
277 <dc:call-macro name="basedata_3_officials"/> 277 <dc:call-macro name="basedata_3_officials"/>
278 <dc:call-macro name="basedata_4_heightmarks-points"/> 278 <dc:call-macro name="basedata_4_heightmarks-points"/>
279 <dc:call-macro name="basedata_5_flood-protections"/> 279 <dc:call-macro name="basedata_5_flood-protections"/>
280 </dc:when> 280 </dc:when>
281 <dc:when test="starts-with($out, 'sq_relation')"> 281 <dc:when test="starts-with($out, 'sq_relation') or
282 $out = 'sq_overview'">
282 <dc:call-macro name="sqrelations"/> 283 <dc:call-macro name="sqrelations"/>
283 </dc:when> 284 </dc:when>
284 </dc:choose> 285 </dc:choose>
285 </dc:iterate> 286 </dc:iterate>
286 </dc:otherwise> 287 </dc:otherwise>
394 <dc:call-macro name="historical-discharge-user"/> 395 <dc:call-macro name="historical-discharge-user"/>
395 </dc:when> 396 </dc:when>
396 <dc:when test="$out = 'historical_discharge_wq'"> 397 <dc:when test="$out = 'historical_discharge_wq'">
397 <dc:call-macro name="historical-discharge-wq-user"/> 398 <dc:call-macro name="historical-discharge-wq-user"/>
398 </dc:when> 399 </dc:when>
399 <dc:when test="starts-with($out, 'sq_relation')"> 400 <dc:when test="starts-with($out, 'sq_relation') or
401 $out = 'sq_overview'">
400 <dc:call-macro name="sqrelations_user"/> 402 <dc:call-macro name="sqrelations_user"/>
401 </dc:when> 403 </dc:when>
402 </dc:choose> 404 </dc:choose>
403 </dc:iterate> 405 </dc:iterate>
404 </dc:otherwise> 406 </dc:otherwise>
1069 </dc:if> 1071 </dc:if>
1070 </dc:filter> 1072 </dc:filter>
1071 </dc:macro> 1073 </dc:macro>
1072 1074
1073 <dc:macro name="sqrelations_user"> 1075 <dc:macro name="sqrelations_user">
1074 <dc:filter expr=" 1076 <dc:filter expr="not(dc:contains($facet_name, 'overview')) and (
1075 ($out = 'sq_relation_a' and starts-with($facet_name, 'sq_a_')) or 1077 ($out = 'sq_relation_a' and starts-with($facet_name, 'sq_a_')) or
1076 ($out = 'sq_relation_b' and starts-with($facet_name, 'sq_b_')) or 1078 ($out = 'sq_relation_b' and starts-with($facet_name, 'sq_b_')) or
1077 ($out = 'sq_relation_c' and starts-with($facet_name, 'sq_c_')) or 1079 ($out = 'sq_relation_c' and starts-with($facet_name, 'sq_c_')) or
1078 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or 1080 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or
1079 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or 1081 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or
1080 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_'))"> 1082 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_')) or
1083 ($out = 'sq_relation_g' and starts-with($facet_name, 'sq_g_'))) or
1084 $out = 'sq_overview' and dc:contains($facet_name, 'overview')">
1081 <dc:if test="dc:has-result()"> 1085 <dc:if test="dc:has-result()">
1082 <sq_relations> 1086 <sq_relations>
1083 <dc:call-macro name="collection-group"> 1087 <dc:call-macro name="collection-group">
1084 <sqrel description="{dc:group-key()}"> 1088 <sqrel description="{dc:group-key()}">
1085 <dc:for-each> 1089 <dc:for-each>
2104 WHERE r.id = ${river_id} 2108 WHERE r.id = ${river_id}
2105 ORDER BY station_km, start_time, stop_time 2109 ORDER BY station_km, start_time, stop_time
2106 </dc:statement> 2110 </dc:statement>
2107 <dc:if test="dc:has-result()"> 2111 <dc:if test="dc:has-result()">
2108 <sq_relations> 2112 <sq_relations>
2109 <dc:filter expr="$out = concat('sq_relation_', $parameter)"> 2113 <dc:filter expr="$out = concat('sq_relation_', $parameter) or
2110 <dc:group expr="$station_km" type="number"> 2114 $out = 'sq_overview'">
2111 <dc:group expr="concat('km ', $station_km, ': ', $station_name)"> 2115 <dc:group expr="concat('Parameter ', dc:uppercase($parameter))">
2112 <station description="{dc:group-key()}"> 2116 <parameter description="{dc:group-key()}">
2113 <dc:for-each> 2117 <dc:for-each>
2114 <dc:variable name="combined_desc" expr="concat(dc:date-format('yyyy', $start_time), ' bis ', dc:date-format('yyyy', $stop_time))"/> 2118 <dc:group expr="$station_km" type="number">
2115 <sqvalue factory="staticsqrelation" target_out="{$out}" 2119 <dc:group expr="concat('km ', $station_km, ': ',
2116 ids="{$sqvid};{$station_name}: {$combined_desc}" description="{$combined_desc}"/> 2120 $station_name)">
2117 </dc:for-each> 2121 <station description="{dc:group-key()}">
2118 </station> 2122 <dc:for-each>
2119 </dc:group> 2123 <dc:variable name="combined_desc"
2124 expr="concat(dc:date-format('yyyy',
2125 $start_time), ' bis ',
2126 dc:date-format('yyyy',
2127 $stop_time))"/>
2128 <sqvalue factory="staticsqrelation"
2129 target_out="{$out}"
2130 ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}"
2131 description="{$combined_desc}"/>
2132 </dc:for-each>
2133 </station>
2134 </dc:group>
2135 </dc:group>
2136 </dc:for-each>
2137 </parameter>
2120 </dc:group> 2138 </dc:group>
2121 </dc:filter> 2139 </dc:filter>
2122 </sq_relations> 2140 </sq_relations>
2123 </dc:if> 2141 </dc:if>
2124 </dc:context> 2142 </dc:context>

http://dive4elements.wald.intevation.org