{# -*- coding: utf-8 -*- Copyright (C) 2015-2018 CERN. Copyright (C) 2021 New York University. Copyright (C) 2020-2022 TU Wien. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {#- base: invenio-theme v1.3.28 #} {#- changes: quite a few, see "change:" comments in the code #} {%- block head %} {%- block head_meta %} {%- if description %} {%- endif %} {%- if keywords %} {%- endif %} {%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %} {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} {%- endfor %} {%- endif %} {%- endblock head_meta %} {%- block head_title %} {%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %} {{ title }} {%- endblock head_title %} {%- block head_links %} {#- change: favicons in 16x16 and 32x32 #} {%- if keywords %} {%- endif %} {%- block head_links_langs %} {%- if alternate_urls %} {%- for alt_ln, alternate_url in alternate_urls.items() %} {%- endfor %} {%- endif %} {%- endblock %} {%- block head_apple_icons %} {#- change: removed apple touch icons #} {%- endblock head_apple_icons %} {%- endblock head_links %} {%- block header %} {%- endblock header %} {%- block css %} {{- webpack['theme.css'] }} {#- change: removed IE8 compat code #} {%- endblock css %} {%- block tuw_metadata %} {#- change: added tuw_metadata block #} {%- endblock tuw_metadata -%} {%- block tracking %} {#- change: added matomo block #} {%- if config.get("THEME_TUW_MATOMO_ENABLED", False) %} {{- webpack["invenio-theme-tuw-tracking.js"] }} {%- endif %} {%- endblock tracking %} {%- endblock head %} {#- change: formatting, added 'pushable' class #} {#- change: added hidden heading #}

{{ config.THEME_SITENAME }}

{#- change: added matomo code #} {%- if config.get("THEME_TUW_MATOMO_ENABLED", False) %} {#- TODO: matomo_site_id should probably be a config item #} {%- set matomo_url = config.get("THEME_TUW_MATOMO_URL") %} {%- set matomo_site_id = 2 %} {%- if config.get("THEME_TUW_DISPLAY_STAGING_WARNING", False) %} {%- set matomo_site_id = 1 %} {%- endif %} {%- if not matomo_url.endswith("/") %} {%- set matomo_url = matomo_url + "/" %} {%- endif %} {%- endif %} {%- block body %} {%- block bypasslinks %} {%- endblock bypasslinks %} {#- change: removed browserupgrade block (IE < 8) #} {#- change: most of the body_inner block #} {%- block body_inner %} {%- block sidebar %} {#- TODO check if we can rework the sidebar #} {#- * refactor (different file & page structure #} {#- * get rid of the horizontal scroll bar #} {%- endblock sidebar %}
{#- same as upstream #} {%- block page_header %} {%- include config.THEME_HEADER_TEMPLATE %} {%- endblock page_header %} {%- block page_hero %} {%- endblock page_hero %} {#- these seem to have been moved here from the header #} {#- TODO check if they are actually useful #} {%- block breadcrumbs %} {%- endblock breadcrumbs %} {%- block staging_warning -%} {%- if config.THEME_TUW_DISPLAY_STAGING_WARNING -%} {#- TODO: rework this #}

Warning - You are currently working on our test environment. Any data upload to this system may be deleted. If you are looking for our main instance to share data, please visit https://researchdata.tuwien.ac.at

{%- endif -%} {%- endblock staging_warning -%}
{%- block page_body %} {%- include "invenio_theme/body.html" %} {%- endblock page_body %}
{#- same as upstream #} {%- block page_footer %} {%- include config.THEME_FOOTER_TEMPLATE %} {%- endblock page_footer %}
{%- endblock body_inner %} {%- block javascript %} {%- include config.THEME_JAVASCRIPT_TEMPLATE %} {%- endblock javascript %} {%- block trackingcode %} {%- include config.THEME_TRACKINGCODE_TEMPLATE %} {%- endblock trackingcode %} {%- endblock body %}