[Dive4elements-commits] [PATCH] Fix other buildings

Wald Commits scm-commit at wald.intevation.org
Tue Apr 23 18:48:26 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1366735677 -7200
# Node ID 53cff50918b12ffee3739224d87c4396853ad76a
# Parent  202a73ce67045e689286489c1bf8c005a8bfff98
Fix other buildings.

    Previously there was one level to many so that for each building
    a new folder was created

diff -r 202a73ce6704 -r 53cff50918b1 flys-artifacts/doc/conf/meta-data.xml
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue Apr 23 17:30:20 2013 +0200
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue Apr 23 18:47:57 2013 +0200
@@ -1581,24 +1581,23 @@
             <dc:context>
               <dc:statement>
                 SELECT DISTINCT
-                b.kind_id AS building_kind_id,
                 b.name AS building_name,
-                bk.name AS building_kind
+                bk.name AS building_kind,
+                b.kind_id AS building_kind_id
                 FROM buildings b
                 JOIN building_kinds bk ON b.kind_id = bk.id
                 WHERE river_id = ${river_id}
-                AND kind_id = 0 OR
-                kind_id IS NULL
+                AND kind_id = 0
               </dc:statement>
-              <dc:for-each>
-                <dc:element name="${building_kind}">
+              <dc:if test="dc:has-result()">
+                <other>
                   <dc:for-each>
                     <buildings description="{$building_name}"
-                               factory="wmsbuildingsfactory"
-                               ids="{$river_id};{$building_name}"/>
+                      factory="wmsbuildingsfactory"
+                      ids="{$river_id};{$building_name}"/>
                   </dc:for-each>
-                </dc:element>
-              </dc:for-each>
+                </other>
+              </dc:if>
             </dc:context>
             <dc:context>
               <dc:statement>


More information about the Dive4elements-commits mailing list