From 0fcdd845b0b10401c8e350b0a0ac08d60b000443 Mon Sep 17 00:00:00 2001 From: Will Usher Date: Wed, 18 Dec 2024 17:37:19 +0100 Subject: [PATCH 1/3] Replace orcid image with static file --- app/static/img/ORCID-iD_icon_vector.svg | 4 ++++ app/templates/author.html | 6 +++--- app/templates/authors.html | 2 +- app/templates/output.html | 2 +- app/templates/output_list.j2 | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 app/static/img/ORCID-iD_icon_vector.svg diff --git a/app/static/img/ORCID-iD_icon_vector.svg b/app/static/img/ORCID-iD_icon_vector.svg new file mode 100644 index 0000000..375b457 --- /dev/null +++ b/app/static/img/ORCID-iD_icon_vector.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/templates/author.html b/app/templates/author.html index 06d48d1..c4341bc 100644 --- a/app/templates/author.html +++ b/app/templates/author.html @@ -8,7 +8,7 @@

{{ author.first_name }} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %}

@@ -50,8 +50,8 @@
Collaborators
  • {{ colab.first_name}} {{ colab.last_name }} {% if colab.orcid %} - ORCID logo - {% endif %}
  • + ORCID logo {% endif %} +{ % endif %} {% endfor %} diff --git a/app/templates/authors.html b/app/templates/authors.html index 7573665..f6910bc 100644 --- a/app/templates/authors.html +++ b/app/templates/authors.html @@ -7,7 +7,7 @@ {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %} {% if author.affiliation %} {% for id, value in author.affiliation|dictsort %} diff --git a/app/templates/output.html b/app/templates/output.html index da72a9d..540f04e 100644 --- a/app/templates/output.html +++ b/app/templates/output.html @@ -58,7 +58,7 @@
    Authors
    {% for author in output.authors %} {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} - ORCID logo +  logo {% endif %} {% endfor %} diff --git a/app/templates/output_list.j2 b/app/templates/output_list.j2 index 239fbff..ac8d6e6 100644 --- a/app/templates/output_list.j2 +++ b/app/templates/output_list.j2 @@ -40,7 +40,7 @@ {% for author in output.authors %} {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %} {% endfor %} {% if output.outputs.publication_year %}({{ output.outputs.publication_year }}){% endif %} From 5bb68c1da042ba12fd4437bbbc0d0b326e582d46 Mon Sep 17 00:00:00 2001 From: Will Usher Date: Wed, 18 Dec 2024 17:46:44 +0100 Subject: [PATCH 2/3] Change static specification for orcid for flask --- app/templates/author.html | 4 ++-- app/templates/authors.html | 2 +- app/templates/output.html | 2 +- app/templates/output_list.j2 | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/templates/author.html b/app/templates/author.html index c4341bc..a7d6525 100644 --- a/app/templates/author.html +++ b/app/templates/author.html @@ -8,7 +8,7 @@

    {{ author.first_name }} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %}

    @@ -50,7 +50,7 @@
    Collaborators
  • {{ colab.first_name}} {{ colab.last_name }} {% if colab.orcid %} - ORCID logo {% endif %}
  • + ORCID logo {% endif %} { % endif %} {% endfor %} diff --git a/app/templates/authors.html b/app/templates/authors.html index f6910bc..10de8ad 100644 --- a/app/templates/authors.html +++ b/app/templates/authors.html @@ -7,7 +7,7 @@ {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %} {% if author.affiliation %} {% for id, value in author.affiliation|dictsort %} diff --git a/app/templates/output.html b/app/templates/output.html index 540f04e..f556bb4 100644 --- a/app/templates/output.html +++ b/app/templates/output.html @@ -58,7 +58,7 @@
    Authors
    {% for author in output.authors %} {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} -  logo +  logo {% endif %} {% endfor %} diff --git a/app/templates/output_list.j2 b/app/templates/output_list.j2 index ac8d6e6..7e6fdea 100644 --- a/app/templates/output_list.j2 +++ b/app/templates/output_list.j2 @@ -40,7 +40,7 @@ {% for author in output.authors %} {{ author.first_name}} {{ author.last_name }} {% if author.orcid %} - ORCID logo + ORCID logo {% endif %} {% endfor %} {% if output.outputs.publication_year %}({{ output.outputs.publication_year }}){% endif %} From 2ccc0e83cab8718d31e6632282be5e6d07831dcf Mon Sep 17 00:00:00 2001 From: Will Usher Date: Wed, 18 Dec 2024 17:51:31 +0100 Subject: [PATCH 3/3] Removed extraneous if statement --- app/templates/author.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/author.html b/app/templates/author.html index a7d6525..006dd25 100644 --- a/app/templates/author.html +++ b/app/templates/author.html @@ -50,8 +50,8 @@
    Collaborators
  • {{ colab.first_name}} {{ colab.last_name }} {% if colab.orcid %} - ORCID logo {% endif %}
  • -{ % endif %} + ORCID logo + {% endif %} {% endfor %}