comparison artifacts/doc/conf/meta-data.xml @ 7575:8fd314253839

issue1631: Allow loading of some former historical-discharge facets.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 18 Nov 2013 12:22:22 +0100
parents 85b44b0e6579
children 4f69ebe580e1
comparison
equal deleted inserted replaced
7574:6f6a63ab3ced 7575:8fd314253839
392 <dc:call-macro name="longitudinal-section-user-prototype"/> 392 <dc:call-macro name="longitudinal-section-user-prototype"/>
393 </dc:when> 393 </dc:when>
394 <dc:when test="$out = 'bed_difference_epoch'"> 394 <dc:when test="$out = 'bed_difference_epoch'">
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'">
398 <dc:call-macro name="historical-discharge-user"/>
399 </dc:when>
397 <dc:when test="starts-with($out, 'sq_relation')"> 400 <dc:when test="starts-with($out, 'sq_relation')">
398 <dc:call-macro name="sqrelations_user"/> 401 <dc:call-macro name="sqrelations_user"/>
399 </dc:when> 402 </dc:when>
400 </dc:choose> 403 </dc:choose>
401 </dc:iterate> 404 </dc:iterate>
405 </dc:call-macro> 408 </dc:call-macro>
406 </dc:call-macro> 409 </dc:call-macro>
407 </dc:macro> 410 </dc:macro>
408 411
409 <!-- Macros to load user data --> 412 <!-- Macros to load user data -->
413
414 <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')">
416 <dc:if test="dc:has-result()">
417 <historical_discharges>
418 <dc:call-macro name="collection-group">
419 <discharges description="{dc:group-key()}">
420 <dc:for-each>
421 <dc:element name="${facet_name}">
422 <dc:attribute name="description" value="${facet_description}"/>
423 <dc:attribute name="factory" value="winfo"/>
424 <dc:attribute name="target_out" value="${out}"/>
425 <dc:attribute name="artifact-id" value="${a_gid}"/>
426 <dc:attribute name="ids" value="${facet_num}"/>
427 <dc:attribute name="out" value="historical_discharge"/>
428 </dc:element>
429 </dc:for-each>
430 </discharges>
431 </dc:call-macro>
432 </historical_discharges>
433 </dc:if>
434 </dc:filter>
435 </dc:macro>
410 436
411 <dc:macro name="differences"> 437 <dc:macro name="differences">
412 <dc:filter expr="$facet_name = 'w_differences'"> 438 <dc:filter expr="$facet_name = 'w_differences'">
413 <dc:if test="dc:has-result()"> 439 <dc:if test="dc:has-result()">
414 <differences> 440 <differences>

http://dive4elements.wald.intevation.org