diff flys-artifacts/doc/conf/meta-data.xml @ 1716:3ca999f507b7

flys/issue314: Variables in datacage are now case insensitive. flys-artifacts/trunk@2994 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 17 Oct 2011 15:53:03 +0000
parents 91d038c7aae5
children 6068b6c90a19
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Mon Oct 17 14:55:45 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Mon Oct 17 15:53:03 2011 +0000
@@ -312,14 +312,20 @@
                         ORDER BY c.creation DESC
           </dc:statement>
           <dc:elements>
+            <dc:comment><!--
+            <hello_collection><dc:attribute name="description" value="Collection: id=${collection_id} name='${collection_name}'"/></hello_collection>
+            --></dc:comment>
             <dc:context>
-              <dc:statement>SELECT id AS a_id, state AS a_state, gid AS a_gid, creation AS a_creation
+              <dc:statement>SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
                             FROM   master_artifacts m
-                            WHERE  collection_id = ${collection_id} AND gid &lt;&gt; CAST(${artifact-id} AS uuid)
-                                   AND EXISTS (
-                                      SELECT id FROM artifact_data WHERE artifact_id = m.id AND k = 'river' AND v = ${river})
+                            WHERE  m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
+                            AND EXISTS (
+                                SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
               </dc:statement>
               <dc:elements>
+              <dc:comment><!--
+                <hello_artifact><dc:attribute name="description" value="Artifact UUID: ${a_gid}"/></hello_artifact>
+              --></dc:comment>
                 <dc:choose>
 
 

http://dive4elements.wald.intevation.org