From 6cdf7f6076ec0b853d166b2f9b55737cf4be0e51 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Mon, 19 Apr 2021 09:21:20 +0200
Subject: [PATCH] Add link to ORCID page in contributor info table

---
 .../scipost/_private_info_as_table.html       | 21 +++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/scipost/templates/scipost/_private_info_as_table.html b/scipost/templates/scipost/_private_info_as_table.html
index cb183f860..8b1548029 100644
--- a/scipost/templates/scipost/_private_info_as_table.html
+++ b/scipost/templates/scipost/_private_info_as_table.html
@@ -8,7 +8,15 @@
       <a href="{% url 'security:security' %}" class="text-warning">&rarr;&nbsp;security&nbsp;check</a>
     </td>
   </tr>
-  <tr><td>ORCID id: </td><td>{{ contributor.profile.orcid_id }}</td></tr>
+  <tr>
+    <td>ORCID id: </td>
+    <td>
+      {% if contributor.profile.orcid_id %}
+	<a href="https://orcid.org/{{ contributor.profile.orcid_id }}" target="_blank">{{ contributor.profile.orcid_id }}</a>
+      {% else %}(no ORCID id known)
+      {% endif %}
+    </td>
+  </tr>
   <tr>
     <td>Affiliation(s):</td>
     <td>
@@ -16,6 +24,15 @@
     </td>
   </tr>
   <tr><td>Address: </td><td>{{ contributor.address }}</td></tr>
-  <tr><td>Personal web page: </td><td>{{ contributor.profile.webpage }}</td></tr>
+  <tr>
+    <td>Personal web page:</td>
+    <td>
+      {% if contributor.profile.webpage %}
+	<a href="{{ contributor.profile.webpage }}" target="_blank">{{ contributor.profile.webpage }}</a>
+      {% else %}
+	(no webpage known)
+      {% endif %}
+    </td>
+  </tr>
   <tr><td>Accept SciPost emails: </td><td>{{ contributor.profile.accepts_SciPost_emails }}</td></tr>
 </table>
-- 
GitLab