From 61a00bfbbc97154177dd4b23b4a85a518c0b44da Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Mon, 11 Jan 2021 11:26:09 +0100 Subject: [PATCH 1/3] bugfix(ui): creator could have potentially no identifiers The macro authors should handle the case where there are no identifiers for a author. Therefore this check had to be added. NOTE: further removed the copyright noting Mojib Wali. we stick with TU Graz further added a newline in the end of the file --- .../templates/invenio_theme_tugraz/macros/authors.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html index 5253eb9..fc4e087 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html @@ -1,8 +1,7 @@ {# Copyright (C) 2020 Zenodo Copyright (C) 2020 TUGRAZ - Copyright (C) 2020 mojib wali. - + invenio-theme-tugraz is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -12,7 +11,7 @@ {%- for creators in authors_list %} -{%- if creators.identifiers.orcid %} +{%- if creators.identifiers and creators.identifiers.orcid %} {%- endif %} @@ -28,4 +27,4 @@
{{group.grouper}}(s)
{{authors(group.list)}} {%- endfor %} -{%- endmacro %} \ No newline at end of file +{%- endmacro %} From 69aff9f7b063f613f1ff97db88768bbdc48b8fdd Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Mon, 11 Jan 2021 13:38:16 +0100 Subject: [PATCH 2/3] feature(ui): show the license also in the frontpage --- .../templates/invenio_theme_tugraz/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 4884dca..ca4c56b 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -98,6 +98,10 @@ {{ r.access.access_right | make_dict_like('access_right') | vocabulary_title('access_right') }} + {%- for right in r.metadata.rights %} + {{ '(' ~ right.identifier ~ ')' }} + {%- endfor %} + From a2c77a8332968583dbf9f31b446fc74722d5d0f8 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Mon, 11 Jan 2021 15:44:50 +0100 Subject: [PATCH 3/3] bugfix(ui): start page license was not a url --- invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index ca4c56b..6dae71b 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -99,7 +99,7 @@ {{ r.access.access_right | make_dict_like('access_right') | vocabulary_title('access_right') }} {%- for right in r.metadata.rights %} - {{ '(' ~ right.identifier ~ ')' }} + {{ '(' ~ right.identifier ~ ')' }} {%- endfor %}