{# Copyright (C) 2020-2026 Graz University of Technology. invenio-override is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {# Renders a multi-type search bar above search results. Shows only when more than one search type is configured. #} {%- set _sw_options = [] %} {%- set _sw_options = _sw_options + [{"text": _("Research Results"), "value": "/records/search"}] %} {%- if config.get('OVERRIDE_SHOW_PUBLICATIONS_SEARCH') %} {%- set _sw_options = _sw_options + [{"text": _("Publications"), "value": url_for("invenio_records_marc21.search")}] %} {%- endif %} {%- if config.get('OVERRIDE_SHOW_EDUCATIONAL_RESOURCES') %} {%- set _sw_options = _sw_options + [{"text": _("Educational Resources"), "value": url_for("invenio_records_lom.search")}] %} {%- endif %} {%- if _sw_options | length > 1 %} {%- set _sw_options = [{"text": _("All"), "value": url_for("invenio_search_ui.search")}] + _sw_options %} {%- endif %} {%- if _sw_options | length > 1 %} {%- endif %}