# HG changeset patch # User Andre Heinecke # Date 1382374650 -7200 # Node ID 350057df635b6e72926bde9beda642250454e6c9 # Parent 6599ee317069e44c20356fb9843e2abb19fda3b3 (issue965) Use new datacage magic to have year filtering for bedheights diff -r 6599ee317069 -r 350057df635b artifacts/doc/conf/meta-data.xml --- a/artifacts/doc/conf/meta-data.xml Mon Oct 21 17:54:34 2013 +0200 +++ b/artifacts/doc/conf/meta-data.xml Mon Oct 21 18:57:30 2013 +0200 @@ -1668,6 +1668,20 @@ + + @@ -1685,7 +1699,8 @@ 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 lower(bhs.description) NOT LIKE '%epoch%' + AND bhs.year BETWEEN ${year_from} AND ${year_to} @@ -1714,6 +1729,7 @@ FROM bed_height_single WHERE river_id = ${river_id} AND lower(description) LIKE '%epoch%' + AND year BETWEEN ${year_from} AND ${year_to}