Skip to content

Commit

Permalink
A broken properties view on the concept page fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahonen Mika J committed Sep 17, 2021
1 parent aff26b4 commit 5214675
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions view/concept-shared.twig
Original file line number Diff line number Diff line change
Expand Up @@ -128,25 +128,7 @@
{% endif %}
{% elseif property.type == 'rdf:type' %}<p>{{ propval.label|trans }}</p>
{% 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 %}
<span class="reified-property-value xl-label">
<img src="resource/pics/about.png">
</span>
<div class="reified-tooltip">
{% for key, val in propval.getXlProperties %}
{% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %}
<p>{{ key|trans }}:<span class="versal">{{ val }}</span></p>
{% endif %}
{% endfor %}
</div>
{% endif %}
<span>
{% 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 %}
</span>
{% if propval.lang == request.contentLang or propval.lang == null or not request.contentLang and propval.lang == request.lang %}{% if propval.hasXlProperties %}<span class="reified-property-value xl-label"><img src="resource/pics/about.png"></span><div class="reified-tooltip">{% for key, val in propval.getXlProperties %}{% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %}<p>{{ key|trans }}: <span class="versal">{{ val }}</span></p>{% endif %}{% endfor %}</div>{% endif %}<span{% 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 %}</span>
{% endif %}
{% endif %}
</li>
Expand Down

0 comments on commit 5214675

Please sign in to comment.