comparison artifacts/doc/conf/meta-data.xml @ 8377:64b21db73846

Q-symmetric datacage configuration for user-data.
author Tom Gottfried <tom@intevation.de>
date Fri, 03 Oct 2014 10:26:58 +0200
parents b9fa8124583c
children 1e1b08d033f4
comparison
equal deleted inserted replaced
8376:5f0bc8b28024 8377:64b21db73846
279 <dc:comment comment="Candidate for:"> 279 <dc:comment comment="Candidate for:">
280 <dc:call-macro name="longitudinal-section-user-prototype"/> 280 <dc:call-macro name="longitudinal-section-user-prototype"/>
281 </dc:comment> 281 </dc:comment>
282 </dc:when> 282 </dc:when>
283 <dc:when test="$out = 'waterlevels_panel'"> 283 <dc:when test="$out = 'waterlevels_panel'">
284 <dc:call-macro name="waterlevels-fix"/> 284 <dc:call-macro name="waterlevels-user"/>
285 <dc:comment comment="Candidate for:"> 285 <dc:comment comment="Candidate for:">
286 <dc:call-macro name="longitudinal-section-user-prototype"/> 286 <dc:call-macro name="longitudinal-section-user-prototype"/>
287 </dc:comment> 287 </dc:comment>
288 </dc:when> 288 </dc:when>
289 <dc:when test="$out = 'floodmap_hws_panel'"> 289 <dc:when test="$out = 'floodmap_hws_panel'">
320 <dc:when test="$out = 'bed_difference_height_year'"> 320 <dc:when test="$out = 'bed_difference_height_year'">
321 <dc:call-macro name="longitudinal-section-user-prototype"/> 321 <dc:call-macro name="longitudinal-section-user-prototype"/>
322 </dc:when> 322 </dc:when>
323 <dc:comment> Discharge curves </dc:comment> 323 <dc:comment> Discharge curves </dc:comment>
324 <dc:when test="$out = 'computed_discharge_curve'"> 324 <dc:when test="$out = 'computed_discharge_curve'">
325 <dc:call-macro name="computed-discharge-curve"/> 325 <dc:call-macro name="discharge-curve-user-prototype"/>
326 <dc:call-macro name="fix-wq-curve"/>
327 <dc:call-macro name="discharge-curve"/>
328 <dc:call-macro name="extreme-wq-curve"/>
329 </dc:when> 326 </dc:when>
330 <dc:when test="$out = 'fix_derivate_curve'"> 327 <dc:when test="$out = 'fix_derivate_curve'">
331 <dc:call-macro name="fix-derivate-curve"/> 328 <dc:call-macro name="discharge-curve-user-prototype"/>
332 </dc:when> 329 </dc:when>
333 <dc:when test="$out = 'fix_wq_curve'"> 330 <dc:when test="$out = 'fix_wq_curve'">
334 <dc:call-macro name="fix-wq-curve"/> 331 <dc:call-macro name="discharge-curve-user-prototype"/>
335 <dc:call-macro name="waterlevels-fix"/>
336 </dc:when> 332 </dc:when>
337 <dc:when test="$out = 'historical_discharge_wq'"> 333 <dc:when test="$out = 'historical_discharge_wq'">
338 <dc:call-macro name="historical-discharge-wq-user"/> 334 <dc:call-macro name="discharge-curve-user-prototype"/>
339 </dc:when> 335 </dc:when>
340 <dc:when test="starts-with($out, 'sq_relation') or 336 <dc:when test="starts-with($out, 'sq_relation') or
341 $out = 'sq_overview'"> 337 $out = 'sq_overview'">
342 <dc:call-macro name="sqrelations_user"/> 338 <dc:call-macro name="discharge-curve-user-prototype"/>
343 </dc:when> 339 </dc:when>
344 <dc:comment> Time series </dc:comment> 340 <dc:comment> Time series </dc:comment>
345 <dc:when test="$out = 'fix_deltawt_curve'"> 341 <dc:when test="$out = 'fix_deltawt_curve'">
346 <dc:call-macro name="delta-wt"/> 342 <dc:call-macro name="delta-wt"/>
347 </dc:when> 343 </dc:when>
399 </historical_discharges> 395 </historical_discharges>
400 </dc:if> 396 </dc:if>
401 </dc:filter> 397 </dc:filter>
402 </dc:macro> 398 </dc:macro>
403 399
404 <dc:macro name="historical-discharge-wq-user">
405 <dc:filter expr="$out = 'historical_discharge_wq' and starts-with($facet_name, 'historical_discharge.wq')">
406 <dc:if test="dc:has-result()">
407 <historical_discharges>
408 <dc:call-macro name="collection-group">
409 <discharges description="{dc:group-key()}">
410 <dc:for-each>
411 <dc:element name="${facet_name}">
412 <dc:attribute name="description" value="${facet_description}"/>
413 <dc:attribute name="factory" value="winfo"/>
414 <dc:attribute name="target_out" value="${out}"/>
415 <dc:attribute name="artifact-id" value="${a_gid}"/>
416 <dc:attribute name="ids" value="${facet_num}"/>
417 <dc:attribute name="out" value="historical_discharge"/>
418 </dc:element>
419 </dc:for-each>
420 </discharges>
421 </dc:call-macro>
422 </historical_discharges>
423 </dc:if>
424 </dc:filter>
425 </dc:macro>
426
427 <dc:macro name="differences"> 400 <dc:macro name="differences">
428 <dc:filter expr="$facet_name = 'w_differences' or $facet_name = 'w_differences.filtered'"> 401 <dc:filter expr="$facet_name = 'w_differences' or $facet_name = 'w_differences.filtered'">
429 <dc:if test="dc:has-result()"> 402 <dc:if test="dc:has-result()">
430 <differences> 403 <differences>
431 <dc:call-macro name="collection-group"> 404 <dc:call-macro name="collection-group">
662 </waterlevels> 635 </waterlevels>
663 </dc:if> 636 </dc:if>
664 </dc:filter> 637 </dc:filter>
665 </dc:macro> 638 </dc:macro>
666 639
667 <dc:macro name="fix-derivate-curve"> 640 <dc:macro name="fix-wq-curve">
668 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'"> 641 <dc:filter expr="($out_name = 'fix_wq_curve' and
669 <dc:if test="dc:has-result()"> 642 (starts-with($facet_name, 'fix_analysis_events_wq') or
670 <waterlevels> 643 starts-with($facet_name, 'fix_reference_events_wq') or
644 starts-with($facet_name, 'fix_sector_average_wq') or
645 $facet_name = 'fix_wq_curve')) or
646 ($out_name = 'fix_derivate_curve' and
647 $facet_name = 'fix_derivate_curve')">
648 <dc:if test="dc:has-result()">
649 <waterlevels_fix>
671 <dc:call-macro name="collection-group"> 650 <dc:call-macro name="collection-group">
672 <waterlevels description="{dc:group-key()}"> 651 <projects description="{dc:group-key()}">
673 <dc:for-each> 652 <dc:for-each>
674 <dc:element name="${facet_name}"> 653 <dc:choose>
675 <dc:attribute name="description" value="${facet_description}"/> 654 <dc:when test="$out_name = 'fix_wq_curve'">
676 <dc:attribute name="ids" value="${facet_num}"/> 655 <dc:element name="${facet_name}">
677 <dc:attribute name="factory" value="fixanalysis"/> 656 <dc:attribute name="description" value="${facet_description}"/>
678 <dc:attribute name="target_out" value="${out}"/> 657 <dc:attribute name="ids" value="${facet_num}"/>
679 <dc:attribute name="artifact-id" value="${a_gid}"/> 658 <dc:attribute name="factory" value="fixanalysis"/>
680 <dc:attribute name="out" value="fix_derivate_curve"/> 659 <dc:attribute name="target_out" value="${out}"/>
681 </dc:element> 660 <dc:attribute name="artifact-id" value="${a_gid}"/>
661 <dc:attribute name="out" value="fix_wq_curve"/>
662 </dc:element>
663 </dc:when>
664 <dc:when test="$out_name = 'fix_derivate_curve'">
665 <dc:element name="${facet_name}">
666 <dc:attribute name="description" value="${facet_description}"/>
667 <dc:attribute name="ids" value="${facet_num}"/>
668 <dc:attribute name="factory" value="fixanalysis"/>
669 <dc:attribute name="target_out" value="${out}"/>
670 <dc:attribute name="artifact-id" value="${a_gid}"/>
671 <dc:attribute name="out" value="fix_derivate_curve"/>
672 </dc:element>
673 </dc:when>
674 </dc:choose>
682 </dc:for-each> 675 </dc:for-each>
683 </waterlevels> 676 </projects>
684 </dc:call-macro> 677 </dc:call-macro>
685 </waterlevels> 678 </waterlevels_fix>
686 </dc:if>
687 </dc:filter>
688 </dc:macro>
689
690 <dc:macro name="fix-wq-curve">
691 <dc:filter expr="$out_name = 'fix_wq_curve' and
692 (starts-with($facet_name, 'fix_analysis_events_wq') or
693 starts-with($facet_name, 'fix_reference_events_wq') or
694 starts-with($facet_name, 'fix_sector_average_wq') or
695 $facet_name = 'fix_wq_curve')">
696 <dc:if test="dc:has-result()">
697 <waterlevels>
698 <dc:call-macro name="collection-group">
699 <waterlevels description="{dc:group-key()}">
700 <dc:for-each>
701 <dc:element name="${facet_name}">
702 <dc:attribute name="description" value="${facet_description}"/>
703 <dc:attribute name="ids" value="${facet_num}"/>
704 <dc:attribute name="factory" value="fixanalysis"/>
705 <dc:attribute name="target_out" value="${out}"/>
706 <dc:attribute name="artifact-id" value="${a_gid}"/>
707 <dc:attribute name="out" value="fix_wq_curve"/>
708 </dc:element>
709 </dc:for-each>
710 </waterlevels>
711 </dc:call-macro>
712 </waterlevels>
713 </dc:if>
714 </dc:filter>
715 </dc:macro>
716
717
718 <dc:macro name="discharge-curve">
719 <dc:filter expr="$facet_name = 'discharge_curve.curve'">
720 <dc:if test="dc:has-result()">
721 <discharge_curves>
722 <dc:for-each>
723 <dc:element name="${facet_name}">
724 <dc:attribute name="description" value="${facet_description}"/>
725 <dc:attribute name="factory" value="winfo"/>
726 <dc:attribute name="target_out" value="${out}"/>
727 <dc:attribute name="artifact-id" value="${a_gid}"/>
728 <dc:attribute name="ids" value="${a_gid}"/>
729 <dc:attribute name="out" value="discharge_curve"/>
730 </dc:element>
731 </dc:for-each>
732 </discharge_curves>
733 </dc:if> 679 </dc:if>
734 </dc:filter> 680 </dc:filter>
735 </dc:macro> 681 </dc:macro>
736 682
737 <dc:macro name="extreme-wq-curve"> 683 <dc:macro name="extreme-wq-curve">
755 701
756 <dc:macro name="computed-discharge-curve"> 702 <dc:macro name="computed-discharge-curve">
757 <dc:filter expr="$facet_name = 'computed_discharge_curve.q'"> 703 <dc:filter expr="$facet_name = 'computed_discharge_curve.q'">
758 <dc:if test="dc:has-result()"> 704 <dc:if test="dc:has-result()">
759 <computed_discharge_curves> 705 <computed_discharge_curves>
760 <dc:for-each> 706 <dc:call-macro name="collection-group">
761 <dc:element name="${facet_name}"> 707 <projects description="{dc:group-key()}">
762 <dc:attribute name="description" value="${facet_description}"/> 708 <dc:for-each>
763 <dc:attribute name="factory" value="winfo"/> 709 <dc:element name="${facet_name}">
764 <dc:attribute name="target_out" value="${out}"/> 710 <dc:attribute name="description" value="${facet_description}"/>
765 <dc:attribute name="artifact-id" value="${a_gid}"/> 711 <dc:attribute name="factory" value="winfo"/>
766 <dc:attribute name="ids" value="${a_gid}"/> 712 <dc:attribute name="target_out" value="${out}"/>
767 <dc:attribute name="out" value="computed_discharge_curve"/> 713 <dc:attribute name="artifact-id" value="${a_gid}"/>
768 </dc:element> 714 <dc:attribute name="ids" value="${a_gid}"/>
769 </dc:for-each> 715 <dc:attribute name="out" value="computed_discharge_curve"/>
716 </dc:element>
717 </dc:for-each>
718 </projects>
719 </dc:call-macro>
770 </computed_discharge_curves> 720 </computed_discharge_curves>
771 </dc:if> 721 </dc:if>
772 </dc:filter> 722 </dc:filter>
773 </dc:macro> 723 </dc:macro>
774 724
789 </computed_discharge_curves> 739 </computed_discharge_curves>
790 </dc:if> 740 </dc:if>
791 </dc:filter> 741 </dc:filter>
792 </dc:macro> 742 </dc:macro>
793 743
794 <dc:comment>TODO doesnt work nicely for fix/wq-diags. Aheinecke (27.5.2013): Why?</dc:comment> 744
795 <dc:macro name="waterlevels-fix"> 745 <dc:macro name="waterlevels-user">
796 <dc:filter expr="($out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w') and 746 <dc:filter expr="($out_name = 'longitudinal_section'
797 (not ($current-state-id = 'state.winfo.uesk.wsp' and $ld_m = 'location'))"> 747 and $facet_name = 'longitudinal_section.w') and
748 (not ($current-state-id = 'state.winfo.uesk.wsp'
749 and $ld_m = 'location'))">
798 <dc:if test="dc:has-result()"> 750 <dc:if test="dc:has-result()">
799 <waterlevels> 751 <waterlevels>
800 <dc:call-macro name="collection-group"> 752 <dc:call-macro name="collection-group">
801 <waterlevels description="{dc:group-key()}"> 753 <waterlevels description="{dc:group-key()}">
802 <dc:for-each> 754 <dc:for-each>
803 <dc:choose> 755 <dc:choose>
804 <dc:when test="$ld_m = 'location'"> 756 <dc:when test="$ld_m = 'location'">
805 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> 757 <dc:variable name="combined_desc"
758 expr="concat($facet_description,
759 ' an KM ', $deffrom)"/>
806 </dc:when> 760 </dc:when>
807 <dc:otherwise> 761 <dc:otherwise>
808 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', 762 <dc:variable name="combined_desc"
809 $deffrom, ' bis KM ', $defto)"/> 763 expr="concat($facet_description, ' von KM ',
764 $deffrom, ' bis KM ', $defto)"/>
810 </dc:otherwise> 765 </dc:otherwise>
811 </dc:choose> 766 </dc:choose>
812 <dc:element name="${facet_name}"> 767 <dc:element name="${facet_name}">
813 <dc:attribute name="description" value="${combined_desc}"/> 768 <dc:attribute name="description" value="${combined_desc}"/>
814 <dc:attribute name="ids" value="${facet_num}"/> 769 <dc:attribute name="ids" value="${facet_num}"/>
1040 ($out = 'sq_relation_c' and starts-with($facet_name, 'sq_c_')) or 995 ($out = 'sq_relation_c' and starts-with($facet_name, 'sq_c_')) or
1041 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or 996 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or
1042 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or 997 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or
1043 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_')) or 998 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_')) or
1044 ($out = 'sq_relation_g' and starts-with($facet_name, 'sq_g_'))) or 999 ($out = 'sq_relation_g' and starts-with($facet_name, 'sq_g_'))) or
1045 $out = 'sq_overview' and dc:contains($facet_name, 'overview')"> 1000 dc:contains($facet_name, 'overview')">
1046 <dc:if test="dc:has-result()"> 1001 <dc:if test="dc:has-result()">
1047 <sq_relations> 1002 <sq_relations>
1048 <dc:call-macro name="collection-group"> 1003 <dc:call-macro name="collection-group">
1049 <sqrel description="{dc:group-key()}"> 1004 <sqrel description="{dc:group-key()}">
1050 <dc:for-each> 1005 <dc:for-each>
1487 <dc:call-macro name="basedata_5_flood-protections_wq"/> 1442 <dc:call-macro name="basedata_5_flood-protections_wq"/>
1488 <minfo> 1443 <minfo>
1489 <dc:call-macro name="sqrelations"/> 1444 <dc:call-macro name="sqrelations"/>
1490 <dc:call-macro name="basedata_7_waterlevels_wq"/> 1445 <dc:call-macro name="basedata_7_waterlevels_wq"/>
1491 </minfo> 1446 </minfo>
1447 </dc:macro>
1448
1449 <dc:macro name="discharge-curve-user-prototype">
1450 <dc:call-macro name="waterlevels-user"/>
1451 <dc:call-macro name="computed-discharge-curve"/>
1452 <!-- TODO: macro for discharge longitudinal section -->
1453 <dc:call-macro name="fix-wq-curve"/>
1454 <!-- TODO: own macro for Vollmer-curve (extract from fix-wq-curve and waterlevels-user) -->
1455 <dc:call-macro name="extreme-wq-curve"/>
1456 <minfo>
1457 <dc:call-macro name="sqrelations_user"/>
1458 </minfo>
1492 </dc:macro> 1459 </dc:macro>
1493 1460
1494 <dc:macro name="longitudinal-section-prototype"> 1461 <dc:macro name="longitudinal-section-prototype">
1495 <dc:call-macro name="basedata_0"/> 1462 <dc:call-macro name="basedata_0"/>
1496 <dc:call-macro name="basedata_1_additionals"/> 1463 <dc:call-macro name="basedata_1_additionals"/>

http://dive4elements.wald.intevation.org