Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 8298:5dfb3ff98bc6
Purge clash of out-names, resulting hacks and tests for not existing outs and give some more meaningful names.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Fri, 19 Sep 2014 15:31:03 +0200 |
parents | 6f866709bbff |
children | de42523b2e27 |
comparison
equal
deleted
inserted
replaced
8297:6f866709bbff | 8298:5dfb3ff98bc6 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage"> | 2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage"> |
3 <datacage> | 3 <datacage> |
4 | 4 |
5 <dc:comment> | 5 <dc:call-macro name="load-user"/> |
6 User specific part | |
7 ------------------ | |
8 Since rev 4b29bb2c785f we (only?) need this hack to suppress | |
9 user-content in DEM-selection during floodmap parameterisation. | |
10 </dc:comment> | |
11 <dc:if test="dc:contains($parameters, 'user-id') and | |
12 not(dc:contains($artifact-outs, 'floodmap-hws')) and | |
13 not($current-state-id = 'state.winfo.uesk.dgm')"> | |
14 <dc:call-macro name="load-user"/> | |
15 </dc:if> | |
16 | 6 |
17 <dc:call-macro name="load-system"/> | 7 <dc:call-macro name="load-system"/> |
18 | 8 |
19 <dc:macro name="load-system"> | 9 <dc:macro name="load-system"> |
20 <dc:context connection="system"> | 10 <dc:context connection="system"> |
100 <dc:call-macro name="basedata_6_delta_w"/> | 90 <dc:call-macro name="basedata_6_delta_w"/> |
101 </dc:when> | 91 </dc:when> |
102 <dc:when test="$out = 'floodmap'"> | 92 <dc:when test="$out = 'floodmap'"> |
103 <dc:call-macro name="flood-map-recommended"/> | 93 <dc:call-macro name="flood-map-recommended"/> |
104 </dc:when> | 94 </dc:when> |
105 <dc:when test="$out = 'floodmap-hws'"> | |
106 <dc:call-macro name="flood-map-recommended"/> | |
107 </dc:when> | |
108 <dc:when test="$out = 'minfo-heights'"> | |
109 <dc:call-macro name="minfo-heights"/> | |
110 </dc:when> | |
111 <dc:when test="$out = 'minfo-heights-epoch'"> | |
112 <bedheights> | |
113 <dc:call-macro name="bed-heights-epoch"/> | |
114 </bedheights> | |
115 </dc:when> | |
116 <dc:when test="$out = 'sedimentload_ls'"> | 95 <dc:when test="$out = 'sedimentload_ls'"> |
117 <dc:call-macro name="annotations"/> | 96 <dc:call-macro name="annotations"/> |
118 <dc:call-macro name="sedimentload_off_epochs"/> | 97 <dc:call-macro name="sedimentload_off_epochs"/> |
119 </dc:when> | 98 </dc:when> |
120 <dc:when test="$out = 'bed_longitudinal_section'"> | 99 <dc:when test="$out = 'bed_longitudinal_section'"> |
131 Non - Recommendations (offered to user to choose additional data from). | 110 Non - Recommendations (offered to user to choose additional data from). |
132 </dc:comment> | 111 </dc:comment> |
133 <dc:iterate var="out" container="artifact-outs"> | 112 <dc:iterate var="out" container="artifact-outs"> |
134 <dc:message>Non Rec out iteration for: {$out}</dc:message> | 113 <dc:message>Non Rec out iteration for: {$out}</dc:message> |
135 <dc:choose> | 114 <dc:choose> |
136 <dc:when test="$out = 'minfo-heights-diff'"> | 115 <dc:when test="$out = 'minfo_diff_panel'"> |
137 <dc:call-macro name="minfo-heights-diff"/> | 116 <dc:call-macro name="minfo-heights-diff"/> |
138 </dc:when> | 117 </dc:when> |
139 <dc:when test="$out = 'cross_section'"> | 118 <dc:when test="$out = 'cross_section'"> |
140 <dc:call-macro name="basedata_0"/> | 119 <dc:call-macro name="basedata_0"/> |
141 <dc:call-macro name="basedata_1_additionals"/> | 120 <dc:call-macro name="basedata_1_additionals"/> |
210 <dc:call-macro name="longitudinal-section-prototype"/> | 189 <dc:call-macro name="longitudinal-section-prototype"/> |
211 </dc:when> | 190 </dc:when> |
212 <dc:when test="$out = 'bed_difference_year'"> | 191 <dc:when test="$out = 'bed_difference_year'"> |
213 <dc:call-macro name="longitudinal-section-prototype"/> | 192 <dc:call-macro name="longitudinal-section-prototype"/> |
214 </dc:when> | 193 </dc:when> |
194 <dc:when test="$out = 'floodmap_dem_panel'"> | |
195 <dc:call-macro name="flood-map-dem"/> | |
196 </dc:when> | |
215 <dc:when test="$out = 'floodmap'"> | 197 <dc:when test="$out = 'floodmap'"> |
216 <dc:choose> | 198 <dc:call-macro name="flood-map-complete"/> |
217 <dc:when test="dc:contains($parameters, 'dem')"> | 199 </dc:when> |
218 <dc:call-macro name="flood-map-dem"/> | 200 <dc:when test="$out = 'floodmap_hws_panel'"> |
219 </dc:when> | 201 <hws> |
220 <dc:when test="dc:contains($parameters, 'hws')"> | 202 <dc:call-macro name="flood-map-hws-lines"/> |
221 <hws> | 203 <dc:call-macro name="flood-map-hws-points"/> |
222 <dc:call-macro name="flood-map-hws-lines"/> | 204 </hws> |
223 <dc:call-macro name="flood-map-hws-points"/> | |
224 </hws> | |
225 </dc:when> | |
226 <dc:otherwise> | |
227 <dc:call-macro name="flood-map-complete"/> | |
228 </dc:otherwise> | |
229 </dc:choose> | |
230 </dc:when> | |
231 <dc:when test="$out = 'floodmap-hws'"> | |
232 <dc:choose> | |
233 <dc:when test="dc:contains($parameters, 'dem')"> | |
234 <dc:call-macro name="flood-map-dem"/> | |
235 </dc:when> | |
236 <dc:when test="dc:contains($parameters, 'hws')"> | |
237 <hws> | |
238 <dc:call-macro name="flood-map-hws-lines"/> | |
239 <dc:call-macro name="flood-map-hws-points"/> | |
240 </hws> | |
241 </dc:when> | |
242 <dc:otherwise> | |
243 <dc:call-macro name="flood-map-complete"/> | |
244 </dc:otherwise> | |
245 </dc:choose> | |
246 </dc:when> | 205 </dc:when> |
247 <dc:when test="$out = 'computed_discharge_curve'"> | 206 <dc:when test="$out = 'computed_discharge_curve'"> |
248 <dc:call-macro name="discharge-curve-prototype"/> | 207 <dc:call-macro name="discharge-curve-prototype"/> |
249 <dc:call-macro name="basedata_0_wq"/> | 208 <dc:call-macro name="basedata_0_wq"/> |
250 <dc:call-macro name="basedata_1_additionals_wq"/> | 209 <dc:call-macro name="basedata_1_additionals_wq"/> |
251 <dc:call-macro name="basedata_5_flood-protections"/> | 210 <dc:call-macro name="basedata_5_flood-protections"/> |
252 <computed_discharge_curve> | 211 <computed_discharge_curve> |
253 <dc:call-macro name="mainvalues"/> | 212 <dc:call-macro name="mainvalues"/> |
254 </computed_discharge_curve> | 213 </computed_discharge_curve> |
255 </dc:when> | 214 </dc:when> |
256 <dc:when test="$out = 'minfo-heights'"> | 215 <dc:when test="$out = 'winfo_diff_twin_panel'"> |
257 <dc:call-macro name="minfo-heights"/> | |
258 </dc:when> | |
259 <dc:when test="$out = 'minfo-heights-epoch'"> | |
260 <bedheights> | |
261 <dc:call-macro name="bed-heights-epoch"/> | |
262 </bedheights> | |
263 </dc:when> | |
264 <dc:when test="$out = 'differenceable'"> | |
265 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> | 216 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> |
266 <dc:call-macro name="basedata_0"/> | 217 <dc:call-macro name="basedata_0"/> |
267 <dc:call-macro name="basedata_1_additionals"/> | 218 <dc:call-macro name="basedata_1_additionals"/> |
268 <dc:call-macro name="basedata_2_fixations"/> | 219 <dc:call-macro name="basedata_2_fixations"/> |
269 <dc:call-macro name="basedata_4_heightmarks-points"/> | 220 <dc:call-macro name="basedata_4_heightmarks-points"/> |
270 <dc:call-macro name="basedata_5_flood-protections"/> | 221 <dc:call-macro name="basedata_5_flood-protections"/> |
271 </dc:if> | 222 </dc:if> |
272 </dc:when> | 223 </dc:when> |
273 <dc:when test="$out = 'waterlevels'"> | 224 <dc:when test="$out = 'waterlevels_panel'"> |
274 <dc:call-macro name="basedata_0"/> | 225 <dc:call-macro name="basedata_0"/> |
275 <dc:call-macro name="basedata_1_additionals"/> | 226 <dc:call-macro name="basedata_1_additionals"/> |
276 <dc:call-macro name="basedata_2_fixations"/> | 227 <dc:call-macro name="basedata_2_fixations"/> |
277 <dc:call-macro name="basedata_3_officials"/> | 228 <dc:call-macro name="basedata_3_officials"/> |
278 <dc:call-macro name="basedata_4_heightmarks-points"/> | 229 <dc:call-macro name="basedata_4_heightmarks-points"/> |
349 <dc:call-macro name="waterlevels-fix"/> | 300 <dc:call-macro name="waterlevels-fix"/> |
350 </dc:when> | 301 </dc:when> |
351 <dc:when test="$out = 'duration_curve'"> | 302 <dc:when test="$out = 'duration_curve'"> |
352 <dc:call-macro name="duration-curve"/> | 303 <dc:call-macro name="duration-curve"/> |
353 </dc:when> | 304 </dc:when> |
354 <dc:when test="$out = 'differenceable'"> | 305 <dc:when test="$out = 'winfo_diff_twin_panel'"> |
355 <dc:call-macro name="differenceable-fix"/> | 306 <dc:call-macro name="differences-fix"/> |
356 <dc:call-macro name="differences"/> | 307 <dc:call-macro name="differences"/> |
357 <dc:comment comment="Candidate for:"> | 308 <dc:comment comment="Candidate for:"> |
358 <dc:call-macro name="longitudinal-section-user-prototype"/> | 309 <dc:call-macro name="longitudinal-section-user-prototype"/> |
359 </dc:comment> | 310 </dc:comment> |
360 </dc:when> | 311 </dc:when> |
361 <dc:when test="$out = 'waterlevels'"> | 312 <dc:when test="$out = 'waterlevels_panel'"> |
362 <dc:call-macro name="waterlevels-fix"/> | 313 <dc:call-macro name="waterlevels-fix"/> |
363 <dc:comment comment="Candidate for:"> | 314 <dc:comment comment="Candidate for:"> |
364 <dc:call-macro name="longitudinal-section-user-prototype"/> | 315 <dc:call-macro name="longitudinal-section-user-prototype"/> |
365 </dc:comment> | 316 </dc:comment> |
366 </dc:when> | 317 </dc:when> |
371 <dc:call-macro name="flood-map"/> | 322 <dc:call-macro name="flood-map"/> |
372 </dc:when> | 323 </dc:when> |
373 <dc:when test="$out = 'bedheight_middle'"> | 324 <dc:when test="$out = 'bedheight_middle'"> |
374 <dc:call-macro name="longitudinal-section-user-prototype"/> | 325 <dc:call-macro name="longitudinal-section-user-prototype"/> |
375 </dc:when> | 326 </dc:when> |
376 <dc:when test="$out = 'floodmap-hws'"> | 327 <dc:when test="$out = 'floodmap_hws_panel'"> |
377 <dc:call-macro name="floodmap-hws-user"/> | 328 <dc:call-macro name="floodmap-hws-user"/> |
378 </dc:when> | 329 </dc:when> |
379 <dc:when test="$out = 'flow_velocity'"> | 330 <dc:when test="$out = 'flow_velocity'"> |
380 <dc:call-macro name="longitudinal-section-user-prototype"/> | 331 <dc:call-macro name="longitudinal-section-user-prototype"/> |
381 </dc:when> | 332 </dc:when> |
857 </dc:if> | 808 </dc:if> |
858 </dc:filter> | 809 </dc:filter> |
859 </dc:macro> | 810 </dc:macro> |
860 | 811 |
861 <dc:comment comment="For building differences." /> | 812 <dc:comment comment="For building differences." /> |
862 <dc:macro name="differenceable-fix"> | 813 <dc:macro name="differences-fix"> |
863 <dc:comment> | |
864 No diffs between beddiffs and others, for now. | |
865 <beddifferences> | |
866 <dc:call-macro name="bedheight_differences"/> | |
867 </beddifferences> | |
868 </dc:comment> | |
869 <dc:comment comment="Vollmer curves need own factory"/> | 814 <dc:comment comment="Vollmer curves need own factory"/> |
870 <dc:filter expr="$a_state = 'state.fix.vollmer.compute' and $facet_name = 'longitudinal_section.w'"> | 815 <dc:filter expr="$a_state = 'state.fix.vollmer.compute' and $facet_name = 'longitudinal_section.w'"> |
871 <dc:if test="dc:has-result()"> | 816 <dc:if test="dc:has-result()"> |
872 <vollmer_waterlevels> | 817 <vollmer_waterlevels> |
873 <dc:call-macro name="collection-group"> | 818 <dc:call-macro name="collection-group"> |