From e2836c8afa40c5f194e0e68287c5d30885bc125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Mon, 18 Jan 2021 15:52:43 +0100 Subject: [PATCH] documents: set DOI clickable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds a link for identifiers of type `DOI`. * Closes #403. Co-Authored-by: Sébastien Délèze --- sonar/modules/documents/templates/documents/record.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonar/modules/documents/templates/documents/record.html b/sonar/modules/documents/templates/documents/record.html index 8eb13529..dc9a3125 100644 --- a/sonar/modules/documents/templates/documents/record.html +++ b/sonar/modules/documents/templates/documents/record.html @@ -226,7 +226,11 @@
{% for identifier in record.identifiedBy %}
  • {{ _(identifier.type) }} + {% if identifier.type == 'bf:Doi' %} + {{ identifier.value }} + {% else %} {{ identifier.value }} + {% endif %} {% if identifier.source %} {{ identifier.source }} {% endif %}