# HG changeset patch # User Sascha L. Teichmann # Date 1364551644 -3600 # Node ID eeac800eb4cd312cb73653c6ac9cc5a111dc67c1 # Parent bc140668db8202df25c996dc602de96d64cf4d9a Datacage: Rename to . We should have done this much earlier. diff -r bc140668db82 -r eeac800eb4cd flys-artifacts/doc/conf/meta-data.xml --- a/flys-artifacts/doc/conf/meta-data.xml Thu Mar 28 18:49:48 2013 +0100 +++ b/flys-artifacts/doc/conf/meta-data.xml Fri Mar 29 11:07:24 2013 +0100 @@ -38,11 +38,11 @@ FROM master_artifacts_range WHERE gid = CAST(${artifact-id} as uuid) - + - + @@ -62,7 +62,7 @@ SELECT id AS river_id, name as river_name FROM rivers WHERE lower(name) LIKE lower(${river}) - + Base-data macros (mostly data imported from wst-files). @@ -77,22 +77,22 @@ description AS prot_description FROM wsts WHERE kind = 0 AND river_id = ${river_id} - + - + - + - + @@ -108,22 +108,22 @@ description AS prot_description FROM wsts WHERE kind = 0 AND river_id = ${river_id} - + - + - + - + @@ -139,22 +139,22 @@ description AS prot_description FROM wsts WHERE kind = 1 AND river_id = ${river_id} - + - + - + - + @@ -170,22 +170,22 @@ description AS prot_description FROM wsts WHERE kind = 1 AND river_id = ${river_id} - + - + - + - + @@ -201,22 +201,22 @@ description AS prot_description FROM wsts WHERE kind = 1 AND river_id = ${river_id} - + - + - + - + @@ -231,23 +231,23 @@ description AS prot_description FROM wsts WHERE kind = 2 AND river_id = ${river_id} - + - + - + - + @@ -262,22 +262,22 @@ description AS prot_description FROM wsts WHERE kind = 2 AND river_id = ${river_id} - + - + - + - + @@ -292,22 +292,22 @@ description AS prot_description FROM wsts WHERE kind = 2 AND river_id = ${river_id} - + - + - + - + @@ -322,22 +322,22 @@ description AS prot_description FROM wsts WHERE kind = 2 AND river_id = ${river_id} - + - + - + - + @@ -353,22 +353,22 @@ description AS prot_description FROM wsts WHERE kind = 3 AND river_id = ${river_id} - + - + - + - + @@ -383,22 +383,22 @@ description AS prot_description FROM wsts WHERE kind = 4 AND river_id = ${river_id} - + - + - + - + @@ -413,22 +413,22 @@ description AS prot_description FROM wsts WHERE kind = 4 AND river_id = ${river_id} - + - + - + - + @@ -443,22 +443,22 @@ description AS prot_description FROM wsts WHERE kind = 4 AND river_id = ${river_id} - + - + - + - + @@ -474,7 +474,7 @@ description AS prot_description FROM wsts WHERE kind = 5 AND river_id = ${river_id} - + @@ -482,18 +482,18 @@ - + - + - + @@ -509,24 +509,24 @@ description AS prot_description FROM wsts WHERE kind = 5 AND river_id = ${river_id} - + - + - + - + @@ -574,13 +574,13 @@ name AS anno_description FROM annotation_types - + - + @@ -599,13 +599,13 @@ WHERE cs.river_id = ${river_id} AND csl.km BETWEEN ${fromkm} AND ${tokm} - + - + @@ -625,13 +625,13 @@ WHERE river_id = ${river_id} AND he.km BETWEEN ${fromkm} AND ${tokm} - + - + @@ -646,7 +646,7 @@ description AS fvmd FROM flow_velocity_measurements WHERE river_id = ${river_id} - + @@ -658,16 +658,16 @@ WHERE measurements_id = ${fvmid} AND station BETWEEN ${fromkm} AND ${tokm} - + - + - + @@ -682,13 +682,13 @@ description AS bedh_descr FROM bed_height_single WHERE river_id = ${river_id} - + - + @@ -856,7 +856,7 @@ name AS gauge_name FROM gauges WHERE river_id = ${river_id} - + @@ -879,7 +879,7 @@ ON d.time_interval_id = ti.id WHERE d.gauge_id = ${gauge_id} AND d.kind = 1 - + @@ -887,11 +887,11 @@ - + --> - + @@ -922,7 +922,7 @@ name AS gauge_name FROM gauges WHERE river_id = ${river_id} - + @@ -931,7 +931,7 @@ - + @@ -989,14 +989,14 @@ JOIN time_intervals t ON d.time_interval_id = t.id WHERE d.river_id = ${river_id} - + - + @@ -1013,54 +1013,54 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -1079,54 +1079,54 @@ - - - - - - - - - - - - - - - - - + - - - - - - + + + + - - - - + + + + - - - - + + + + + + - + + + + + + + + + + + + + + + + + @@ -1138,14 +1138,14 @@ SELECT count(*) as km_exists FROM river_axes_km WHERE river_id = ${river_id} - + - + @@ -1161,13 +1161,13 @@ AND kind_id=1 - + - + @@ -1184,13 +1184,13 @@ - + - + @@ -1207,12 +1207,12 @@ AND kind_id=1 - + - + @@ -1228,12 +1228,12 @@ - + - + @@ -1247,11 +1247,11 @@ WHERE river_id = ${river_id} AND kind = 2 - + - + @@ -1261,11 +1261,11 @@ WHERE river_id = ${river_id} AND kind = 2 - + - + @@ -1280,11 +1280,11 @@ What about all other line kinds? - + - + @@ -1302,11 +1302,11 @@ - + - + @@ -1322,11 +1322,11 @@ - + - + @@ -1354,11 +1354,11 @@ AND kind_id=1 - + - + @@ -1374,11 +1374,11 @@ - + - + @@ -1390,31 +1390,31 @@ availble - + - + - + - + - + - + @@ -1431,7 +1431,7 @@ WHERE river_id = ${river_id} AND hws.official=1 - + SELECT DISTINCT @@ -1447,7 +1447,7 @@ - + @@ -1476,7 +1476,7 @@ WHERE river_id = ${river_id} AND hws.official=0 - + SELECT DISTINCT @@ -1492,7 +1492,7 @@ - + @@ -1518,31 +1518,31 @@ availble - + - + - + - + - + - + @@ -1559,7 +1559,7 @@ WHERE river_id = ${river_id} AND hws.official=1 - + SELECT DISTINCT @@ -1575,7 +1575,7 @@ - + @@ -1604,7 +1604,7 @@ WHERE river_id = ${river_id} AND hws.official=0 - + SELECT DISTINCT @@ -1620,7 +1620,7 @@ - + @@ -1651,13 +1651,13 @@ WHERE b.river_id = ${river_id} AND b.kind_id <> 0 - + - + @@ -1671,17 +1671,17 @@ AND kind_id = 0 OR kind_id IS NULL - + - + - + - + @@ -1694,13 +1694,13 @@ - + - + @@ -1711,7 +1711,7 @@ SELECT count(*) as km_exists, name as name FROM fixpoints WHERE river_id = ${river_id} GROUP BY name - + @@ -1719,7 +1719,7 @@ - + @@ -1738,7 +1738,7 @@ WHERE river_id = ${river_id} AND kind = 111 GROUP BY name, kind - + @@ -1746,7 +1746,7 @@ - + @@ -1757,7 +1757,7 @@ WHERE river_id = ${river_id} AND kind = 112 GROUP BY name, kind - + @@ -1765,7 +1765,7 @@ - + @@ -1778,7 +1778,7 @@ WHERE river_id = ${river_id} AND kind = 121 GROUP BY name, kind - + @@ -1786,7 +1786,7 @@ - + @@ -1797,7 +1797,7 @@ WHERE river_id = ${river_id} AND kind = 122 GROUP BY name, kind - + @@ -1805,7 +1805,7 @@ - + @@ -1881,13 +1881,13 @@ description AS bedh_descr FROM bed_height_single WHERE river_id = ${river_id} - + - + @@ -1900,17 +1900,17 @@ description AS bedh_descr FROM bed_height_epoch WHERE river_id = ${river_id} - + - + - + @@ -1952,20 +1952,20 @@ AND EXISTS ( SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river}) - + - + - + SELECT m.id AS a_id, @@ -1990,24 +1990,24 @@ AND k = 'river' AND v = ${river}) - + SELECT ol.wst_id AS wstid, ol.wst_column_pos AS wstcolpos, ol.name AS olname, ol.value AS oval FROM official_q_values ol WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2)) AND ol.gauge_name = ${gaugy} - + - + - + - + @@ -2018,7 +2018,7 @@ - + @@ -2027,7 +2027,7 @@ FROM outs as o, facets as f, artifacts as a WHERE f.name = 'w_differences' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} - + @@ -2035,11 +2035,11 @@ - + - + @@ -2050,7 +2050,7 @@ - + @@ -2059,7 +2059,7 @@ FROM outs as o, facets as f, artifacts as a WHERE f.name = 'reference_curve' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} - + @@ -2067,11 +2067,11 @@ - + - + @@ -2081,7 +2081,7 @@ - + @@ -2090,7 +2090,7 @@ FROM outs as o, facets as f, artifacts as a WHERE f.name = 'computed_discharge_curve.q' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} - + @@ -2098,11 +2098,11 @@ - + - + @@ -2113,7 +2113,7 @@ - + @@ -2122,7 +2122,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'cross_section' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2132,7 +2132,7 @@ - + @@ -2140,21 +2140,21 @@ - + - + - + - + @@ -2163,7 +2163,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2173,7 +2173,7 @@ - + @@ -2181,21 +2181,21 @@ - + - + - + - + @@ -2204,7 +2204,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'fix_longitudinal_section_curve' - + @@ -2215,7 +2215,7 @@ - + @@ -2223,20 +2223,20 @@ - + - + - + - + @@ -2245,7 +2245,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2255,7 +2255,7 @@ - + @@ -2263,21 +2263,21 @@ - + - + - + - + @@ -2286,7 +2286,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'fix_derivate_curve' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2296,7 +2296,7 @@ - + @@ -2304,21 +2304,21 @@ - + - + - + - + @@ -2327,7 +2327,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'fix_wq_curve' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2337,7 +2337,7 @@ - + @@ -2345,21 +2345,21 @@ - + - + - + - + @@ -2368,7 +2368,7 @@ FROM outs as o, facets as f, artifacts as a WHERE (f.name = 'duration_curve.q' or f.name = 'duration_curve.w') and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} - + @@ -2376,11 +2376,11 @@ - + - + @@ -2392,7 +2392,7 @@ - + @@ -2401,7 +2401,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2411,7 +2411,7 @@ - + @@ -2419,14 +2419,14 @@ - + - + - + @@ -2437,7 +2437,7 @@ - + @@ -2446,7 +2446,7 @@ FROM outs as o, facets as f, artifacts as a WHERE f.name = 'floodmap.wsplgen' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} - + @@ -2454,11 +2454,11 @@ - + - + @@ -2468,7 +2468,7 @@ - + @@ -2481,7 +2481,7 @@ - + @@ -2489,12 +2489,12 @@ - + - + @@ -2504,7 +2504,7 @@ - + @@ -2516,7 +2516,7 @@ - + @@ -2524,12 +2524,12 @@ - + - + @@ -2540,7 +2540,7 @@ FROM outs WHERE artifact_id = ${a_id} AND name = 'floodmap' - + SELECT name AS facet_name, num as facet_num, description AS facet_description @@ -2549,7 +2549,7 @@ ORDER BY num ASC, name DESC - + @@ -2557,10 +2557,10 @@ - + - + diff -r bc140668db82 -r eeac800eb4cd flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Thu Mar 28 18:49:48 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Fri Mar 29 11:07:24 2013 +0100 @@ -323,13 +323,13 @@ /** * Kind of foreach over results of a statement within a context. */ - protected void elements(Node parent, Element current) + protected void foreach(Node parent, Element current) throws SQLException { - log.debug("dc:elements"); + log.debug("dc:for-each"); if (connectionsStack.isEmpty()) { - log.warn("dc:elements without having results"); + log.warn("dc:for-each without having results"); return; } @@ -343,7 +343,7 @@ int S = subs.getLength(); if (S == 0) { - log.debug("dc:elements has no children"); + log.debug("dc:for-each has no children"); return; } @@ -717,8 +717,8 @@ else if ("element".equals(localName)) { element(parent, curr); } - else if ("elements".equals(localName)) { - elements(parent, curr); + else if ("for-each".equals(localName)) { + foreach(parent, curr); } else if ("filter".equals(localName)) { filter(parent, curr);