From dc4d262e5c0c1d22297ede35e2f73d97ebafb4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 8 Feb 2018 13:15:20 +0100 Subject: [PATCH] Update 'edible-plants.json' --- edible-trees.json => edible-plants.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename edible-trees.json => edible-plants.json (92%) diff --git a/edible-trees.json b/edible-plants.json similarity index 92% rename from edible-trees.json rename to edible-plants.json index 736078d..eab8436 100644 --- a/edible-trees.json +++ b/edible-plants.json @@ -14,19 +14,22 @@ }, "feature": { "pre": [ + "{% set species = null %}", "{% if tags.taxon %}", "{% set species = tags.taxon %}", "{% else %}", "{% set species = tags.species %}", "{% endif %}", "", + "{% set data = null %}", "{% for d in const %}", "{% if species|matches(d.match) %}", - "{% set data = d }}", + "{% set data = d %}", "{% endif %}", "{% endfor %}" ], "description": [ + "{{ attribute(data, \"name:en\") }} -", "{% if tags.taxon %}", "{{ localizedTag(tags, 'taxon') }}", "{% else %}",