From 75bb5377c8790d521f12937ca62876cdfc441e14 Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 12 Nov 2020 11:12:55 +0100 Subject: [PATCH] migrate(datamodel):changed fields to match the new data model structure. * Orcid => orcid * filter contributertype_title deprecated * records.metadata.title and for additional title there is a new field additional_titles. * records.metadata.description and for additional description there is a new field additional_descriptions. This closes #114. --- .../templates/invenio_theme_tugraz/index.html | 4 ++-- .../templates/invenio_theme_tugraz/macros/authors.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index c299ed7..5fdfe68 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -70,7 +70,7 @@

- {{r.metadata.titles[0].title}} + {{r.metadata.title}}

@@ -80,7 +80,7 @@ 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 ecfe24d..5253eb9 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/macros/authors.html @@ -12,8 +12,8 @@ {%- for creators in authors_list %} -{%- if creators.identifiers.Orcid %} - +{%- if creators.identifiers.orcid %} + {%- endif %} {{creators.name}} @@ -25,7 +25,7 @@ {%- macro contributors(contributors_list) %} {%- for group in contributors_list|groupby('type')%} -
{{group.grouper|contributortype_title}}(s)
+
{{group.grouper}}(s)
{{authors(group.list)}} {%- endfor %} {%- endmacro %} \ No newline at end of file