From 61a00bfbbc97154177dd4b23b4a85a518c0b44da Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Mon, 11 Jan 2021 11:26:09 +0100 Subject: [PATCH] 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 %}