comparison flys-artifacts/doc/conf/meta-data-user.xml @ 1030:c586b6220f35

Datacage: Added a development mode for recommendations flys-artifacts/trunk@2490 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 11 Aug 2011 15:08:24 +0000
parents 5cb84ceee2a0
children 9c0f981cd22d
comparison
equal deleted inserted replaced
1029:3f3988bb6284 1030:c586b6220f35
12 <dc:elements> 12 <dc:elements>
13 <dc:context> 13 <dc:context>
14 <dc:statement>SELECT id AS collection_id FROM collections WHERE user_id = ${user_id}</dc:statement> 14 <dc:statement>SELECT id AS collection_id FROM collections WHERE user_id = ${user_id}</dc:statement>
15 <dc:elements> 15 <dc:elements>
16 <dc:context> 16 <dc:context>
17 <dc:statement>SELECT a.id AS a_id, a.state AS a_state, a.gid as a_gid FROM 17 <dc:statement>SELECT a.id AS a_id, a.state AS a_state, a.gid AS a_gid, a.creation AS a_creation FROM
18 collection_items ci JOIN artifacts a ON ci.artifact_id = a.id 18 collection_items ci JOIN artifacts a ON ci.artifact_id = a.id
19 WHERE collection_id = ${collection_id} AND a.state = ${current-state-id} AND a.gid &lt;&gt; CAST(${artifact-id} AS uuid) 19 WHERE collection_id = ${collection_id} AND a.state = ${current-state-id} AND a.gid &lt;&gt; CAST(${artifact-id} AS uuid)
20 AND EXISTS (SELECT id FROM artifact_data WHERE artifact_id = a.id AND k = 'river' AND v = ${river}) 20 AND EXISTS (SELECT id FROM artifact_data WHERE artifact_id = a.id AND k = 'river' AND v = ${river})
21 ORDER BY a.creation DESC
21 </dc:statement> 22 </dc:statement>
22 <dc:comment> --- TODO: We only need the 'master' artifacts! --- </dc:comment> 23 <dc:comment> --- TODO: We only need the 'master' artifacts! --- </dc:comment>
23 <dc:elements> 24 <dc:elements>
24 <dc:choose> 25 <dc:choose>
25 <dc:when test="$current-state-id = 'state.winfo.waterlevel'"> 26 <dc:when test="$current-state-id = 'state.winfo.waterlevel'">
29 <dc:context> 30 <dc:context>
30 <dc:statement>SELECT name AS facet_name, num as facet_num, description AS facet_description 31 <dc:statement>SELECT name AS facet_name, num as facet_num, description AS facet_description
31 FROM facets WHERE out_id = ${out_id} ORDER BY num ASC, name DESC 32 FROM facets WHERE out_id = ${out_id} ORDER BY num ASC, name DESC
32 </dc:statement> 33 </dc:statement>
33 <longitudinal_section_columns> 34 <longitudinal_section_columns>
34 <dc:attribute name="description" value="${river} TODO: More infos about parameters!"/> 35 <dc:attribute name="description" value="${river} ${a_creation}"/>
35 <dc:elements> 36 <dc:elements>
36 <dc:element name="${facet_name}"> 37 <dc:element name="${facet_name}">
37 <dc:attribute name="description" value="${facet_description}"/> 38 <dc:attribute name="description" value="${facet_description}"/>
38 <dc:attribute name="num" value="${facet_num}"/> 39 <dc:attribute name="num" value="${facet_num}"/>
39 <dc:attribute name="factory" value="TODO"/> 40 <dc:attribute name="factory" value="TODO"/>

http://dive4elements.wald.intevation.org