diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js index 0191d6b..1ff4b72 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js +++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js @@ -1,5 +1,9 @@ import $ from "jquery"; import "semantic-ui-css"; +import { MultipleOptionsSearchBar } from "@js/invenio_search_ui/components"; +import { i18next } from "@translations/invenio_app_rdm/i18next"; +import ReactDOM from "react-dom"; +import React from "react"; // called on document ready $(function () { @@ -37,3 +41,14 @@ export function toggleVisibility(id) { } window.toggleVisibility = toggleVisibility; + +const headerSearchbar = document.getElementById("header-search-bar"); +const searchBarOptions = JSON.parse(headerSearchbar.dataset.options); + +ReactDOM.render( + , + headerSearchbar +); diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index 36922e5..51bb619 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -79,23 +79,4 @@ {%- include "invenio_theme/breadcrumbs.html" %} {%- endblock breadcrumbs %} #} - -
- {% include "invenio_app_rdm/searchbar.html" %} -
- -
-
-
- -
-
-
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html index 4248fa2..e4247f1 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html @@ -11,8 +11,11 @@