comparison artifacts/doc/conf/meta-data.xml @ 8122:aca5d1c87755

Tooltip for sediment loads in datacage.
author "Tom Gottfried <tom@intevation.de>"
date Fri, 22 Aug 2014 18:00:35 +0200
parents 82af749d5ab3
children 37cdfad302cb
comparison
equal deleted inserted replaced
8121:82af749d5ab3 8122:aca5d1c87755
1411 1411
1412 <dc:macro name="load"> 1412 <dc:macro name="load">
1413 <year description="{$timespan}" 1413 <year description="{$timespan}"
1414 factory="sedimentload" 1414 factory="sedimentload"
1415 target_out="{$out}" 1415 target_out="{$out}"
1416 info="{$description}" 1416 info="{$info}"
1417 ids="{$syid};{$fraction};{$timespan}" /> 1417 ids="{$syid};{$fraction};{$timespan}" />
1418 </dc:macro> 1418 </dc:macro>
1419 1419
1420 <dc:macro name="load_ls"> 1420 <dc:macro name="load_ls">
1421 <year description="{$timespan}" 1421 <year description="{$timespan}"
1422 factory="sedimentload_ls" 1422 factory="sedimentload_ls"
1423 target_out="{$out}" 1423 target_out="{$out}"
1424 info="{$description}" 1424 info="{$info}"
1425 ids="{$syid};{$timespan}" /> 1425 ids="{$syid};{$timespan}" />
1426 </dc:macro> 1426 </dc:macro>
1427 1427
1428 <dc:macro name="loads"> 1428 <dc:macro name="loads">
1429 <dc:if test="dc:has-result()"> 1429 <dc:if test="dc:has-result()">
1477 <measurement_stations> 1477 <measurement_stations>
1478 <dc:context> 1478 <dc:context>
1479 <dc:statement> 1479 <dc:statement>
1480 SELECT DISTINCT 1480 SELECT DISTINCT
1481 sy.id AS syid, 1481 sy.id AS syid,
1482 sy.description AS description,
1483 ti.start_time AS startyear, 1482 ti.start_time AS startyear,
1484 ti.stop_time AS endyear, 1483 ti.stop_time AS endyear,
1485 sq.start_time AS sqstart, 1484 sq.start_time AS sqstart,
1486 sq.stop_time AS sqstop, 1485 sq.stop_time AS sqstop,
1487 gf.name AS fraction 1486 gf.name AS fraction,
1487 sy.description || '&lt;BR&gt;' ||
1488 'Fraktion: ' || gf.lower || ' bis ' || gf.upper ||
1489 ' mm&lt;BR&gt;Einheit: t/a' AS info
1488 FROM sediment_load sy 1490 FROM sediment_load sy
1489 JOIN sediment_load_values syv 1491 JOIN sediment_load_values syv
1490 ON sy.id = syv.sediment_load_id 1492 ON sy.id = syv.sediment_load_id
1491 JOIN measurement_station ms 1493 JOIN measurement_station ms
1492 ON ms.id = syv.measurement_station_id 1494 ON ms.id = syv.measurement_station_id
1509 <sediment_load_ls> 1511 <sediment_load_ls>
1510 <dc:context> 1512 <dc:context>
1511 <dc:statement> 1513 <dc:statement>
1512 SELECT DISTINCT 1514 SELECT DISTINCT
1513 sy.id AS syid, 1515 sy.id AS syid,
1514 sy.description AS description,
1515 ti.start_time AS startyear, 1516 ti.start_time AS startyear,
1516 ti.stop_time AS endyear, 1517 ti.stop_time AS endyear,
1517 sq.start_time AS sqstart, 1518 sq.start_time AS sqstart,
1518 sq.stop_time AS sqstop, 1519 sq.stop_time AS sqstop,
1519 gf.name AS fraction 1520 gf.name AS fraction,
1521 sy.description || '&lt;BR&gt;' ||
1522 'Fraktion: ' || gf.lower || ' bis ' || gf.upper ||
1523 ' mm&lt;BR&gt;Einheit: ' || u.name AS info
1520 FROM sediment_load_ls sy 1524 FROM sediment_load_ls sy
1521 JOIN rivers r ON sy.river_id = r.id 1525 JOIN rivers r ON sy.river_id = r.id
1522 JOIN sediment_load_ls_values syv 1526 JOIN sediment_load_ls_values syv
1523 ON sy.id = syv.sediment_load_ls_id 1527 ON sy.id = syv.sediment_load_ls_id
1524 JOIN time_intervals ti ON sy.time_interval_id = ti.id 1528 JOIN time_intervals ti ON sy.time_interval_id = ti.id
1525 JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id 1529 JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id
1526 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id 1530 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id
1531 JOIN units u ON sy.unit_id = u.id
1527 WHERE r.id = ${river_id} 1532 WHERE r.id = ${river_id}
1528 AND syv.station BETWEEN ${fromkm} AND ${tokm} 1533 AND syv.station BETWEEN ${fromkm} AND ${tokm}
1529 ORDER BY sqstart DESC, sqstop DESC, 1534 ORDER BY sqstart DESC, sqstop DESC,
1530 fraction, startyear DESC, endyear DESC 1535 fraction, startyear DESC, endyear DESC
1531 </dc:statement> 1536 </dc:statement>

http://dive4elements.wald.intevation.org