comparison artifacts/doc/conf/meta-data.xml @ 8773:cc1f59766e49

(issue1839) Consider more than one location in ld_locations.
author Tom Gottfried <tom@intevation.de>
date Fri, 28 Aug 2015 16:24:01 +0200
parents af840bf7f05a
children 7bbfb24e6eec
comparison
equal deleted inserted replaced
8772:be28bb0c7f50 8773:cc1f59766e49
3195 <dc:macro-body/> 3195 <dc:macro-body/>
3196 </dc:filter> 3196 </dc:filter>
3197 </dc:macro> 3197 </dc:macro>
3198 3198
3199 <dc:macro name="artifact-range"> 3199 <dc:macro name="artifact-range">
3200 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))"/> 3200 <dc:choose>
3201 <dc:variable name="tokm" type="number" expr="dc:toValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))"/> 3201 <dc:when test="dc:coalesce(dc:get('ld_locations'), ' ') != ' '">
3202 <dc:if test="$fromkm > $tokm"> 3202 <dc:variable name="fromkm" type="number"
3203 <dc:message>Inverting KM filter.</dc:message> 3203 expr="dc:min-number(dc:find-all('\d*\.?\d*',
3204 <dc:variable name="fromkm" type="number" expr="dc:toValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))"/> 3204 dc:get('ld_locations')))"/>
3205 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))"/> 3205 <dc:variable name="tokm" type="number"
3206 </dc:if> 3206 expr="dc:max-number(dc:find-all('\d*\.?\d*',
3207 dc:get('ld_locations')))"/>
3208 </dc:when>
3209 <dc:otherwise>
3210 <dc:variable name="fromkm" type="number"
3211 expr="dc:fromValue(dc:get('ld_mode'),
3212 dc:get('ld_locations'), dc:get('ld_from'))"/>
3213 <dc:variable name="tokm" type="number"
3214 expr="dc:toValue(dc:get('ld_mode'),
3215 dc:get('ld_locations'), dc:get('ld_to'))"/>
3216 <dc:if test="$fromkm > $tokm">
3217 <dc:message>Inverting KM filter.</dc:message>
3218 <dc:variable name="fromkm" type="number"
3219 expr="dc:toValue(dc:get('ld_mode'),
3220 dc:get('ld_locations'), dc:get('ld_to'))"/>
3221 <dc:variable name="tokm" type="number"
3222 expr="dc:fromValue(dc:get('ld_mode'),
3223 dc:get('ld_locations'), dc:get('ld_from'))"/>
3224 </dc:if>
3225 </dc:otherwise>
3226 </dc:choose>
3207 <dc:macro-body/> 3227 <dc:macro-body/>
3208 </dc:macro> 3228 </dc:macro>
3209 3229
3210 </datacage> 3230 </datacage>
3211 </dc:template> 3231 </dc:template>

http://dive4elements.wald.intevation.org