diff --git a/heritage.json b/heritage.json index b8ee500..00a17ad 100644 --- a/heritage.json +++ b/heritage.json @@ -1,9 +1,29 @@ { "type": "overpass", "query": { - "8": "nwr[heritage=1];", - "11": "nwr[heritage~'^(1|2)$'];" + "8": "nwr[heritage~\"^(|.*;)1(|;.*)$\"];", + "11": "nwr[heritage~\"^(|.*;)(1|2)(|;.*)$\"];", + "13": "nwr[heritage];" }, "feature": { + "description": [ + "{% for op in attribute(tags, 'heritage:operator')|split(';') %}", + "{% if const[op].url and attribute(tags, const[op].key) %}{% endif -%}", + "{{- tagTrans('heritage:operator', op) -}}", + "{%- if attribute(tags, const[op].key) %}: {{ attribute(tags, const[op].key) }}{% endif %}", + "{% if const[op].url and attribute(tags, const[op].key) %}{% endif -%}", + "
", + "{% endfor %}" + ], + "priority": "{{ min(tags.heritage|split(\";\")) }}" + }, + "const": { + "whc": { + "key": "ref:whc" + }, + "bda": { + "key": "ref:at:bda", + "url": "https://tools.wmflabs.org/denkmalliste/index.php?action=EinzelID&ID=$1" + } } }