Skip to content

Commit

Permalink
make the vocabulary-supported preflabel languages clickable (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouralex authored Oct 30, 2019
1 parent 0b32b46 commit d33cd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/concept-shared.twig
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
{% for language,labels in concept.foreignLabels %}
{% for value in labels %}
<div class="row other-languages{% if prevlang != language %} first-of-language{% endif %}">
<div class="col-xs-6 versal{% if value.type == "skos:altLabel" %} replaced{%else %} versal-pref{% endif %}">{% if value.hasXlProperties %}<span class="reified-property-value xl-label"><img src="resource/pics/about.png"></span><div class="reified-tooltip">{% for key, val in value.getXlProperties %}{% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %}<p>{{ key|trans }}: <span class="versal">{{ val }}</span></p>{% endif %}{% endfor %}</div>{% endif %}{{ value.label }}</div>
<div class="col-xs-6 versal{% if value.type == "skos:altLabel" %} replaced{%else %} versal-pref{% endif %}">{% if value.hasXlProperties %}<span class="reified-property-value xl-label"><img src="resource/pics/about.png"></span><div class="reified-tooltip">{% for key, val in value.getXlProperties %}{% if key != 'rdf:type' and key != 'skosxl:literalForm' and val != '' %}<p>{{ key|trans }}: <span class="versal">{{ val }}</span></p>{% endif %}{% endfor %}</div>{% endif %}{%if value.type == "skos:prefLabel" and value.lang in request.vocab.config.languages %}<a href='{{ request.vocabid }}/{{ request.lang }}/{{ request.page }}/{{ request.uri }}?clang={{ value.lang }}' hreflang='{{ value.lang }}'>{{ value.label }}</a>{% else %}{{ value.label }}{%endif%}</div>
<div class="col-xs-6 versal">{% if prevlang != language %}<p>{{ language }}</p>{% endif %}</div>
</div>
{% set prevlang = language %}
Expand Down

0 comments on commit d33cd8e

Please sign in to comment.