{# -*- coding: utf-8 -*- Copyright (C) 2016-2023 CERN. Copyright (C) 2024 Graz University of Technology. Invenio-Curations 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 the rdm-curation request details page. #} {%- extends "invenio_requests/details/index.html" %} {%- set is_curator = current_user.has_role(config["CURATIONS_MODERATION_ROLE"]) %} {%- set is_uploader = record and current_user.id|string == record.parent.access.owned_by.user|string %} {%- set active_dashboard_menu_item = "curation-overview" if is_curator else "requests" %} {%- block request_header %} {%- set back_button_url = url_for("invenio_curations.curation_requests_overview" if is_curator else "invenio_app_rdm_users.requests") %} {%- from "invenio_requests/macros/request_header.html" import inclusion_request_header %} {{ inclusion_request_header( request=invenio_request, accepted=False, back_button_url=back_button_url, back_button_text=_("Back to requests") ) }} {#- display some contextual info in the request's header #}

{%- if is_curator and is_uploader %} You are reviewing your own dataset! {%- elif is_curator %} When the request is accepted, the uploader will need to publish the dataset themselves. {%- elif is_uploader %} {%- if invenio_request.status == "accepted" %} The record has been accepted — you can now publish it yourself on its deposit page! Edits before initial publication will reset the review. {%- else %} When the record gets accepted, you will be able to publish it yourself! {%- endif %} {%- else %} Are you an admin, or how did you get access to this request? {%- endif %}

{%- endblock request_header %} {%- block request_timeline %}
{%- if record %} {%- endif %}
{{ super() }}
{%- if record %} {%- endif %}
{%- endblock request_timeline %}