comparison artifacts/doc/conf/meta-data.xml @ 7576:4f69ebe580e1

issue1613: In DC, also show the 'diff' facets, define former calc. for hist. W/Q out.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 18 Nov 2013 12:30:36 +0100
parents 8fd314253839
children 00db0071388f
comparison
equal deleted inserted replaced
7575:8fd314253839 7576:4f69ebe580e1
395 <dc:call-macro name="longitudinal-section-user-prototype"/> 395 <dc:call-macro name="longitudinal-section-user-prototype"/>
396 </dc:when> 396 </dc:when>
397 <dc:when test="$out = 'historical_discharge'"> 397 <dc:when test="$out = 'historical_discharge'">
398 <dc:call-macro name="historical-discharge-user"/> 398 <dc:call-macro name="historical-discharge-user"/>
399 </dc:when> 399 </dc:when>
400 <dc:when test="$out = 'historical_discharge_wq'">
401 <dc:call-macro name="historical-discharge-wq-user"/>
402 </dc:when>
400 <dc:when test="starts-with($out, 'sq_relation')"> 403 <dc:when test="starts-with($out, 'sq_relation')">
401 <dc:call-macro name="sqrelations_user"/> 404 <dc:call-macro name="sqrelations_user"/>
402 </dc:when> 405 </dc:when>
403 </dc:choose> 406 </dc:choose>
404 </dc:iterate> 407 </dc:iterate>
410 </dc:macro> 413 </dc:macro>
411 414
412 <!-- Macros to load user data --> 415 <!-- Macros to load user data -->
413 416
414 <dc:macro name="historical-discharge-user"> 417 <dc:macro name="historical-discharge-user">
415 <dc:filter expr="$out = 'historical_discharge' and ($facet_name = 'historical_discharge.historicalq' or $facet_name = 'historical_discharge.historicalw')"> 418 <dc:filter expr="$out = 'historical_discharge' and starts-with($facet_name, 'historical_discharge.historical')">
419 <dc:if test="dc:has-result()">
420 <historical_discharges>
421 <dc:call-macro name="collection-group">
422 <discharges description="{dc:group-key()}">
423 <dc:for-each>
424 <dc:element name="${facet_name}">
425 <dc:attribute name="description" value="${facet_description}"/>
426 <dc:attribute name="factory" value="winfo"/>
427 <dc:attribute name="target_out" value="${out}"/>
428 <dc:attribute name="artifact-id" value="${a_gid}"/>
429 <dc:attribute name="ids" value="${facet_num}"/>
430 <dc:attribute name="out" value="historical_discharge"/>
431 </dc:element>
432 </dc:for-each>
433 </discharges>
434 </dc:call-macro>
435 </historical_discharges>
436 </dc:if>
437 </dc:filter>
438 </dc:macro>
439
440 <dc:macro name="historical-discharge-wq-user">
441 <dc:filter expr="$out = 'historical_discharge_wq' and starts-with($facet_name, 'historical_discharge.wq')">
416 <dc:if test="dc:has-result()"> 442 <dc:if test="dc:has-result()">
417 <historical_discharges> 443 <historical_discharges>
418 <dc:call-macro name="collection-group"> 444 <dc:call-macro name="collection-group">
419 <discharges description="{dc:group-key()}"> 445 <discharges description="{dc:group-key()}">
420 <dc:for-each> 446 <dc:for-each>

http://dive4elements.wald.intevation.org