From 4a35810cbeaaae99217211a5359c73dd8cf87fda Mon Sep 17 00:00:00 2001 From: Tim Davies Date: Thu, 10 Aug 2017 19:40:51 +0100 Subject: [PATCH 1/2] Update to include links in the 'to find identifiers' block --- prefix_finder/frontend/templates/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prefix_finder/frontend/templates/list.html b/prefix_finder/frontend/templates/list.html index d042cf3..2a27854 100644 --- a/prefix_finder/frontend/templates/list.html +++ b/prefix_finder/frontend/templates/list.html @@ -52,7 +52,9 @@

Description

To find identifiers

+

{%if org_list.access.publicDatabase %}A public database is available for this list at {{ org_list.access.publicDatabase }}.{% else %}This list is not available online. You may need to contact the organization you plan to identify to ask if they have been given an identifier or registration number by {{ org_list.name.en }} {% endif %}

{{ org_list.access.guidanceOnLocatingIds|urlize|linebreaks}}

+ {% if org_list.links.opencorporates %}

This list can also be searched on OpenCorporates.

{% endif %}
From 7d18401b3d6d4998f8294141ebfc2ae23cd7a42d Mon Sep 17 00:00:00 2001 From: Tim Davies Date: Tue, 23 Jan 2018 11:28:38 +0100 Subject: [PATCH 2/2] Updating list template with better logic for finding identifiers --- prefix_finder/frontend/templates/list.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/prefix_finder/frontend/templates/list.html b/prefix_finder/frontend/templates/list.html index 2a27854..a9ced8f 100644 --- a/prefix_finder/frontend/templates/list.html +++ b/prefix_finder/frontend/templates/list.html @@ -52,7 +52,23 @@

Description

To find identifiers

-

{%if org_list.access.publicDatabase %}A public database is available for this list at {{ org_list.access.publicDatabase }}.{% else %}This list is not available online. You may need to contact the organization you plan to identify to ask if they have been given an identifier or registration number by {{ org_list.name.en }} {% endif %}

+ {%if org_list.access.publicDatabase or org_list.access.onlineAccessDetails %} + {%if org_list.access.publicDatabase %} +

+ A public database is available for this list at {{ org_list.access.publicDatabase }}. +

+ {% endif %} + {%if org_list.access.onlineAccessDetails %} +

+ {{ org_list.access.onlineAccessDetails }} +

+ {% endif %} + {% else %} +

+ This list is not available online. You may need to contact the organization you plan to identify to ask if they have been given an identifier or registration number by {{ org_list.name.en }}. +

+ {% endif %} +

{{ org_list.access.guidanceOnLocatingIds|urlize|linebreaks}}

{% if org_list.links.opencorporates %}

This list can also be searched on OpenCorporates.

{% endif %}