comparison artifacts/doc/conf/meta-data.xml @ 7191:7bd19eff9bca

issue1435: In DC conf, show sedimentyields in yield/[year|epoch]- structure, i18n.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 27 Sep 2013 16:13:54 +0200
parents 851fc99be4bc
children c0349b54c604
comparison
equal deleted inserted replaced
7190:851fc99be4bc 7191:7bd19eff9bca
1228 <dc:call-macro name="yields"/> 1228 <dc:call-macro name="yields"/>
1229 </minfo> 1229 </minfo>
1230 </dc:macro> 1230 </dc:macro>
1231 1231
1232 <dc:macro name="yields"> 1232 <dc:macro name="yields">
1233 <yields>
1234 <years>
1233 <dc:context> 1235 <dc:context>
1234 <dc:statement> 1236 <dc:statement>
1235 SELECT DISTINCT 1237 SELECT DISTINCT
1236 sy.id AS syid, 1238 sy.id AS syid,
1237 sy.description AS description, 1239 sy.description AS description,
1245 AND syv.station BETWEEN ${fromkm} AND ${tokm} 1247 AND syv.station BETWEEN ${fromkm} AND ${tokm}
1246 </dc:statement> 1248 </dc:statement>
1247 <dc:if test="dc:has-result()"> 1249 <dc:if test="dc:has-result()">
1248 <dc:for-each> 1250 <dc:for-each>
1249 <year description="{$description}" 1251 <year description="{$description}"
1250 factory="sedimentyield" 1252 factory="sedimentyield"
1251 target_out="{$out}" 1253 target_out="{$out}"
1252 info="infome" 1254 info="infome"
1253 ids="{$syid}" /> 1255 ids="{$syid}" />
1254 <!-- or epoch -->
1255 </dc:for-each> 1256 </dc:for-each>
1256 </dc:if> 1257 </dc:if>
1257 </dc:context> 1258 </dc:context>
1259 </years>
1260 <epochs>
1261 <dc:context>
1262 <dc:statement>
1263 SELECT DISTINCT
1264 sy.id AS syid,
1265 sy.description AS description,
1266 ti.start_time AS year
1267 FROM sediment_yield sy
1268 JOIN rivers r ON sy.river_id = r.id
1269 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id
1270 JOIN time_intervals ti ON sy.time_interval_id = ti.id
1271 WHERE r.name = 'Elbe'
1272 AND ti.stop_time IS NOT NULL
1273 AND syv.station BETWEEN ${fromkm} AND ${tokm}
1274 </dc:statement>
1275 <dc:if test="dc:has-result()">
1276 <dc:for-each>
1277 <epoch description="{$description}"
1278 factory="sedimentyield"
1279 target_out="{$out}"
1280 info="infome"
1281 ids="{$syid}" />
1282 </dc:for-each>
1283 </dc:if>
1284 </dc:context>
1285 </epochs>
1286
1287 </yields>
1258 </dc:macro> 1288 </dc:macro>
1259 1289
1260 1290
1261 <dc:macro name="basedata_5_flood-protections"> 1291 <dc:macro name="basedata_5_flood-protections">
1262 <dc:filter expr="$kind=5"> 1292 <dc:filter expr="$kind=5">

http://dive4elements.wald.intevation.org