comparison flys-artifacts/doc/conf/meta-data.xml @ 1790:d3a0d55dff63

Add static data conf to w-difference / datacage. flys-artifacts/trunk@3113 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 28 Oct 2011 12:41:10 +0000
parents 205eb6f124a5
children 5e9696c32f04
comparison
equal deleted inserted replaced
1789:205eb6f124a5 1790:d3a0d55dff63
6 <dc:statement> 6 <dc:statement>
7 SELECT id AS river_id, name as river_name FROM rivers 7 SELECT id AS river_id, name as river_name FROM rivers
8 WHERE lower(name) LIKE lower(${river}) 8 WHERE lower(name) LIKE lower(${river})
9 </dc:statement> 9 </dc:statement>
10 <dc:elements> 10 <dc:elements>
11 <dc:comment>
12 Base-data macros (mostly data imported from wst-files)
13 </dc:comment>
14 <dc:macro name="basedata_0">
15 <dc:comment comment=" BASEDATA ---------------------------"/>
16 <basedata>
17 <dc:context>
18 <dc:statement>
19 SELECT id AS prot_id,
20 description AS prot_description
21 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
22 </dc:statement>
23 <dc:elements>
24 <basedata>
25 <dc:attribute name="name" value="${prot_description}"/>
26 <dc:context>
27 <dc:statement>
28 SELECT id AS prot_column_id,
29 name AS prot_column_name,
30 position AS prot_rel_pos
31 FROM wst_columns WHERE wst_id = ${prot_id}
32 ORDER by position
33 </dc:statement>
34 <dc:elements>
35 <column>
36 <dc:attribute name="name" value="${prot_column_name}"/>
37 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${prot_id}"/>
38 <dc:attribute name="factory" value="staticwkms"/>
39 </column>
40 </dc:elements>
41 </dc:context>
42 </basedata>
43 </dc:elements>
44 </dc:context>
45 </basedata>
46 </dc:macro>
47 <dc:macro name="basedata_1_additionals">
48 <dc:comment comment=".ZUS -------------------------------"/>
49 <addtionals>
50 <dc:context>
51 <dc:statement>
52 SELECT id AS prot_id,
53 description AS prot_description
54 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
55 </dc:statement>
56 <dc:elements>
57 <additional>
58 <dc:attribute name="name" value="${prot_description}"/>
59 <dc:context>
60 <dc:statement>
61 SELECT id AS prot_column_id,
62 name AS prot_column_name,
63 position AS prot_rel_pos
64 FROM wst_columns WHERE wst_id = ${prot_id}
65 ORDER by position
66 </dc:statement>
67 <dc:elements>
68 <column>
69 <dc:attribute name="name" value="${prot_column_name}"/>
70 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
71 <dc:attribute name="factory" value="staticwkms"/>
72 </column>
73 </dc:elements>
74 </dc:context>
75 </additional>
76 </dc:elements>
77 </dc:context>
78 </addtionals>
79 </dc:macro>
11 <river> 80 <river>
12 <dc:attribute name="name" value="${river_name}"/> 81 <dc:attribute name="name" value="${river_name}"/>
13 <dc:if test="dc:contains($artifact-outs, 'w_differences')"> 82 <dc:if test="dc:contains($artifact-outs, 'w_differences')">
14 <annotation> 83 <annotation>
15 <dc:attribute name="factory" value="annotations"/> 84 <dc:attribute name="factory" value="annotations"/>
16 <dc:attribute name="ids" value="${river_id}"/> 85 <dc:attribute name="ids" value="${river_id}"/>
17 </annotation> 86 </annotation>
18 </dc:if> 87 </dc:if>
19 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')"> 88 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences'))">
20 <dc:choose> 89 <dc:choose>
21 <dc:when test="dc:contains($parameters, 'recommended')"> 90 <dc:when test="dc:contains($parameters, 'recommended')">
22 </dc:when> 91 </dc:when>
23 <dc:otherwise> 92 <dc:otherwise>
24 <dc:comment comment=" BASEDATA ---------------------------"/> 93 <dc:call-macro name="basedata_0"/>
25 <basedata> 94 <dc:call-macro name="basedata_1_additionals"/>
26 <dc:context>
27 <dc:statement>
28 SELECT id AS prot_id,
29 description AS prot_description
30 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
31 </dc:statement>
32 <dc:elements>
33 <basedata>
34 <dc:attribute name="name" value="${prot_description}"/>
35 <dc:context>
36 <dc:statement>
37 SELECT id AS prot_column_id,
38 name AS prot_column_name,
39 position AS prot_rel_pos
40 FROM wst_columns WHERE wst_id = ${prot_id}
41 ORDER by position
42 </dc:statement>
43 <dc:elements>
44 <column>
45 <dc:attribute name="name" value="${prot_column_name}"/>
46 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${prot_id}"/>
47 <dc:attribute name="factory" value="staticwkms"/>
48 </column>
49 </dc:elements>
50 </dc:context>
51 </basedata>
52 </dc:elements>
53 </dc:context>
54 </basedata>
55 <dc:comment comment=".ZUS -------------------------------"/>
56 <addtionals>
57 <dc:context>
58 <dc:statement>
59 SELECT id AS prot_id,
60 description AS prot_description
61 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
62 </dc:statement>
63 <dc:elements>
64 <additional>
65 <dc:attribute name="name" value="${prot_description}"/>
66 <dc:context>
67 <dc:statement>
68 SELECT id AS prot_column_id,
69 name AS prot_column_name,
70 position AS prot_rel_pos
71 FROM wst_columns WHERE wst_id = ${prot_id}
72 ORDER by position
73 </dc:statement>
74 <dc:elements>
75 <column>
76 <dc:attribute name="name" value="${prot_column_name}"/>
77 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
78 <dc:attribute name="factory" value="staticwkms"/>
79 </column>
80 </dc:elements>
81 </dc:context>
82 </additional>
83 </dc:elements>
84 </dc:context>
85 </addtionals>
86 <dc:comment comment=" FIXATIONS ---------------------------"/> 95 <dc:comment comment=" FIXATIONS ---------------------------"/>
87 <fixations> 96 <fixations>
88 <dc:context> 97 <dc:context>
89 <dc:statement> 98 <dc:statement>
90 SELECT id AS prot_id, 99 SELECT id AS prot_id,

http://dive4elements.wald.intevation.org