Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7418:6665d0e3d795
meta-data.xml: Create and use collection-group macro.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Oct 2013 11:04:06 +0200 |
parents | 79da07ca2afc |
children | cae7c0625436 |
comparison
equal
deleted
inserted
replaced
7417:cf8d37ed4d34 | 7418:6665d0e3d795 |
---|---|
420 | 420 |
421 <dc:macro name="differences"> | 421 <dc:macro name="differences"> |
422 <dc:filter expr="$facet_name = 'w_differences'"> | 422 <dc:filter expr="$facet_name = 'w_differences'"> |
423 <dc:if test="dc:has-result()"> | 423 <dc:if test="dc:has-result()"> |
424 <differences> | 424 <differences> |
425 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 425 <dc:call-macro name="collection-group"> |
426 <differences description="{dc:group-key()}"> | 426 <differences description="{dc:group-key()}"> |
427 <dc:for-each> | 427 <dc:for-each> |
428 <w_differences | 428 <w_differences |
429 description="{$facet_description}" | 429 description="{$facet_description}" |
430 factory="winfo" | 430 factory="winfo" |
432 ids="{$facet_num}" | 432 ids="{$facet_num}" |
433 target_out="{$out}" | 433 target_out="{$out}" |
434 out="w_differences"/> | 434 out="w_differences"/> |
435 </dc:for-each> | 435 </dc:for-each> |
436 </differences> | 436 </differences> |
437 </dc:group> | 437 </dc:call-macro> |
438 </differences> | 438 </differences> |
439 </dc:if> | 439 </dc:if> |
440 </dc:filter> | 440 </dc:filter> |
441 </dc:macro> | 441 </dc:macro> |
442 | 442 |
538 </waterlevels> | 538 </waterlevels> |
539 </dc:if> | 539 </dc:if> |
540 </dc:filter> | 540 </dc:filter> |
541 </dc:macro> | 541 </dc:macro> |
542 | 542 |
543 <dc:macro name="collection-group"> | |
544 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | |
545 <dc:macro-body/> | |
546 </dc:group> | |
547 </dc:macro> | |
548 | |
543 <dc:macro name="longitudinal"> | 549 <dc:macro name="longitudinal"> |
544 <dc:filter expr="$out_name = 'longitudinal_section'"> | 550 <dc:filter expr="$out_name = 'longitudinal_section'"> |
545 <dc:if test="dc:has-result()"> | 551 <dc:if test="dc:has-result()"> |
546 <waterlevels_ls> | 552 <waterlevels_ls> |
547 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 553 <dc:call-macro name="collection-group"> |
548 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> | 554 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> |
549 <longitudinal_section_columns description="{dc:group-key()}"> | 555 <longitudinal_section_columns description="{dc:group-key()}"> |
550 <dc:for-each> | 556 <dc:for-each> |
551 <dc:element name="${facet_name}"> | 557 <dc:element name="${facet_name}"> |
552 <dc:attribute name="description" value="${facet_description}"/> | 558 <dc:attribute name="description" value="${facet_description}"/> |
556 <dc:attribute name="artifact-id" value="${a_gid}"/> | 562 <dc:attribute name="artifact-id" value="${a_gid}"/> |
557 <dc:attribute name="out" value="longitudinal_section"/> | 563 <dc:attribute name="out" value="longitudinal_section"/> |
558 </dc:element> | 564 </dc:element> |
559 </dc:for-each> | 565 </dc:for-each> |
560 </longitudinal_section_columns> | 566 </longitudinal_section_columns> |
561 </dc:group> | 567 </dc:call-macro> |
562 </waterlevels_ls> | 568 </waterlevels_ls> |
563 </dc:if> | 569 </dc:if> |
564 </dc:filter> | 570 </dc:filter> |
565 </dc:macro> | 571 </dc:macro> |
566 | 572 |
574 ($facet_name = 'longitudinal_section.w' or | 580 ($facet_name = 'longitudinal_section.w' or |
575 $facet_name = 'longitudinal_section.q')) | 581 $facet_name = 'longitudinal_section.q')) |
576 "> | 582 "> |
577 <dc:if test="dc:has-result()"> | 583 <dc:if test="dc:has-result()"> |
578 <waterlevels_fix> | 584 <waterlevels_fix> |
579 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 585 <dc:call-macro name="collection-group"> |
580 <waterlevels description="{dc:group-key()}"> | 586 <waterlevels description="{dc:group-key()}"> |
581 <dc:for-each> | 587 <dc:for-each> |
582 <dc:element name="${facet_name}"> | 588 <dc:element name="${facet_name}"> |
583 <dc:attribute name="description" value="${facet_description}"/> | 589 <dc:attribute name="description" value="${facet_description}"/> |
584 <dc:attribute name="ids" value="${facet_num}"/> | 590 <dc:attribute name="ids" value="${facet_num}"/> |
594 </dc:otherwise> | 600 </dc:otherwise> |
595 </dc:choose> | 601 </dc:choose> |
596 </dc:element> | 602 </dc:element> |
597 </dc:for-each> | 603 </dc:for-each> |
598 </waterlevels> | 604 </waterlevels> |
599 </dc:group> | 605 </dc:call-macro> |
600 </waterlevels_fix> | 606 </waterlevels_fix> |
601 </dc:if> | 607 </dc:if> |
602 </dc:filter> | 608 </dc:filter> |
603 </dc:macro> | 609 </dc:macro> |
604 | 610 |
609 $facet_name = 'fix_reference_events_dwt' or | 615 $facet_name = 'fix_reference_events_dwt' or |
610 starts-with($facet_name, 'fix_deviation_dwt') or | 616 starts-with($facet_name, 'fix_deviation_dwt') or |
611 starts-with($facet_name, 'fix_sector_average_dwt'))"> | 617 starts-with($facet_name, 'fix_sector_average_dwt'))"> |
612 <dc:if test="dc:has-result()"> | 618 <dc:if test="dc:has-result()"> |
613 <waterlevels> | 619 <waterlevels> |
614 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 620 <dc:call-macro name="collection-group"> |
615 <waterlevels description="{dc:group-key()}"> | 621 <waterlevels description="{dc:group-key()}"> |
616 <dc:for-each> | 622 <dc:for-each> |
617 <dc:element name="${facet_name}"> | 623 <dc:element name="${facet_name}"> |
618 <dc:attribute name="description" value="${facet_description}"/> | 624 <dc:attribute name="description" value="${facet_description}"/> |
619 <dc:attribute name="ids" value="${facet_num}"/> | 625 <dc:attribute name="ids" value="${facet_num}"/> |
622 <dc:attribute name="artifact-id" value="${a_gid}"/> | 628 <dc:attribute name="artifact-id" value="${a_gid}"/> |
623 <dc:attribute name="out" value="fix_deltawt_curve"/> | 629 <dc:attribute name="out" value="fix_deltawt_curve"/> |
624 </dc:element> | 630 </dc:element> |
625 </dc:for-each> | 631 </dc:for-each> |
626 </waterlevels> | 632 </waterlevels> |
627 </dc:group> | 633 </dc:call-macro> |
628 </waterlevels> | 634 </waterlevels> |
629 </dc:if> | 635 </dc:if> |
630 </dc:filter> | 636 </dc:filter> |
631 </dc:macro> | 637 </dc:macro> |
632 | 638 |
634 <dc:filter expr="$out_name = 'fix_deltawt_curve' and | 640 <dc:filter expr="$out_name = 'fix_deltawt_curve' and |
635 (starts-with($facet_name, 'fix_sector_average_dwt') or | 641 (starts-with($facet_name, 'fix_sector_average_dwt') or |
636 starts-with($facet_name, 'fix_deviation_dwt'))"> | 642 starts-with($facet_name, 'fix_deviation_dwt'))"> |
637 <dc:if test="dc:has-result()"> | 643 <dc:if test="dc:has-result()"> |
638 <waterlevels> | 644 <waterlevels> |
639 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 645 <dc:call-macro name="collection-group"> |
640 <waterlevels description="{dc:group-key()}"> | 646 <waterlevels description="{dc:group-key()}"> |
641 <dc:for-each> | 647 <dc:for-each> |
642 <dc:element name="${facet_name}"> | 648 <dc:element name="${facet_name}"> |
643 <dc:attribute name="description" value="${facet_description}"/> | 649 <dc:attribute name="description" value="${facet_description}"/> |
644 <dc:attribute name="ids" value="${facet_num}"/> | 650 <dc:attribute name="ids" value="${facet_num}"/> |
647 <dc:attribute name="artifact-id" value="${a_gid}"/> | 653 <dc:attribute name="artifact-id" value="${a_gid}"/> |
648 <dc:attribute name="out" value="fix_deltawt_curve"/> | 654 <dc:attribute name="out" value="fix_deltawt_curve"/> |
649 </dc:element> | 655 </dc:element> |
650 </dc:for-each> | 656 </dc:for-each> |
651 </waterlevels> | 657 </waterlevels> |
652 </dc:group> | 658 </dc:call-macro> |
653 </waterlevels> | 659 </waterlevels> |
654 </dc:if> | 660 </dc:if> |
655 </dc:filter> | 661 </dc:filter> |
656 </dc:macro> | 662 </dc:macro> |
657 | 663 |
658 <dc:macro name="fix-derivate-curve"> | 664 <dc:macro name="fix-derivate-curve"> |
659 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'"> | 665 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'"> |
660 <dc:if test="dc:has-result()"> | 666 <dc:if test="dc:has-result()"> |
661 <waterlevels> | 667 <waterlevels> |
662 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 668 <dc:call-macro name="collection-group"> |
663 <waterlevels description="{dc:group-key()}"> | 669 <waterlevels description="{dc:group-key()}"> |
664 <dc:for-each> | 670 <dc:for-each> |
665 <dc:element name="${facet_name}"> | 671 <dc:element name="${facet_name}"> |
666 <dc:attribute name="description" value="${facet_description}"/> | 672 <dc:attribute name="description" value="${facet_description}"/> |
667 <dc:attribute name="ids" value="${facet_num}"/> | 673 <dc:attribute name="ids" value="${facet_num}"/> |
670 <dc:attribute name="artifact-id" value="${a_gid}"/> | 676 <dc:attribute name="artifact-id" value="${a_gid}"/> |
671 <dc:attribute name="out" value="fix_derivate_curve"/> | 677 <dc:attribute name="out" value="fix_derivate_curve"/> |
672 </dc:element> | 678 </dc:element> |
673 </dc:for-each> | 679 </dc:for-each> |
674 </waterlevels> | 680 </waterlevels> |
675 </dc:group> | 681 </dc:call-macro> |
676 </waterlevels> | 682 </waterlevels> |
677 </dc:if> | 683 </dc:if> |
678 </dc:filter> | 684 </dc:filter> |
679 </dc:macro> | 685 </dc:macro> |
680 | 686 |
684 starts-with($facet_name, 'fix_reference_events_wq') or | 690 starts-with($facet_name, 'fix_reference_events_wq') or |
685 starts-with($facet_name, 'fix_sector_average_wq') or | 691 starts-with($facet_name, 'fix_sector_average_wq') or |
686 $facet_name = 'fix_wq_curve')"> | 692 $facet_name = 'fix_wq_curve')"> |
687 <dc:if test="dc:has-result()"> | 693 <dc:if test="dc:has-result()"> |
688 <waterlevels> | 694 <waterlevels> |
689 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 695 <dc:call-macro name="collection-group"> |
690 <waterlevels description="{dc:group-key()}"> | 696 <waterlevels description="{dc:group-key()}"> |
691 <dc:for-each> | 697 <dc:for-each> |
692 <dc:element name="${facet_name}"> | 698 <dc:element name="${facet_name}"> |
693 <dc:attribute name="description" value="${facet_description}"/> | 699 <dc:attribute name="description" value="${facet_description}"/> |
694 <dc:attribute name="ids" value="${facet_num}"/> | 700 <dc:attribute name="ids" value="${facet_num}"/> |
697 <dc:attribute name="artifact-id" value="${a_gid}"/> | 703 <dc:attribute name="artifact-id" value="${a_gid}"/> |
698 <dc:attribute name="out" value="fix_wq_curve"/> | 704 <dc:attribute name="out" value="fix_wq_curve"/> |
699 </dc:element> | 705 </dc:element> |
700 </dc:for-each> | 706 </dc:for-each> |
701 </waterlevels> | 707 </waterlevels> |
702 </dc:group> | 708 </dc:call-macro> |
703 </waterlevels> | 709 </waterlevels> |
704 </dc:if> | 710 </dc:if> |
705 </dc:filter> | 711 </dc:filter> |
706 </dc:macro> | 712 </dc:macro> |
707 | 713 |
933 <dc:macro name="bedquality-load"> | 939 <dc:macro name="bedquality-load"> |
934 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 940 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
935 $facet_name = 'bed_longitudinal_section.bedload_diameter'"> | 941 $facet_name = 'bed_longitudinal_section.bedload_diameter'"> |
936 <dc:if test="dc:has-result()"> | 942 <dc:if test="dc:has-result()"> |
937 <bed_quality_load> | 943 <bed_quality_load> |
938 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 944 <dc:call-macro name="collection-group"> |
939 <quality-load description="{dc:group-key()}"> | 945 <quality-load description="{dc:group-key()}"> |
940 <dc:for-each> | 946 <dc:for-each> |
941 <dc:element name="${facet_name}"> | 947 <dc:element name="${facet_name}"> |
942 <dc:attribute name="factory" value="minfo"/> | 948 <dc:attribute name="factory" value="minfo"/> |
943 <dc:attribute name="target_out" value="${out}"/> | 949 <dc:attribute name="target_out" value="${out}"/> |
946 <dc:attribute name="artifact-id" value="${a_gid}"/> | 952 <dc:attribute name="artifact-id" value="${a_gid}"/> |
947 <dc:attribute name="out" value="bed_longitudinal_section"/> | 953 <dc:attribute name="out" value="bed_longitudinal_section"/> |
948 </dc:element> | 954 </dc:element> |
949 </dc:for-each> | 955 </dc:for-each> |
950 </quality-load> | 956 </quality-load> |
951 </dc:group> | 957 </dc:call-macro> |
952 </bed_quality_load> | 958 </bed_quality_load> |
953 </dc:if> | 959 </dc:if> |
954 </dc:filter> | 960 </dc:filter> |
955 </dc:macro> | 961 </dc:macro> |
956 | 962 |
958 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 964 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
959 ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or | 965 ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or |
960 $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')"> | 966 $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')"> |
961 <dc:if test="dc:has-result()"> | 967 <dc:if test="dc:has-result()"> |
962 <bed_quality_density> | 968 <bed_quality_density> |
963 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 969 <dc:call-macro name="collection-group"> |
964 <density description="{dc:group-key()}"> | 970 <density description="{dc:group-key()}"> |
965 <dc:for-each> | 971 <dc:for-each> |
966 <dc:element name="${facet_name}"> | 972 <dc:element name="${facet_name}"> |
967 <dc:attribute name="factory" value="minfo"/> | 973 <dc:attribute name="factory" value="minfo"/> |
968 <dc:attribute name="target_out" value="${out}"/> | 974 <dc:attribute name="target_out" value="${out}"/> |
971 <dc:attribute name="artifact-id" value="${a_gid}"/> | 977 <dc:attribute name="artifact-id" value="${a_gid}"/> |
972 <dc:attribute name="out" value="bed_longitudinal_section"/> | 978 <dc:attribute name="out" value="bed_longitudinal_section"/> |
973 </dc:element> | 979 </dc:element> |
974 </dc:for-each> | 980 </dc:for-each> |
975 </density> | 981 </density> |
976 </dc:group> | 982 </dc:call-macro> |
977 </bed_quality_density> | 983 </bed_quality_density> |
978 </dc:if> | 984 </dc:if> |
979 </dc:filter> | 985 </dc:filter> |
980 </dc:macro> | 986 </dc:macro> |
981 | 987 |
983 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 989 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
984 ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or | 990 ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or |
985 $facet_name = 'bed_longitudinal_section.porosity_sublayer')"> | 991 $facet_name = 'bed_longitudinal_section.porosity_sublayer')"> |
986 <dc:if test="dc:has-result()"> | 992 <dc:if test="dc:has-result()"> |
987 <bed_quality_porosity> | 993 <bed_quality_porosity> |
988 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 994 <dc:call-macro name="collection-group"> |
989 <porosity description="{dc:group-key()}"> | 995 <porosity description="{dc:group-key()}"> |
990 <dc:for-each> | 996 <dc:for-each> |
991 <dc:element name="${facet_name}"> | 997 <dc:element name="${facet_name}"> |
992 <dc:attribute name="factory" value="minfo"/> | 998 <dc:attribute name="factory" value="minfo"/> |
993 <dc:attribute name="target_out" value="${out}"/> | 999 <dc:attribute name="target_out" value="${out}"/> |
996 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1002 <dc:attribute name="artifact-id" value="${a_gid}"/> |
997 <dc:attribute name="out" value="bed_longitudinal_section"/> | 1003 <dc:attribute name="out" value="bed_longitudinal_section"/> |
998 </dc:element> | 1004 </dc:element> |
999 </dc:for-each> | 1005 </dc:for-each> |
1000 </porosity> | 1006 </porosity> |
1001 </dc:group> | 1007 </dc:call-macro> |
1002 </bed_quality_porosity> | 1008 </bed_quality_porosity> |
1003 </dc:if> | 1009 </dc:if> |
1004 </dc:filter> | 1010 </dc:filter> |
1005 </dc:macro> | 1011 </dc:macro> |
1006 | 1012 |
1010 $facet_name = 'flow_velocity.mainchannel' or | 1016 $facet_name = 'flow_velocity.mainchannel' or |
1011 $facet_name = 'flow_velocity.totalchannel.filtered' or | 1017 $facet_name = 'flow_velocity.totalchannel.filtered' or |
1012 $facet_name = 'flow_velocity.mainchannel.filtered')"> | 1018 $facet_name = 'flow_velocity.mainchannel.filtered')"> |
1013 <dc:if test="dc:has-result()"> | 1019 <dc:if test="dc:has-result()"> |
1014 <flow-velocity> | 1020 <flow-velocity> |
1015 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1021 <dc:call-macro name="collection-group"> |
1016 <flow description="{dc:group-key()}"> | 1022 <flow description="{dc:group-key()}"> |
1017 <dc:for-each> | 1023 <dc:for-each> |
1018 <dc:element name="${facet_name}"> | 1024 <dc:element name="${facet_name}"> |
1019 <dc:attribute name="factory" value="minfo"/> | 1025 <dc:attribute name="factory" value="minfo"/> |
1020 <dc:attribute name="target_out" value="${out}"/> | 1026 <dc:attribute name="target_out" value="${out}"/> |
1023 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1029 <dc:attribute name="artifact-id" value="${a_gid}"/> |
1024 <dc:attribute name="out" value="flow_velocity"/> | 1030 <dc:attribute name="out" value="flow_velocity"/> |
1025 </dc:element> | 1031 </dc:element> |
1026 </dc:for-each> | 1032 </dc:for-each> |
1027 </flow> | 1033 </flow> |
1028 </dc:group> | 1034 </dc:call-macro> |
1029 </flow-velocity> | 1035 </flow-velocity> |
1030 </dc:if> | 1036 </dc:if> |
1031 </dc:filter> | 1037 </dc:filter> |
1032 </dc:macro> | 1038 </dc:macro> |
1033 | 1039 |
1034 <dc:macro name="sediment-load"> | 1040 <dc:macro name="sediment-load"> |
1035 <dc:filter expr="$out_name = 'sedimentload_ls' and starts-with($facet_name, 'sedimentload')"> | 1041 <dc:filter expr="$out_name = 'sedimentload_ls' and starts-with($facet_name, 'sedimentload')"> |
1036 <dc:if test="dc:has-result()"> | 1042 <dc:if test="dc:has-result()"> |
1037 <sediment-load> | 1043 <sediment-load> |
1038 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1044 <dc:call-macro name="collection-group"> |
1039 <load description="{dc:group-key()}"> | 1045 <load description="{dc:group-key()}"> |
1040 <dc:for-each> | 1046 <dc:for-each> |
1041 <dc:element name="${facet_name}"> | 1047 <dc:element name="${facet_name}"> |
1042 <dc:attribute name="factory" value="minfo"/> | 1048 <dc:attribute name="factory" value="minfo"/> |
1043 <dc:attribute name="target_out" value="${out}"/> | 1049 <dc:attribute name="target_out" value="${out}"/> |
1046 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1052 <dc:attribute name="artifact-id" value="${a_gid}"/> |
1047 <dc:attribute name="out" value="sedimentload_ls"/> | 1053 <dc:attribute name="out" value="sedimentload_ls"/> |
1048 </dc:element> | 1054 </dc:element> |
1049 </dc:for-each> | 1055 </dc:for-each> |
1050 </load> | 1056 </load> |
1051 </dc:group> | 1057 </dc:call-macro> |
1052 </sediment-load> | 1058 </sediment-load> |
1053 </dc:if> | 1059 </dc:if> |
1054 </dc:filter> | 1060 </dc:filter> |
1055 </dc:macro> | 1061 </dc:macro> |
1056 | 1062 |
1057 <dc:macro name="bedheight_differences"> | 1063 <dc:macro name="bedheight_differences"> |
1058 <dc:filter expr="($out_name = 'bed_difference_year' or $out_name = 'bed_difference_epoch') and | 1064 <dc:filter expr="($out_name = 'bed_difference_year' or $out_name = 'bed_difference_epoch') and |
1059 (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.epoch'))"> | 1065 (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.epoch'))"> |
1060 <dc:if test="dc:has-result()"> | 1066 <dc:if test="dc:has-result()"> |
1061 <bedheight_differences> | 1067 <bedheight_differences> |
1062 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1068 <dc:call-macro name="collection-group"> |
1063 <difference description="{dc:group-key()}"> | 1069 <difference description="{dc:group-key()}"> |
1064 <dc:for-each> | 1070 <dc:for-each> |
1065 <dc:element name="${facet_name}"> | 1071 <dc:element name="${facet_name}"> |
1066 <dc:attribute name="factory" value="minfo"/> | 1072 <dc:attribute name="factory" value="minfo"/> |
1067 <dc:attribute name="target_out" value="${out}"/> | 1073 <dc:attribute name="target_out" value="${out}"/> |
1070 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1076 <dc:attribute name="artifact-id" value="${a_gid}"/> |
1071 <dc:attribute name="out" value="${out_name}"/> | 1077 <dc:attribute name="out" value="${out_name}"/> |
1072 </dc:element> | 1078 </dc:element> |
1073 </dc:for-each> | 1079 </dc:for-each> |
1074 </difference> | 1080 </difference> |
1075 </dc:group> | 1081 </dc:call-macro> |
1076 </bedheight_differences> | 1082 </bedheight_differences> |
1077 </dc:if> | 1083 </dc:if> |
1078 </dc:filter> | 1084 </dc:filter> |
1079 </dc:macro> | 1085 </dc:macro> |
1080 | 1086 |
1086 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or | 1092 ($out = 'sq_relation_d' and starts-with($facet_name, 'sq_d_')) or |
1087 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or | 1093 ($out = 'sq_relation_e' and starts-with($facet_name, 'sq_e_')) or |
1088 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_'))"> | 1094 ($out = 'sq_relation_f' and starts-with($facet_name, 'sq_f_'))"> |
1089 <dc:if test="dc:has-result()"> | 1095 <dc:if test="dc:has-result()"> |
1090 <sq_relations> | 1096 <sq_relations> |
1091 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1097 <dc:call-macro name="collection-group"> |
1092 <sqrel description="{dc:group-key()}"> | 1098 <sqrel description="{dc:group-key()}"> |
1093 <dc:for-each> | 1099 <dc:for-each> |
1094 <dc:element name="${facet_name}"> | 1100 <dc:element name="${facet_name}"> |
1095 <dc:attribute name="factory" value="minfo"/> | 1101 <dc:attribute name="factory" value="minfo"/> |
1096 <dc:attribute name="target_out" value="${out}"/> | 1102 <dc:attribute name="target_out" value="${out}"/> |
1099 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1105 <dc:attribute name="artifact-id" value="${a_gid}"/> |
1100 <dc:attribute name="out" value="${out_name}"/> | 1106 <dc:attribute name="out" value="${out_name}"/> |
1101 </dc:element> | 1107 </dc:element> |
1102 </dc:for-each> | 1108 </dc:for-each> |
1103 </sqrel> | 1109 </sqrel> |
1104 </dc:group> | 1110 </dc:call-macro> |
1105 </sq_relations> | 1111 </sq_relations> |
1106 </dc:if> | 1112 </dc:if> |
1107 </dc:filter> | 1113 </dc:filter> |
1108 </dc:macro> | 1114 </dc:macro> |
1109 | 1115 |
1110 <dc:macro name="waterlevels-discharge"> | 1116 <dc:macro name="waterlevels-discharge"> |
1111 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w'"> | 1117 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w'"> |
1112 <dc:if test="dc:has-result()"> | 1118 <dc:if test="dc:has-result()"> |
1113 <waterlevels_discharge> | 1119 <waterlevels_discharge> |
1114 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1120 <dc:call-macro name="collection-group"> |
1115 <discharge description="{dc:group-key()}"> | 1121 <discharge description="{dc:group-key()}"> |
1116 <dc:for-each> | 1122 <dc:for-each> |
1117 <dc:element name="${facet_name}"> | 1123 <dc:element name="${facet_name}"> |
1118 <dc:attribute name="factory" value="winfo"/> | 1124 <dc:attribute name="factory" value="winfo"/> |
1119 <dc:attribute name="target_out" value="${out}"/> | 1125 <dc:attribute name="target_out" value="${out}"/> |
1122 <dc:attribute name="artifact-id" value="${a_gid}"/> | 1128 <dc:attribute name="artifact-id" value="${a_gid}"/> |
1123 <dc:attribute name="out" value="discharge_longitudinal_section"/> | 1129 <dc:attribute name="out" value="discharge_longitudinal_section"/> |
1124 </dc:element> | 1130 </dc:element> |
1125 </dc:for-each> | 1131 </dc:for-each> |
1126 </discharge> | 1132 </discharge> |
1127 </dc:group> | 1133 </dc:call-macro> |
1128 </waterlevels_discharge> | 1134 </waterlevels_discharge> |
1129 </dc:if> | 1135 </dc:if> |
1130 </dc:filter> | 1136 </dc:filter> |
1131 </dc:macro> | 1137 </dc:macro> |
1132 <!-- Macros to load system data --> | 1138 <!-- Macros to load system data --> |