comparison artifacts/doc/conf/meta-data.xml @ 6072:8320eb8ed8c8

meta-data.xml: Wrap user-content in user-range to use 'range intelligence'.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 23 May 2013 11:23:54 +0200
parents 038e60fdd49a
children f0417a8e4c39
comparison
equal deleted inserted replaced
6071:038e60fdd49a 6072:8320eb8ed8c8
260 </dc:call-macro> 260 </dc:call-macro>
261 </dc:call-macro> 261 </dc:call-macro>
262 </dc:macro> 262 </dc:macro>
263 263
264 <dc:macro name="generate-user-content"> 264 <dc:macro name="generate-user-content">
265 <dc:call-macro name="km-filtered-userdata"> 265 <dc:call-macro name="user-range">
266 <dc:iterate var="out" container="artifact-outs"> 266 <dc:call-macro name="km-filtered-userdata">
267 <dc:choose> 267 <dc:iterate var="out" container="artifact-outs">
268 <dc:when test="$out = 'longitudinal_section'"> 268 <dc:choose>
269 <dc:call-macro name="longitudinal"/> 269 <dc:when test="$out = 'longitudinal_section'">
270 <dc:call-macro name="differences"/> 270 <dc:call-macro name="longitudinal"/>
271 <dc:call-macro name="officiallines_user"/> 271 <dc:call-macro name="differences"/>
272 </dc:when> 272 <dc:call-macro name="officiallines_user"/>
273 <dc:when test="$out = 'discharge_longitudinal_section'"> 273 </dc:when>
274 <dc:call-macro name="longitudinal"/> 274 <dc:when test="$out = 'discharge_longitudinal_section'">
275 <dc:call-macro name="differences"/> 275 <dc:call-macro name="longitudinal"/>
276 </dc:when> 276 <dc:call-macro name="differences"/>
277 <dc:when test="$out = 'w_differences'"> 277 </dc:when>
278 <dc:call-macro name="longitudinal"/> 278 <dc:when test="$out = 'w_differences'">
279 <dc:call-macro name="differences"/> 279 <dc:call-macro name="longitudinal"/>
280 </dc:when> 280 <dc:call-macro name="differences"/>
281 <dc:when test="$out = 'fix_deltawt_curve'"> 281 </dc:when>
282 <dc:call-macro name="delta-wt"/> 282 <dc:when test="$out = 'fix_deltawt_curve'">
283 </dc:when> 283 <dc:call-macro name="delta-wt"/>
284 <dc:when test="$out = 'reference_curve'"> 284 </dc:when>
285 <dc:call-macro name="reference-curves"/> 285 <dc:when test="$out = 'reference_curve'">
286 </dc:when> 286 <dc:call-macro name="reference-curves"/>
287 <dc:when test="$out = 'computed_discharge_curve'"> 287 </dc:when>
288 <dc:call-macro name="computed-discharge-curve"/> 288 <dc:when test="$out = 'computed_discharge_curve'">
289 </dc:when> 289 <dc:call-macro name="computed-discharge-curve"/>
290 <dc:when test="$out = 'cross_section'"> 290 </dc:when>
291 <dc:call-macro name="waterlevels"/> 291 <dc:when test="$out = 'cross_section'">
292 </dc:when> 292 <dc:call-macro name="waterlevels"/>
293 <dc:when test="$out = 'fix_longitudinal_section_curve'"> 293 </dc:when>
294 <dc:call-macro name="longitudinal-section"/> 294 <dc:when test="$out = 'fix_longitudinal_section_curve'">
295 </dc:when> 295 <dc:call-macro name="longitudinal-section"/>
296 <dc:when test="$out = 'fix_derivate_curve'"> 296 </dc:when>
297 <dc:call-macro name="fix-derivate-curve"/> 297 <dc:when test="$out = 'fix_derivate_curve'">
298 </dc:when> 298 <dc:call-macro name="fix-derivate-curve"/>
299 <dc:when test="$out = 'fix_wq_curve'"> 299 </dc:when>
300 <dc:call-macro name="fix-wq-curve"/> 300 <dc:when test="$out = 'fix_wq_curve'">
301 </dc:when> 301 <dc:call-macro name="fix-wq-curve"/>
302 <dc:when test="$out = 'duration_curve'"> 302 </dc:when>
303 <dc:call-macro name="duration-curve"/> 303 <dc:when test="$out = 'duration_curve'">
304 </dc:when> 304 <dc:call-macro name="duration-curve"/>
305 <dc:when test="$out = 'waterlevels'"> 305 </dc:when>
306 <dc:call-macro name="basedata_0"/> 306 <dc:when test="$out = 'waterlevels'">
307 <dc:call-macro name="basedata_1_additionals"/> 307 <dc:call-macro name="basedata_0"/>
308 <dc:call-macro name="basedata_2_fixations"/> 308 <dc:call-macro name="basedata_1_additionals"/>
309 <dc:call-macro name="basedata_4_heightmarks-points"/> 309 <dc:call-macro name="basedata_2_fixations"/>
310 <dc:call-macro name="basedata_5_flood-protections"/> 310 <dc:call-macro name="basedata_4_heightmarks-points"/>
311 <dc:call-macro name="waterlevels-fix"/> 311 <dc:call-macro name="basedata_5_flood-protections"/>
312 </dc:when> 312 <dc:call-macro name="waterlevels-fix"/>
313 <dc:when test="$out = 'fix_wq_curve'"> 313 </dc:when>
314 <dc:call-macro name="waterlevels-fix"/> 314 <dc:when test="$out = 'fix_wq_curve'">
315 </dc:when> 315 <dc:call-macro name="waterlevels-fix"/>
316 <dc:when test="$out = 'floodmap'"> 316 </dc:when>
317 <dc:call-macro name="flood-map"/> 317 <dc:when test="$out = 'floodmap'">
318 </dc:when> 318 <dc:call-macro name="flood-map"/>
319 <dc:when test="$out = 'map'"> 319 </dc:when>
320 <dc:call-macro name="flood-map"/> 320 <dc:when test="$out = 'map'">
321 </dc:when> 321 <dc:call-macro name="flood-map"/>
322 <dc:when test="$out = 'bedheight_middle'"> 322 </dc:when>
323 <dc:call-macro name="waterlevels-discharge"/> 323 <dc:when test="$out = 'bedheight_middle'">
324 <dc:call-macro name="waterlevels-fix"/> 324 <dc:call-macro name="waterlevels-discharge"/>
325 </dc:when> 325 <dc:call-macro name="waterlevels-fix"/>
326 <dc:when test="$out = 'floodmap-hws'"> 326 </dc:when>
327 <dc:call-macro name="floodmap-hws-user"/> 327 <dc:when test="$out = 'floodmap-hws'">
328 </dc:when> 328 <dc:call-macro name="floodmap-hws-user"/>
329 <dc:when test="$out = 'flow_velocity'"> 329 </dc:when>
330 <dc:call-macro name="bedquality-bed"/> 330 <dc:when test="$out = 'flow_velocity'">
331 <dc:call-macro name="bedquality-load"/> 331 <dc:call-macro name="bedquality-bed"/>
332 </dc:when> 332 <dc:call-macro name="bedquality-load"/>
333 <dc:when test="$out = 'bed_longitudinal_section'"> 333 </dc:when>
334 <dc:call-macro name="bedquality-bed"/> 334 <dc:when test="$out = 'bed_longitudinal_section'">
335 <dc:call-macro name="bedquality-load"/> 335 <dc:call-macro name="bedquality-bed"/>
336 <dc:call-macro name="bedquality-density"/> 336 <dc:call-macro name="bedquality-load"/>
337 <dc:call-macro name="bedquality-porosity"/> 337 <dc:call-macro name="bedquality-density"/>
338 </dc:when> 338 <dc:call-macro name="bedquality-porosity"/>
339 <dc:when test="$out = 'sedimentload_ls'"> 339 </dc:when>
340 <dc:call-macro name="differences"/> 340 <dc:when test="$out = 'sedimentload_ls'">
341 <dc:call-macro name="bedheight-differences"/> 341 <dc:call-macro name="differences"/>
342 <dc:call-macro name="flow-velocity"/> 342 <dc:call-macro name="bedheight-differences"/>
343 <dc:call-macro name="sediment-load"/> 343 <dc:call-macro name="flow-velocity"/>
344 </dc:when> 344 <dc:call-macro name="sediment-load"/>
345 <dc:when test="$out = 'bed_difference_year'"> 345 </dc:when>
346 <dc:call-macro name="waterlevels-discharge"/> 346 <dc:when test="$out = 'bed_difference_year'">
347 <dc:call-macro name="bedheight-differences"/> 347 <dc:call-macro name="waterlevels-discharge"/>
348 <dc:call-macro name="differences"/> 348 <dc:call-macro name="bedheight-differences"/>
349 <dc:call-macro name="waterlevels-fix"/> 349 <dc:call-macro name="differences"/>
350 <dc:call-macro name="delta-wt-ls"/> 350 <dc:call-macro name="waterlevels-fix"/>
351 </dc:when> 351 <dc:call-macro name="delta-wt-ls"/>
352 <dc:when test="$out = 'bed_difference_epoch'"> 352 </dc:when>
353 <dc:call-macro name="waterlevels-discharge"/> 353 <dc:when test="$out = 'bed_difference_epoch'">
354 <dc:call-macro name="bedheight-differences"/> 354 <dc:call-macro name="waterlevels-discharge"/>
355 <dc:call-macro name="differences"/> 355 <dc:call-macro name="bedheight-differences"/>
356 <dc:call-macro name="waterlevels-fix"/> 356 <dc:call-macro name="differences"/>
357 <dc:call-macro name="delta-wt-ls"/> 357 <dc:call-macro name="waterlevels-fix"/>
358 </dc:when> 358 <dc:call-macro name="delta-wt-ls"/>
359 </dc:choose> 359 </dc:when>
360 </dc:iterate> 360 </dc:choose>
361 </dc:iterate>
362 </dc:call-macro>
361 </dc:call-macro> 363 </dc:call-macro>
362 </dc:macro> 364 </dc:macro>
363 365
364 <!-- Macros to load user data --> 366 <!-- Macros to load user data -->
365 367
2621 <dc:macro-body/> 2623 <dc:macro-body/>
2622 </dc:context> 2624 </dc:context>
2623 </dc:macro> 2625 </dc:macro>
2624 2626
2625 <dc:macro name="km-filtered-userdata"> 2627 <dc:macro name="km-filtered-userdata">
2626 <dc:context connection="user"> 2628 <dc:context connection="user">
2629 <dc:comment>Select collections and masterartifacts.</dc:comment>
2627 <dc:statement> 2630 <dc:statement>
2628 SELECT c.name AS collection_name, 2631 SELECT c.name AS collection_name,
2629 ma.id AS a_id, 2632 ma.id AS a_id,
2630 ma.state AS a_state, 2633 ma.state AS a_state,
2631 ma.gid AS a_gid, 2634 ma.gid AS a_gid,

http://dive4elements.wald.intevation.org