{% extends "package/read_base.html" %} {% set pkg = pkg_dict %} {% set collection = h.get_collection(pkg) %} {% set collection_title = collection['title'] if collection else None %} {% set collection_url = collection['url'] if collection else None %} {% set successor_url = collection['successor']['url'] if collection and 'successor' in collection else None %} {% set predecessor_url = collection['predecessor']['url'] if collection and 'predecessor' in collection else None %} {% set latest_collection_member = collection['persistent_link_last_member'] if collection else None %} {% set stars = h.odsh_openness_score_dataset_html(pkg) %} {% block breadcrumb_content %} {% if pkg %} {% set dataset = h.dataset_display_name(pkg) %} {% if pkg.organization %} {% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %}
  • {% link_for organization|truncate(30), named_route='organization.read', id=pkg.organization.name %}
  • {% else %}
  • {% link_for _('Datasets'), named_route='dataset.search' %}
  • {% endif %}
  • {% link_for dataset|truncate(30), named_route='dataset.read', id=pkg.name %}
  • {% else %}
  • {% link_for _('Datasets'), named_route='dataset.search' %}
  • {{ _('Create Dataset') }}
  • {% endif %} {% endblock breadcrumb_content %} {% block primary_content_inner %} {{ super() }} {% block package_description %}

    {% block page_heading %} {{ h.dataset_display_name(pkg) }} {% if pkg.state.startswith('draft') %} [{{ _('Draft') }}] {% endif %} {% if pkg.state == 'deleted' %} [{{ _('Deleted') }}] {% endif %} {% endblock page_heading %} {% if h.check_access('package_update', {'id':pkg.id }) %}
    {% link_for _('Manage Dataset'), named_route='dataset.edit', id=pkg.name, class_='btn btn-primary btn-add-dataset', icon='wrench' %}
    {% endif %} {% if pkg.private %} {{ _('Private') }}
    {% endif %}

    {% if stars>-1%} {% snippet "qa/stars.html", stars=stars %} {% endif %}
    {# {{ pkg.resources }} #} {% block package_notes %}
    {{ _('Detailed information') }}
    {% if successor_url %}

    {% trans %} Note: A newer version of this dataset is available. {% endtrans %}

    {% endif %} {% if pkg.is_replaced_by %} {% set is_replaced_by = pkg.is_replaced_by %}
    {% trans %} Note: This dataset has been replaced with a newer version. {% endtrans %}
    {% endif %} {% if pkg.notes %}
    {{ h.render_markdown(h.get_translated(pkg, 'notes')) }}
    {% trans %}Read more »{% endtrans %} {% trans %}« Read less{% endtrans %}
    {% endif %} {% if pkg.version_notes %}
    {{ pkg.version_notes }}
    {% endif %} {% endblock package_notes %} {% endblock package_description %} {% block package_resources %} {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %} {% if h.check_access('package_update', {'id':pkg.id }) %}
    {% link_for _('Add new resource'), named_route='resource.new', id=pkg.name, class_='btn btn-primary', icon='plus' %}
    {% endif %} {% endblock package_resources %} {% block collection %} {% if latest_collection_member %}
    {% if collection_title %}

    {% trans title=collection_title, url=collection_url %} This record is part of the series {{ title }}. You can browse to older and newer records. {% endtrans %}

    {% endif %} {# collection_title #}
    {{ _('latest collection member') }} {% if predecessor_url %} {{ _('predecessor') }} {% else %} {{ _('predecessor') }} {% endif %} {% if successor_url %} {{ _('successor') }} {% else %} {{ _('successor') }} {% endif %}
    {% endif %} {# latest_collection_member #} {% endblock collection %} {% block contact %} {% snippet "package/snippets/contact_details.html", pkg=pkg %} {% endblock contact %}
    {% for tag in pkg.tags %}
    {{h.tag_link(tag)}}
    {% endfor %}
    {% endblock primary_content_inner %}