diff --git a/view/search-result.twig b/view/search-result.twig index aaa81179b..640928140 100644 --- a/view/search-result.twig +++ b/view/search-result.twig @@ -66,19 +66,14 @@
- {% set previous = false %} - {% for propval in concept.groupProperties %} {# loop through ConceptPropertyValue objects #} - {% set outerLast = loop.last %} - {% if propval.uri and propval.type != 'skosmos:memberOfArray'%} {# resources with URI #} - {% spaceless %} - {% if propval.label %} - {{ propval.label(request.contentLang) }} - {% if propval.lang and (propval.lang != request.lang) or explicit_langcodes %} ({{ propval.lang }}){% endif %} - {% if propval.type == 'skosmos:memberOfSuper' %} > {% elseif not loop.last %},{% endif %} - {% endif %} - {% endspaceless %} - {% endif %} - {% endfor %} + {% for groupprop in concept.groupProperties %} + {% for propval in groupprop %} + {{ propval.label(request.contentLang) }} + {% if propval.lang and (propval.lang != request.lang) or explicit_langcodes %} ({{ propval.lang }}){% endif %} + {% if not loop.last %} > {% endif %} + {% endfor %} + {%- if not loop.last %},{% endif %} + {% endfor %}
{% endif %}