{# -*- coding: utf-8 -*- Copyright (C) 2022 Graz University of Technology. Copyright (C) 2022-2024 TU Wien. Invenio-DAMAP is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- macro render_dmp_button() %} {% set user_jwt = create_auth_jwt() %} {% set dmp_list = query_damap_madmps(user_jwt) if user_jwt is not none else none %} {% set DAMAP_URL = get_damap_url() %} {% if dmp_list is not none %} {% set dmps = dmp_list['hits']['hits'] if dmp_list else [] %}
{{ webpack['invenio-damap.js'] }} {% else %}
{{ _("Connection Error") }}

{{ _("There was an issue connecting to DAMAP. Please try again later.") }}

{% endif %} {%- endmacro %}