# HG changeset patch # User Tom Gottfried # Date 1413562833 -7200 # Node ID f1bc081210ea6d829a7dd955e95b11c4953d787a # Parent 64e5272089422c33390d3babc90769fcb3c7e74f Load sounding width via recommendations for bed height differences and cleanup and fix related bed height macros. diff -r 64e527208942 -r f1bc081210ea artifacts/doc/conf/meta-data.xml --- a/artifacts/doc/conf/meta-data.xml Fri Oct 17 17:39:34 2014 +0200 +++ b/artifacts/doc/conf/meta-data.xml Fri Oct 17 18:20:33 2014 +0200 @@ -58,6 +58,7 @@ + @@ -1798,9 +1799,8 @@ - - - + + WITH sta AS (SELECT bhs.id, bhs.description, @@ -1825,15 +1825,14 @@ b2id, b2desc, b2year FROM csta ORDER BY b1desc, b2desc - - - - - - - - - + + + + + + + + @@ -1882,56 +1881,6 @@ - - - The input here is a list differenc ids noted in the - form: - [2726deb8-e71f-4acc-bc57-c7ae6062df2e;bedheight;0;FP-Mai2006vHW]# - [df79ba16-7e2a-43d6-b15b-34dca1fd9bff;bedheight;0;FP-2007_0-286]# - [027ba0ac-5453-4e63-a99b-1feeb82a4e06;bedheight;0;QP-2002nHW]# - [26b9b6eb-1ce5-4011-83c7-b88e15e99870;bedheight;0;FP-Nov2008] - - (Linebreaks inserted for readability) - - We take this string and look for all 4 digit numbers (\d{4}) after - we have removed the uuids from the input string (dc:replace all). - On this list of numbers we use the dc:min/max-number functions to - get the extreme values and interpret the result as a number. - - - - - - - - - - - - - - Just show everything - - - - - - - @@ -1977,6 +1926,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT bhs.id AS bedh_id, @@ -1990,11 +1969,12 @@ '<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 + 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 + LEFT JOIN elevation_model old_em + ON old_em.id = old_elevation_model_id + LEFT JOIN ranges r ON r.id = range_id WHERE bhs.river_id = ${river_id} @@ -2091,23 +2071,6 @@ - - - - - - - - - - - - - diff -r 64e527208942 -r f1bc081210ea artifacts/doc/datacage_ref_de.rst --- a/artifacts/doc/datacage_ref_de.rst Fri Oct 17 17:39:34 2014 +0200 +++ b/artifacts/doc/datacage_ref_de.rst Fri Oct 17 18:20:33 2014 +0200 @@ -670,7 +670,7 @@ ``dc:contains`` Prüfen, ob Suchbegriff in einer Liste vorhanden ist ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -``dc:contains(Nadel, Heuhaufen)`` prüft ob das Suchobjekt Nadel in +``dc:contains(Heuhaufen, Nadel)`` prüft ob das Suchobjekt Nadel in der Liste Heufhaufen zu finden ist. Liefert logisch wahr falls die Nadel gefunden wurde, ansonsten logisch falsch. Typischer Anwendungsfall: ``dc:contains($outs, 'longitudinal-section')`` prüft, ob in der Liste