From 07e205f04cb10f16e4bd17e31ccf446f9611c12f Mon Sep 17 00:00:00 2001 From: David Eckhard Date: Wed, 10 Feb 2021 10:01:39 +0100 Subject: [PATCH] bugfix(*): fix record creators name access access name via creator.person_or_org.name. --- .../semantic-ui/js/invenio_theme_tugraz/search/components.js | 2 +- .../templates/invenio_theme_tugraz/macros/authors.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/search/components.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/search/components.js index ee33dcc..5a35cde 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/search/components.js +++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/search/components.js @@ -94,7 +94,7 @@ const Creator = ({creator}) => { return (
- {creator.name} + {creator.person_or_org.name}
); }; 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 fc4e087..67decb6 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html @@ -15,7 +15,7 @@ {%- endif %} -{{creators.name}} +{{creators.person_or_org.name}} {% if not loop.last %}; {% endif %} {%- endfor %}