{% 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/paginator.html') import paginator with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} {% from theme('macros/banner_info.html') import banner_info %} {% from theme('macros/banner_warning.html') import banner_warning %} {% from theme('macros/quality_score_with_tooltip.html') import quality_score_with_tooltip %} ## 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, dataset.last_modified|string %} {% endcache %} {% endblock %} {% block breadcrumb %} {% cache cache_duration, 'dataset-breadcrumb', dataset.id|string, g.lang_code, dataset.last_modified|string %}
  • {{ _('Datasets') }}
  • {{ dataset.acronym or dataset.title|truncate(128) }}
  • {% endcache %} {% endblock %} {% block content %} {% cache cache_duration, 'dataset-content', dataset.id|string, reuses.page|string, g.lang_code, current_user.slug or 'anonymous', dataset.last_modified|string %} {{ 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 %}

    {{quality_score_with_tooltip(dataset, 'inline')}} {% if not external_source %} {{ _('Updated on %(date)s', date=dataset.last_modified|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') }} {{ _('Modify dataset') }} {% endif %} {% if sysadmin %}
    {% endif %}
    {% if external_source %} {{ banner_info( "fr-icon-external-link-line", _("This dataset come from an external portal. View the original source.") .format(external_source=external_source) )}} {% endif %} {{ hook('dataset.display.transport-banner') }} {% if dataset.owner %}
    {% trans date=dataset.created_at|dateformat(format='long'), update=dataset.last_modified|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') }}

    {% if dataset.license %}
    {{ _('License') }}
    {% if dataset.license.url %}{% endif %} {{ dataset.license.title }} {% if dataset.license.url %}{% endif %}
    {% endif %}
    {{ _('ID') }}
    {{dataset.id}}
    {% if external_source %}
    {{ _('Remote source') }}
    {{ _('Remote source') }}
    {% endif%}

    {{ _('Temporality') }}

    {% if dataset.temporal_coverage %}
    {{ _('Temporal coverage') }}
    {{ dataset.temporal_coverage|daterange(details=True) }}
    {% endif %} {% if dataset.frequency %}
    {{ _('Frequency') }}
    {{ dataset.frequency_label }}
    {% endif %}
    {{ _('Creation date') }}
    {{ dataset.created_at|dateformat(format='long') }}
    {{ _('Latest resource update') }}
    {{ dataset.last_update|dateformat(format='long') }}
    {% if dataset.spatial %}

    {{ _('Geographic dimensions') }}

    {% if dataset.spatial.granularity %}
    {{ _('Territorial coverage granularity') }}
    {{ dataset.spatial.granularity_label }}
    {% endif %} {% if dataset.spatial.zones %}
    {{ _('Territorial coverage') }}
    {% for zone in dataset.spatial.zones %} {{zone.name}}{% if not loop.last %},{% endif %} {% endfor %}
    {% endif %}
    {% endif %}
    {% if dataset.extras %}
    {{ _('Extras') }}
    {% for extra_name, extra_value in dataset.extras.items() %}
    {{ extra_name }}
    {{ extra_value }}
    {% endfor %}
    {% endif %}

    {{ _('Embed') }}

    {{integrate_btn(dataset)}}

    {{ _('Permalink') }}

    {{ _('Description') }}

    {{ dataset.description|markdown }}
    {% set count_resources = dataset.resources | length %}

    {{ _('Files') }} {{count_resources}}

    {% if count_resources > config.RESOURCES_MIN_COUNT_TO_SHOW_SEARCH %} {% 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 has_multiple_groups = nb_groups > 1 %} {% set resources_per_page = config.RESOURCES_DEFAULT_PAGE_SIZE %} {% for (type, type_label), resources in grouped_resources.items() %} {% 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 }}

    {% if not read_only_mode %} {% endif %}

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

    {% if dataset.community_resources|length %}

    {{ _('Data') }}

    {{ banner_warning( "fr-icon-alert-line", _("These resources are published by the community and the producer isn't responsible for them.") )}} {% endif %}
    {% block reuses_section %}

    {{ _('Reuses') }} {{ total_reuses }}

    {% if not read_only_mode %} {% endif %}

    {{ _('Explore the reuses of this dataset.') }}

    {{ _('Did you use this data ? Reference your work and increase your visibility.') }}

    {% for reuse in reuses %}
    {% include theme('reuse/card.html') %}
    {% endfor %}
    {{ paginator(reuses, arg_name='reuses_page', url='#community-reuses') }} {% 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 %}