# HG changeset patch # User Tom Gottfried # Date 1409047758 -7200 # Node ID 37cdfad302cbb56b370cc0b7c7d1b0aeb696c93c # Parent 369fbb28f5d0e33fab55f2a7b00886b7c418ce99 Metadata in datacage tooltips for sediment densities, bed heights, flow velocities and sounding widhts. diff -r 369fbb28f5d0 -r 37cdfad302cb artifacts/doc/conf/meta-data.xml --- a/artifacts/doc/conf/meta-data.xml Tue Aug 26 11:35:47 2014 +0200 +++ b/artifacts/doc/conf/meta-data.xml Tue Aug 26 12:09:18 2014 +0200 @@ -1385,10 +1385,10 @@ SELECT DISTINCT sd.id AS sdid, - sd.description AS description, d.lower AS depth_lower, d.upper AS depth_upper, - min(sdv.year) AS year + min(sdv.year) AS year, + sd.description || '<BR>Jahr: ' || min(sdv.year) AS info FROM sediment_density sd JOIN depths d ON sd.depth_id = d.id JOIN sediment_density_values sdv on sdv.sediment_density_id = sd.id @@ -1401,7 +1401,7 @@ @@ -1897,33 +1897,52 @@ + + + SELECT bhs.id AS bedh_id, + bhs.year AS bedh_year, + bhs.description AS bedh_descr, + bhs.description || '<BR>Jahr: ' || bhs.year || + '<BR>Aufnahmeart: ' || bht.name || + '<BR>Lagesystem: ' || ls.name || + '<BR>Höhensystem: ' || cur_em.name || + '<BR>ursprüngliches Höhensystem: ' || old_em.name || + '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) || + '<BR>Auswerter: ' || bhs.evaluation_by AS info + FROM bed_height_single bhs + JOIN bed_height_type bht ON bht.id = bhs.type_id + JOIN location_system ls ON ls.id = location_system_id + JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id + JOIN elevation_model old_em ON old_em.id = old_elevation_model_id + JOIN ranges r ON r.id = range_id + WHERE bhs.river_id = ${river_id} + AND bhs.year BETWEEN ${year_from} AND ${year_to} + + + + + + + + + - - SELECT bhs.id AS bedh_id, - bhs.year AS bedh_year, - bhs.description AS bedh_descr, - bht.name AS type_name - FROM bed_height_single bhs - JOIN bed_height_type bht ON bht.id = bhs.type_id - WHERE bhs.river_id = ${river_id} - AND lower(bhs.description) NOT LIKE '%epoch%' - AND bhs.year BETWEEN ${year_from} AND ${year_to} - - - - - - - - - - + + + + + + + + + + @@ -1931,20 +1950,10 @@ - - SELECT id AS bedh_id, - year AS bedh_year, - description AS bedh_descr - FROM bed_height_single - WHERE river_id = ${river_id} - AND lower(description) LIKE '%epoch%' - AND year BETWEEN ${year_from} AND ${year_to} - - - - + + + + @@ -1954,6 +1963,8 @@ SELECT fvm.id AS fvmid, fvm.description AS fvmd, + dz.gauge_name AS gauge, + dz.value AS q, dz.upper_discharge AS upperQ, dz.lower_discharge AS lowerQ FROM flow_velocity_model fvm @@ -1967,7 +1978,9 @@ @@ -2038,18 +2051,14 @@ - - SELECT id AS bedh_id, - year AS bedh_year, - description AS bedh_descr - FROM bed_height_single WHERE river_id = ${river_id} - +