changeset 1054:1f3e944a805c

Datacage: filter by out in user specific part flys-artifacts/trunk@2521 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 22 Aug 2011 13:07:26 +0000 (2011-08-22)
parents bfc2ed20b87c
children 61c051e53f9b
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Aug 22 10:40:15 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Aug 22 13:07:26 2011 +0000
@@ -1,3 +1,7 @@
+2011-08-22  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* doc/conf/meta-data.xml: Filter by outs in user template part.
+
 2011-08-22  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/artifacts/winfo.xml: Defined an input value for the GeoJSON
--- a/flys-artifacts/doc/conf/meta-data.xml	Mon Aug 22 10:40:15 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Mon Aug 22 13:07:26 2011 +0000
@@ -24,7 +24,7 @@
               </dc:statement>
               <dc:elements>
                 <dc:choose>
-                  <dc:when test="$current-state-id = 'state.winfo.waterlevel'">
+                  <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')">
                     <dc:context>
                       <dc:statement>SELECT id AS out_id FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
                       </dc:statement>
@@ -39,8 +39,9 @@
                                 <dc:element name="${facet_name}">
                                   <dc:attribute name="description" value="${facet_description}"/>
                                   <dc:attribute name="num" value="${facet_num}"/>
-                                  <dc:attribute name="factory" value="TODO"/>
+                                  <dc:attribute name="factory" value="winfo"/>
                                   <dc:attribute name="artifact-id" value="${a_gid}"/>
+                                  <dc:attribute name="out" value="longitudinal_section"/>
                                 </dc:element>
                               </dc:elements>
                           </longitudinal_section_columns>

http://dive4elements.wald.intevation.org