comparison artifacts/doc/conf/meta-data.xml @ 6581:5f0e3e9cf6f3

issue1394: meta-data.xml: Add DC-Config for (pseudo-)out "differenceable".
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 17 Jul 2013 12:10:23 +0200
parents d99575a659af
children d553c4a1829d
comparison
equal deleted inserted replaced
6580:663c159f3b43 6581:5f0e3e9cf6f3
268 </dc:when> 268 </dc:when>
269 <dc:when test="$out = 'minfo-heights-epoch'"> 269 <dc:when test="$out = 'minfo-heights-epoch'">
270 <bedheights> 270 <bedheights>
271 <dc:call-macro name="bed-heights-epoch"/> 271 <dc:call-macro name="bed-heights-epoch"/>
272 </bedheights> 272 </bedheights>
273 </dc:when>
274 <dc:when test="$out = 'differenceable'">
275 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'">
276 <dc:call-macro name="basedata_0"/>
277 <dc:call-macro name="basedata_1_additionals"/>
278 <dc:call-macro name="basedata_2_fixations"/>
279 <dc:call-macro name="basedata_4_heightmarks-points"/>
280 <dc:call-macro name="basedata_5_flood-protections"/>
281 <dc:call-macro name="minfo-heights"/>
282 </dc:if>
273 </dc:when> 283 </dc:when>
274 <dc:when test="$out = 'waterlevels'"> 284 <dc:when test="$out = 'waterlevels'">
275 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> 285 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'">
276 <dc:call-macro name="basedata_0"/> 286 <dc:call-macro name="basedata_0"/>
277 <dc:call-macro name="basedata_1_additionals"/> 287 <dc:call-macro name="basedata_1_additionals"/>
345 <dc:call-macro name="fix-wq-curve"/> 355 <dc:call-macro name="fix-wq-curve"/>
346 </dc:when> 356 </dc:when>
347 <dc:when test="$out = 'duration_curve'"> 357 <dc:when test="$out = 'duration_curve'">
348 <dc:call-macro name="duration-curve"/> 358 <dc:call-macro name="duration-curve"/>
349 </dc:when> 359 </dc:when>
360 <dc:when test="$out = 'differenceable'">
361 <dc:call-macro name="differenceable-fix"/>
362 </dc:when>
350 <dc:when test="$out = 'waterlevels'"> 363 <dc:when test="$out = 'waterlevels'">
351 <dc:call-macro name="waterlevels-fix"/> 364 <dc:call-macro name="waterlevels-fix"/>
352 </dc:when> 365 </dc:when>
353 <dc:when test="$out = 'fix_wq_curve'"> 366 <dc:when test="$out = 'fix_wq_curve'">
354 <dc:call-macro name="waterlevels-fix"/> 367 <dc:call-macro name="waterlevels-fix"/>
710 </dc:group> 723 </dc:group>
711 </waterlevels> 724 </waterlevels>
712 </dc:if> 725 </dc:if>
713 </dc:filter> 726 </dc:filter>
714 </dc:macro> 727 </dc:macro>
728
729 <dc:comment comment="For building differences." />
730 <dc:macro name="differenceable-fix">
731 <beddifferences>
732 <dc:call-macro name="bedheight-differences"/>
733 </beddifferences>
734 <dc:filter expr="($out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w') and
735 (not ($current-state-id = 'state.winfo.uesk.wsp' and $ld_m = 'location'))">
736 <dc:if test="dc:has-result()">
737 <vollmer-waterlevels>
738 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)">
739 <waterlevels description="{dc:group-key()}">
740 <dc:for-each>
741 <dc:choose>
742 <dc:when test="$ld_m = 'location'">
743 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/>
744 </dc:when>
745 <dc:otherwise>
746 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ',
747 $deffrom, ' bis KM ', $defto)"/>
748 </dc:otherwise>
749 </dc:choose>
750 <dc:comment comment="Vollmer curves need own factory"/>
751 <dc:if test="$a_state = 'state.fix.vollmer.compute'">
752 <dc:element name="${facet_name}">
753 <dc:attribute name="description" value="${combined_desc}"/>
754 <dc:attribute name="ids" value="${facet_num}"/>
755 <dc:attribute name="factory" value="fixanalysis"/>
756 <dc:attribute name="target_out" value="${out}"/>
757 <dc:attribute name="artifact-id" value="${a_gid}"/>
758 <dc:attribute name="out" value="longitudinal_section"/>
759 </dc:element>
760 </dc:if>
761 </dc:for-each>
762 </waterlevels>
763 </dc:group>
764 </vollmer-waterlevels>
765 <waterlevels>
766 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)">
767 <waterlevels description="{dc:group-key()}">
768 <dc:for-each>
769 <dc:choose>
770 <dc:when test="$ld_m = 'location'">
771 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/>
772 </dc:when>
773 <dc:otherwise>
774 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ',
775 $deffrom, ' bis KM ', $defto)"/>
776 </dc:otherwise>
777 </dc:choose>
778 <dc:if test="not($a_state = 'state.fix.vollmer.compute')">
779 <dc:element name="${facet_name}">
780 <dc:attribute name="description" value="${combined_desc}"/>
781 <dc:attribute name="ids" value="${facet_num}"/>
782 <dc:attribute name="factory" value="winfo"/>
783 <dc:attribute name="target_out" value="${out}"/>
784 <dc:attribute name="artifact-id" value="${a_gid}"/>
785 <dc:attribute name="out" value="longitudinal_section"/>
786 </dc:element>
787 </dc:if>
788 </dc:for-each>
789 </waterlevels>
790 </dc:group>
791 </waterlevels>
792 </dc:if>
793 </dc:filter>
794 </dc:macro>
795
715 796
716 <dc:macro name="floodmap-hws-user"> 797 <dc:macro name="floodmap-hws-user">
717 <dc:comment>No grouping in this?</dc:comment> 798 <dc:comment>No grouping in this?</dc:comment>
718 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'"> 799 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'">
719 <own-hws> 800 <own-hws>

http://dive4elements.wald.intevation.org