From c9bc56e16810faf6c5705ea6e44e4ca6ee1e5115 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Sun, 17 Jul 2022 20:44:56 +0200 Subject: [PATCH] fix broken search page the invenioRDM version v9.1 introduced a new search feature. the implementation assumes that the id header-search-bar exists on the page. if that is not the case the page will not be rendered. this fix adds a hidden search element as invenioRDM v9.1 introduced. the page is not using this at the moment because it would need some further layout adjustments. further moves this fix the local search element to the header to be existent on the index and search page. for the future this should be undone and the new invenioRDM search should be used. --- .../invenio_theme_tugraz/header.html | 19 +++++++++++++++++++ .../templates/invenio_theme_tugraz/index.html | 17 ----------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index 51bb619..36922e5 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -79,4 +79,23 @@ {%- include "invenio_theme/breadcrumbs.html" %} {%- endblock breadcrumbs %} #} + +
+ {% include "invenio_app_rdm/searchbar.html" %} +
+ +
+
+
+ +
+
+
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 69324a0..086c962 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -17,25 +17,8 @@ {%- block page_body %}
- {%- block frontpage_search %} - - {%- block frontpage_form %} -
-
- -
-
- {%- endblock frontpage_form %} -{%- endblock frontpage_search %}