{% extends theme('layouts/1-column.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/integrate.html') import integrate_btn with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} ## FIXME: remove inspire:indentifier robots condition when geo.data.gouv.fr is shutdown {% set meta = { 'title': dataset.full_title, 'description': dataset.description|mdstrip(60)|forceescape, 'image': dataset.organization and dataset.organization.logo(external=True) or '', 'keywords': [_('dataset')] + dataset.tags, 'robots': 'noindex, nofollow' if dataset.is_hidden or 'inspire:identifier' in dataset.extras else '', } %} {% set bundle = 'dataset' %} {% set body_class = 'dataset-display' %} {% set community_subtitle = _('Explore with %(certifier)s', certifier=config.SITE_TITLE ) %} {% set read_only_mode = config.READ_ONLY_MODE %} {# Harvesting source #} {% set external_source = dataset.extras['remote_url'] %} {% block extra_head %} {% cache cache_duration, 'dataset-extra-head', dataset.id|string, g.lang_code %} {% endcache %} {% endblock %} {% block breadcrumb %} {% cache cache_duration, 'dataset-breadcrumb', dataset.id|string, g.lang_code %}
  • {{ _('Datasets') }}
  • {{ dataset.acronym or dataset.title|truncate(128) }}
  • {% endcache %} {% endblock %} {% block content %} {% cache cache_duration, 'dataset-content', dataset.id|string, g.lang_code, current_user.slug or 'anonymous' %} {{ breadcrumb(self, breadcrum_class=breadcrum_class, toolbar_class=toolbar_class ) }}
    {% if dataset.private %} {{ _('Private') }} {% endif %} {% if dataset.deleted %} {{ _('Deleted') }} {% endif %} {% if dataset.archived %} {% set title = _('This dataset has been archived automatically because it has been deleted from the remote platform.') if dataset.extras.get('harvest:archived') == 'not-on-remote' else _('This dataset has been archived.') %} {{ _('Archived') }} {% endif %} {# FIXME: remove when geo.data.gouv.fr is shutdown #} {% if 'geop:dataset_id' in dataset.extras %}
    ⚠️ {{ _("This dataset is handled by the geo.data.gouv.fr platform. This platform is not actively maintained and as a result, you may find some bogus data or metadata. More information about the shutdown of geo.data.gouv.fr is available here.").format( geo_link='https://geo.data.gouv.fr', blog_link='https://www.data.gouv.fr/fr/posts/extinction-de-geo-data-gouv-fr/', )}}
    {% endif %}

    {{ dataset.title }} {% if dataset.acronym %}{{ dataset.acronym }}{% endif %}

    {% if not external_source %} {{ _('Updated on %(date)s', date=dataset.last_update|dateformat(format='long')) }} {% if dataset.license %} — {% endif %} {% endif %} {% if dataset.license %} {% if dataset.license.url %}{% endif %} {{ dataset.license.title }} {% if dataset.license.url %}{% endif %} {% endif %}

    {{ follow_btn(dataset) }} {% if can_edit %} {{ _('Modify dataset') }} {% endif %}
    {% if dataset.owner %}
    {% trans date=dataset.created_at|dateformat(format='long'), update=dataset.last_update|dateformat(format='long'), author=dataset.owner.fullname %}This dataset has been published on the initiative and under the responsibility of {{author}}
    Published on {{date}} and updated on {{update}}{% endtrans %}
    {% endif %}
    {% if dataset.organization %} {% with organization=dataset.organization, producer_type='organization' %} {% include theme('organization/producer-summary.html') %} {% endwith %} {% elif dataset.owner %} {% with organization=dataset.owner, producer_type='owner' %} {% include theme('organization/producer-summary.html') %} {% endwith %} {% endif %}
    {% if dataset.tags %} {% endif %}

    {{ _('Informations') }}

    {{ _('Temporality') }}

    {% if dataset.spatial %}

    {{ _('Geographic dimensions') }}

    {% endif %}
    {% if dataset.extras %}
    {{ _('Extras') }}
    {% endif %}

    {{ _('Embed') }}

    {{integrate_btn(dataset)}}

    {{ _('Permalink') }}

    {{ _('Description') }}

    {{ dataset.description|markdown }}

    {{ _('Resources') }} {{dataset.resources | length}}

    {% if dataset.community_resources|length or 1 %} {{ _('See also: community resources') }} {% endif %}
    {% set show_all_resources = request.args.get('resources') == 'all' %} {% set grouped_resources = dataset.resources|group_resources_by_type %} {% set nb_groups = grouped_resources.keys()|length %} {% set resources_per_page = config.RESOURCES_DEFAULT_PAGE_SIZE %} {% for (type, type_label), resources in grouped_resources.items() %} {% if nb_groups > 1 %}

    {{ type_label }} {{resources|length }}

    {% endif %} {% set max_resources_to_show = resources_per_page if not show_all_resources else resources|length %} {% for resource in resources[:max_resources_to_show] %} {% with expanded = "true" %} {% include theme('dataset/resource/card.html') %} {% endwith %} {% endfor %} {% if resources|length > resources_per_page and not show_all_resources %} {{ _('See the %(nb)d resources of type %(type)s', nb=resources|length, type=type_label) }} {% endif %} {% else %}

    {{ _('No resources') }}

    {% endfor %}
    {# Maybe put this after the real description instead of after the resource cards ? Not sure #} {{ hook('dataset.display.after-description') }}
    {% block community %}

    {{ _('Community resources') }} {{ dataset.community_resources|length }}

    {{ _('You have built a more comprehensive database than those presented here? This is the time to share it!') }}

    {% if not read_only_mode %}
    {% for resource in dataset.community_resources %} {% include theme('dataset/resource/card.html') %} {% endfor %} {% if not read_only_mode %} {% include theme("svg/actions/add.svg") %}{{ _('Add a community resource') }} {% endif %}
    {% endif %} {% block reuses_section %}

    {{ _('Reuses') }} {{ reuses|length }}

    {% trans %}You reused these data and published an article, a computer graphics, or an application? It's time to let you know! Reference your work in just a few clicks and increase your visibility.{% endtrans %}
    {% for reuse in reuses %} {% set features = ['preview'] %}
    {% include theme('reuse/card.html') %}
    {% endfor %}
    {% if not read_only_mode %} {% endif %} {% endblock %}
    {% if dataset.organization %}

    {{ _('Discussion between the organization and the community about this dataset.') }}

    {% elif dataset.owner %}

    {{ _('Discussion between the owner and the community about this dataset.') }}

    {% endif %}
    {% endblock %} {% endcache %} {% endblock %}