{% extends "page.html" %} {% block title %} {{ _('DOI') }}: {{ doi }} {% endblock %} {%- block meta -%} {{ super() }} {%- endblock -%} {% block primary_content %} {% asset 'ckanext-query-dois/main' %}

{{ _('DOI') }}: {{ doi }}

{% block doi_warnings %} {% if warnings|length > 0 %}
{% for warning in warnings %}

{{ warning }}

{% endfor %}
{% endif %} {% endblock %} {% block visual_query %} {% snippet "query_dois/snippets/visual_datastore_search.html", search=query_doi.query %}
{% endblock %} {% block citation %} {% if not is_inaccessible %}

{{ _('Cite this as') }}

{{ h.create_citation_text(query_doi.doi, query_doi.timestamp, resource['name'], package['title'], package_doi, html=True) | safe }}

{% endif %} {% endblock %} {% block details %}

{{ _('Details') }}

{% if not is_inaccessible %}
{% set resource_url = h.url_for('resource.read', id=package['name'], resource_id=resource['id']) %} {% set package_url = h.url_for('dataset.read', id=package['name']) %} {{ _('Resource:') }} {{ resource['name'] }}
{{ _('Package:') }} {{ package['title'] }}
{{ _('License:') }} {% snippet "snippets/license.html", pkg_dict=package, text_only=True %}
{% endif %}
{{ _('Retrieved:') }} {{ query_doi.timestamp }}
{{ _('Total records:') }} {{ query_doi.count }}
{% endblock %} {% block stats %}

{{ _('Statistics') }}

{{ _('Total downloads:') }} {{ usage_stats['downloads'] }}
{{ _('Last downloaded:') }} {{ usage_stats['last_download_timestamp'] or _('Never') }}
{% endblock %}
{% endblock %} {% block secondary_content %} {% if is_inaccessible %}

{{ _('Data missing') }}

{% trans %} All data associated with this DOI have been deleted, moved, or are no longer available. {% endtrans %}
{% else %}

{{ _('View data') }} {% trans %} Use the links to view the data associated with this DOI. {% endtrans %}

{{ _('Original') }} {% trans %} View the data as it looked when the DOI was originally minted. {% endtrans %}
{{ _('Current') }} {% trans %} View the data as it looks now. This may result in different results to the DOI's original data if the data has been modified since it was minted. {% endtrans %}

{{ _('View with API') }} {% trans %} Use the links to view the data associated with this DOI through the API. {% endtrans %}

{{ _('Original') }} {% trans %} View the data as it looked when the DOI was originally minted. {% endtrans %}
{{ _('Current') }} {% trans %} View the data as it looks now. This may result in different results to the DOI's original data if the data has been modified since it was minted. {% endtrans %}
{% if h.versioned_datastore_available %}

{{ _('Download') }}

{% snippet 'versioned_datastore/snippets/download_button.html', slug_or_doi=query_doi.doi, icon_class="fas fa-download", label=_('Download') %}
{% endif %} {% endif %} {% endblock %}