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 %}",