{% extends "admin/base.html" %} {% import 'actor_registry/snippets/dataset_list.html' as dl with context %} {% block subtitle %}{{ _('Delete publisher') }}{% endblock %} {% block breadcrumb_content %}
  • {{ _('Publishers') }}
  • {{ item.name }}
  • {{ _('Delete') }}
  • {% endblock %} {% block primary_content_inner %}

    {{ _('Delete "{name}"?').format(name=item.name) }}

    {% if not item.active %}
    {{ _('This publisher is already merged and retired. It is kept around today only so its web address (URI) keeps resolving, in case anything outside this catalogue already links to it or has it cached. Deleting it removes that address for good -- do this only once you are confident nothing depends on it any more.') }}
    {% endif %} {% set has_publisher_links = linked.publisher.total > 0 %} {% set has_owned_contacts = owned_contact_points|length > 0 %} {% set has_chained = chained_actors|length > 0 %} {% if has_publisher_links or has_owned_contacts or has_chained %}
    {{ _('This will affect other records:') }}
    {% else %}
    {{ _('No datasets, contact points, or other publishers currently depend on this publisher.') }}
    {% endif %} {% if has_publisher_links %}

    {{ _('Datasets with this publisher') }}

    {{ dl.dataset_list(linked.publisher, h.url_for('actor_registry.actors_datasets', item_id=item.id, link='publisher'), '') }} {% endif %} {% if has_owned_contacts %}

    {{ _('Contact points owned by this publisher') }}

    {% endif %} {% if has_chained %}

    {{ _('Publishers previously merged into this one') }}

    {% endif %}
    {{ h.csrf_input() }}
    {{ _('Cancel') }}
    {% endblock %}