Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7427:2ee825c87f57
(issue965) Handle the case that diffids are not available
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Oct 2013 12:43:26 +0200 |
parents | f4623fe18868 |
children | 76015ac8c5f1 |
comparison
equal
deleted
inserted
replaced
7426:f4623fe18868 | 7427:2ee825c87f57 |
---|---|
1686 We take this string and look for all 4 digit numbers (\d{4}) after | 1686 We take this string and look for all 4 digit numbers (\d{4}) after |
1687 we have removed the uuids from the input string (dc:replace all). | 1687 we have removed the uuids from the input string (dc:replace all). |
1688 On this list of numbers we use the dc:min/max-number functions to | 1688 On this list of numbers we use the dc:min/max-number functions to |
1689 get the extreme values and interpret the result as a number. | 1689 get the extreme values and interpret the result as a number. |
1690 </dc:comment> | 1690 </dc:comment> |
1691 <dc:variable name="year_from" expr=" | 1691 <dc:choose> |
1692 dc:min-number( | 1692 <dc:when test="dc:contains($parameters, 'diffids')"> |
1693 dc:find-all( | 1693 <dc:variable name="year_from" expr=" |
1694 '\d{4}', | 1694 dc:min-number( |
1695 dc:replace-all( | 1695 dc:find-all( |
1696 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" | 1696 '\d{4}', |
1697 type="number"/> | 1697 dc:replace-all( |
1698 <dc:variable name="year_to" expr=" | 1698 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" |
1699 dc:max-number( | 1699 type="number"/> |
1700 dc:find-all( | 1700 <dc:variable name="year_to" expr=" |
1701 '\d{4}', | 1701 dc:max-number( |
1702 dc:replace-all( | 1702 dc:find-all( |
1703 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" | 1703 '\d{4}', |
1704 type="number"/> | 1704 dc:replace-all( |
1705 $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))" | |
1706 type="number"/> | |
1707 </dc:when> | |
1708 <dc:otherwise> | |
1709 <dc:comment>Just show everything</dc:comment> | |
1710 <dc:variable name="year_to" expr="9999" type="number"/> | |
1711 <dc:variable name="year_from" expr="0" type="number"/> | |
1712 </dc:otherwise> | |
1713 </dc:choose> | |
1705 <bedheights> | 1714 <bedheights> |
1706 <dc:call-macro name="bed-heights-single"/> | 1715 <dc:call-macro name="bed-heights-single"/> |
1707 <dc:call-macro name="bed-heights-epoch"/> | 1716 <dc:call-macro name="bed-heights-epoch"/> |
1708 </bedheights> | 1717 </bedheights> |
1709 </dc:macro> | 1718 </dc:macro> |