comparison flys-artifacts/doc/conf/meta-data.xml @ 1657:91d038c7aae5

Bugfix: #328 Improved datacage configuration and labels for selected waterlevels. flys-artifacts/trunk@2854 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 28 Sep 2011 14:01:00 +0000
parents be8b5c06a1f8
children 3ca999f507b7
comparison
equal deleted inserted replaced
1656:94732906b094 1657:91d038c7aae5
304 ------------------ 304 ------------------
305 </dc:comment> 305 </dc:comment>
306 <dc:when test="dc:contains($parameters, 'user-id')"> 306 <dc:when test="dc:contains($parameters, 'user-id')">
307 <old_calculations> 307 <old_calculations>
308 <dc:context connection="user"> 308 <dc:context connection="user">
309 <dc:statement>SELECT u.id AS user_id, c.id AS collection_id 309 <dc:statement>SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name
310 FROM collections c JOIN users u ON c.user_id = u.id 310 FROM collections c JOIN users u ON c.user_id = u.id
311 WHERE u.gid = CAST(${user-id} AS uuid) 311 WHERE u.gid = CAST(${user-id} AS uuid)
312 ORDER BY c.creation DESC 312 ORDER BY c.creation DESC
313 </dc:statement> 313 </dc:statement>
314 <dc:elements> 314 <dc:elements>
319 AND EXISTS ( 319 AND EXISTS (
320 SELECT id FROM artifact_data WHERE artifact_id = m.id AND k = 'river' AND v = ${river}) 320 SELECT id FROM artifact_data WHERE artifact_id = m.id AND k = 'river' AND v = ${river})
321 </dc:statement> 321 </dc:statement>
322 <dc:elements> 322 <dc:elements>
323 <dc:choose> 323 <dc:choose>
324
325
326 <dc:comment>
327 Import longitudinal sections only if the ${artifact-out} is defined as 'longitudinal_section'
328 ---------------------------------------------------------------------------------------------
329 </dc:comment>
324 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')"> 330 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')">
325 <dc:context> 331 <dc:context>
326 <dc:statement>SELECT id AS out_id FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section' 332 <dc:statement>SELECT id AS out_id FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
327 </dc:statement> 333 </dc:statement>
328 <dc:elements> 334 <dc:elements>
344 </longitudinal_section_columns> 350 </longitudinal_section_columns>
345 </dc:context> 351 </dc:context>
346 </dc:elements> 352 </dc:elements>
347 </dc:context> 353 </dc:context>
348 </dc:when> 354 </dc:when>
355 <dc:comment>
356 Import of longitudinal sections finished
357 </dc:comment>
358
359
360 <dc:comment>
361 Import Waterlevels only if the ${artifact-out} is defined as 'waterlevels'
362 --------------------------------------------------------------------------
363 </dc:comment>
364 <dc:when test="dc:contains($artifact-outs, 'waterlevels')">
365 <dc:context>
366 <dc:statement>SELECT id AS out_id FROM outs WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
367 </dc:statement>
368 <dc:elements>
369 <dc:context>
370 <dc:statement>SELECT name AS facet_name, num as facet_num, description AS facet_description
371 FROM facets WHERE out_id = ${out_id} and name = 'longitudinal_section.w' ORDER BY num ASC, name DESC
372 </dc:statement>
373 <waterlevels>
374 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
375 <dc:elements>
376 <dc:element name="${facet_name}">
377 <dc:attribute name="description" value="${facet_description}"/>
378 <dc:attribute name="ids" value="${facet_num}"/>
379 <dc:attribute name="factory" value="winfo"/>
380 <dc:attribute name="artifact-id" value="${a_gid}"/>
381 <dc:attribute name="out" value="longitudinal_section"/>
382 </dc:element>
383 </dc:elements>
384 </waterlevels>
385 </dc:context>
386 </dc:elements>
387 </dc:context>
388 </dc:when>
389 <dc:comment>
390 Import of waterlevels finished
391 </dc:comment>
392
349 </dc:choose> 393 </dc:choose>
350 </dc:elements> 394 </dc:elements>
351 </dc:context> 395 </dc:context>
352 </dc:elements> 396 </dc:elements>
353 </dc:context> 397 </dc:context>
354 </old_calculations> 398 </old_calculations>
399
400
355 <dc:comment> 401 <dc:comment>
356 System specific part 402 Include System specific part when 'load-system' is in parameters.
357 -------------------- 403 -----------------------------------------------------------------
358 </dc:comment> 404 </dc:comment>
359 <dc:call-macro name="load-system"/> 405 <dc:choose>
406 <dc:when test="dc:contains($parameters,'load-system')">
407 <dc:call-macro name="load-system"/>
408 </dc:when>
409 </dc:choose>
360 </dc:when> 410 </dc:when>
411
412
361 <dc:comment> 413 <dc:comment>
362 System specific part only 414 Include System specific part only if no user ID is given.
363 ------------------------- 415 ---------------------------------------------------------
364 </dc:comment> 416 </dc:comment>
365 <dc:otherwise> 417 <dc:otherwise>
366 <dc:call-macro name="load-system"/> 418 <dc:call-macro name="load-system"/>
367 </dc:otherwise> 419 </dc:otherwise>
368 </dc:choose> 420 </dc:choose>

http://dive4elements.wald.intevation.org