{# 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. #} {% set options = [] %} {% set only_rdm = config.OVERRIDE_SHOW_RDM_SEARCH %} {# Ensure at least one default option exists #} {% set base_option = {"key": "rdm", "text": "Research Results", "value": "/records/search", "title": "Research Data"} %} {% set options = options + [base_option] %} {% if config.OVERRIDE_SHOW_PUBLICATIONS_SEARCH and not only_rdm %} {% set pub_option = { "key": "marc21", "text": "Publications", "value": invenio_url_for("invenio_records_marc21.search"), "title": "Publication", } %} {% set options = options + [pub_option] %} {% endif %} {% if config.OVERRIDE_SHOW_EDUCATIONAL_RESOURCES and not only_rdm %} {% set edu_option = { "key": "lom", "text": "Educational Resources", "value": invenio_url_for("invenio_records_lom.search"), "title": "OER", } %} {% set options = options + [edu_option] %} {% endif %} {% if options | length > 1 %} {% set all_option = { "key": "records", "text": "All", "value": invenio_url_for("invenio_search_ui.search"), "title": "repo", } %} {% set options = [all_option] + options %} {% endif %} {# Ensure options is not None or Undefined #} {% set options_json = options | tojson if options is not none else "[]" %} {# Hidden element required by invenio_app_rdm search page JS to read options #} {# ====== ROW 1: Logo section ====== #}
{# ====== ROW 2: Top nav bar ====== #}
{# Mobile-only hamburger #}
{{ _("Dashboard") }}
{{ _("Research Results") }} {% if config.OVERRIDE_SHOW_EDUCATIONAL_RESOURCES %} {{ _("Educational Resources") }} {% endif %} {{ _("Requests") }} {% if current_menu.submenu("dashboard").submenu("curation-overview").visible %} {{ _("Curation Requests") }} {% endif %}
{{ _("Upload Research Result") }} {% if config.OVERRIDE_SHOW_PUBLICATIONS_SEARCH %} {{ _("Upload Publication") }} {% endif %} {% if config.OVERRIDE_SHOW_EDUCATIONAL_RESOURCES %} {{ _("Upload Educational Resource") }} {% endif %}
{%- for item in current_menu.submenu('profile-admin').children if item.visible %} {% set admin_text = item.text|safe %} {% if 'Administration' in item.text|safe %} {% set admin_text = _("Administration") %} {%- endif %} {{ admin_text }} {%- endfor %}
{{ _("Help") }}
{{ _("Search Guide") }} {%- if config.get('OVERRIDE_SHOW_CONTACT') or config.get('OVERRIDE_FRONTPAGE_RIGHT') %} {{ _("Contact") }} {%- endif %}
{%- for l in current_i18n.get_locales() %} {%- if current_i18n.language != l.language %} {{ l.get_display_name().upper()[0:2] }} {%- endif %} {%- endfor %}
{%- block navbar_right %} {%- include config.THEME_HEADER_LOGIN_TEMPLATE %} {%- endblock navbar_right %}
{%- if config.get('OVERRIDE_SHOW_CONTACT') or config.get('OVERRIDE_FRONTPAGE_RIGHT') %} {%- endif %}