Skip to content

Commit

Permalink
Fix concept group display also in search result list. Related to #811
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Dec 12, 2018
1 parent 6995d16 commit 0abb274
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions view/search-result.twig
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,14 @@
<img class="property-hover" src="resource/pics/group.gif">
</span>
<div class="property-values">
{% 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 %}
<span class="versal value">{{ propval.label(request.contentLang) }}</span>
{% if propval.lang and (propval.lang != request.lang) or explicit_langcodes %}<span class="versal"> ({{ propval.lang }})</span>{% endif %}
{% if propval.type == 'skosmos:memberOfSuper' %}<span class="versal"> > </span> {% elseif not loop.last %},{% endif %}
{% endif %}
{% endspaceless %}
{% endif %}
{% endfor %}
{% for groupprop in concept.groupProperties %}
{% for propval in groupprop %}
<span class="versal value">{{ propval.label(request.contentLang) }}</span>
{% if propval.lang and (propval.lang != request.lang) or explicit_langcodes %}<span class="versal"> ({{ propval.lang }})</span>{% endif %}
{% if not loop.last %}<span class="versal"> &#62; </span>{% endif %}
{% endfor %}
{%- if not loop.last %},{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
Expand Down

0 comments on commit 0abb274

Please sign in to comment.