From 70626e95bfdd754a596265b2e37c2f578b06d657 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sat, 6 Oct 2018 14:01:16 +0200 Subject: [PATCH] Explicitly relate funders to organizations on pub detail --- journals/templates/journals/publication_detail.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/journals/templates/journals/publication_detail.html b/journals/templates/journals/publication_detail.html index 324d8282d..1f28871ec 100644 --- a/journals/templates/journals/publication_detail.html +++ b/journals/templates/journals/publication_detail.html @@ -129,7 +129,15 @@ <div class="card-content"> <ul class="m-2"> {% for funder in publication.get_all_funders %} + {% if funder.organization %} + {% if funder.name != funder.organization.name and funder.name != funder.organization.name_original %} + <li>{{ funder }} (through Organization: <a href="{{ funder.organization.get_absolute_url }}">{{ funder.organization.name_and_acronym }}</a>)</li> + {% else %} + <li><a href="{{ funder.organization.get_absolute_url }}">{{ funder.organization.name_and_acronym }}</a></li> + {% endif %} + {% else %} <li><a href="{{ funder.get_absolute_url }}">{{ funder }}</a></li> + {% endif %} {% endfor %} </ul> </div> -- GitLab