Skip to content

Commit

Permalink
documents: set DOI clickable
Browse files Browse the repository at this point in the history
* Adds a link for identifiers of type `DOI`.
* Closes #403.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Jan 29, 2021
1 parent e3cf8a1 commit e2836c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sonar/modules/documents/templates/documents/record.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ <h5 class="d-inline">
{% for identifier in record.identifiedBy %}
<li>
<span class="badge badge-secondary text-light mr-1">{{ _(identifier.type) }}</span>
{% if identifier.type == 'bf:Doi' %}
<a href="https://doi.org/{{ identifier.value }}" target="_blank">{{ identifier.value }}</a>
{% else %}
{{ identifier.value }}
{% endif %}
{% if identifier.source %}
<i class="text-muted ml-1">{{ identifier.source }}</i>
{% endif %}
Expand Down

0 comments on commit e2836c8

Please sign in to comment.