From 52146757f0b85fb1fec6b7e7e3722bc698ba3145 Mon Sep 17 00:00:00 2001 From: Ahonen Mika J Date: Fri, 17 Sep 2021 12:21:41 +0300 Subject: [PATCH] A broken properties view on the concept page fixed --- view/concept-shared.twig | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/view/concept-shared.twig b/view/concept-shared.twig index fbbd35de1..debd6948a 100644 --- a/view/concept-shared.twig +++ b/view/concept-shared.twig @@ -128,25 +128,7 @@ {% endif %} {% elseif property.type == 'rdf:type' %}

{{ propval.label|trans }}

{% else %} {# Literals (no URI), eg. alternative labels as properties #} - {% if propval.lang == request.contentLang or propval.lang == null or not request.contentLang and propval.lang == request.lang %} - {% if propval.hasXlProperties %} - - - -
- {% for key, val in propval.getXlProperties %} - {% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %} -

{{ key|trans }}:{{ val }}

- {% endif %} - {% endfor %} -
- {% endif %} - - {% if property.type == 'skos:altLabel' %} class="replaced"{% endif %} - {% if propval.containsHtml %}{{ propval.label|raw }}{% else %}{{ propval.label }}{% endif %} - {% if propval.lang and (request.contentLang and propval.lang != request.contentLang or explicit_langcodes) %}({{ propval.lang }}){% endif %} - {% if propval.datatype %} ({{ propval.datatype }}){% endif %} - + {% if propval.lang == request.contentLang or propval.lang == null or not request.contentLang and propval.lang == request.lang %}{% if propval.hasXlProperties %}
{% for key, val in propval.getXlProperties %}{% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %}

{{ key|trans }}: {{ val }}

{% endif %}{% endfor %}
{% endif %}{% if propval.containsHtml %}{{ propval.label|raw }}{% else %}{{ propval.label }}{% endif %}{% if propval.lang and (request.contentLang and propval.lang != request.contentLang or explicit_langcodes) %} ({{ propval.lang }}){% endif %}{% if propval.datatype %} ({{ propval.datatype }}){% endif %} {% endif %} {% endif %}