{#-
  Copyright (C) 2024 TU Wien.

  Invenio Theme TUW is free software; you can redistribute it and/or modify
  it under the terms of the MIT License; see LICENSE file for more details.
-#}
{%- if record.pids and record.pids.doi %}
    {%- set doi = record.pids.doi.identifier %}
    {%- set doi_base_url = "https://doi.org/" if not app.config["DATACITE_TEST_MODE"] else "https://handle.test.datacite.org/"  %}
    {%- set doi_ref = "DOI" if not app.config["DATACITE_TEST_MODE"] else "DOI-like handle"  %}
    {%- set avail_message = "It is now available under the following " + doi_ref + ": " + doi_base_url + doi %}
{%- else %}
    {%- set avail_message = "It is now available under the following URL: " + record.links.self_html %}
{%- endif %}
Dear {{ uploader.user_profile.full_name }},

Your record "{{ record.metadata.title }}" just got published!
{{ avail_message|safe }}

Metadata edits for this record will *not* require another review.

Cheers,
The team at the Center for Research Data Management
