{# Inject Zenodo-related rows into the "Additional information" box on the dataset detail page. #} {% ckan_extends %} {% block package_additional_info %} {{ super() }} {# ---- CKAN Author / Author email ---- #} {% if pkg_dict.author %} {{ _('Author') }} {{ pkg_dict.author }} {% endif %} {% if pkg_dict.author_email %} {{ _('Author email') }} {{ pkg_dict.author_email }} {% endif %} {# ---- Zenodo Authors (creators) ---- #} {% set authors_raw = h.zenodo_get_extra(pkg_dict, 'authors') %} {% if authors_raw %} {% set authors = h.zenodo_decode_people(authors_raw) %} {% if authors %} {{ _('Zenodo authors') }} {% for a in authors %}
{% if a.given_name or a.family_name %} {{ a.family_name }}{% if a.given_name %}, {{ a.given_name }}{% endif %} {% elif a.name %} {{ a.name }} {% endif %} {% if a.email %} — {{ a.email }}{% endif %} {% if a.affiliation %} ({{ a.affiliation }}){% endif %} {% if a.orcid %} ORCID: {{ a.orcid }}{% endif %}
{% endfor %} {% endif %} {% endif %} {# ---- Zenodo Contributors ---- #} {% set contrib_raw = h.zenodo_get_extra(pkg_dict, 'contributors') %} {% if contrib_raw %} {% set contributors = h.zenodo_decode_people(contrib_raw) %} {% if contributors %} {{ _('Contributors') }} {% for c in contributors %}
{% if c.given_name or c.family_name %} {{ c.family_name }}{% if c.given_name %}, {{ c.given_name }}{% endif %} {% elif c.name %} {{ c.name }} {% endif %} {% if c.role %} — {{ c.role }}{% endif %} {% if c.affiliation %} ({{ c.affiliation }}){% endif %}
{% endfor %} {% endif %} {% endif %} {# ---- Zenodo Community ---- #} {% set community = h.zenodo_get_extra(pkg_dict, 'zenodo_community') %} {% if community %} {{ _('Zenodo community') }} {{ community }} {% endif %} {# ---- Zenodo DOI ---- #} {% set doi = h.zenodo_get_extra(pkg_dict, 'zenodo_doi') %} {% set record_url = h.zenodo_record_url(pkg_dict) %} {% set deposition_id = h.zenodo_get_extra(pkg_dict, 'zenodo_deposition_id') %} {% if doi or record_url or deposition_id %} {{ _('Zenodo DOI') }} {% if doi %} {{ doi }} {% elif record_url %} {{ record_url }} {% else %} {{ _('Deposition ID:') }} {{ deposition_id }} {% endif %} {% endif %} {% if h.zenodo_is_published(pkg_dict) %} {{ _('Zenodo info file') }} info.txt {% endif %} {% endblock %}