{% extends "admin/base.html" %} {#- Clean-up of inactive or missing registry records that datasets still use. See cleanup.py. Plain forms, no JavaScript. -#} {% block subtitle %}{{ _('Cleanup') }}{% endblock %} {% block breadcrumb_content %}
{{ _('Publishers and contact points that have been deactivated keep working on the datasets that already use them, but can no longer be chosen. Here you find the ones still in use, and datasets that point to records that no longer exist, and replace them on the datasets you may edit.') }}
{% if not (data.publishers or data.contact_points or data.missing) %}{{ _('Nothing to clean up.') }}
{% endif %} {% for section, entries, records, kind, remove_label in [ ('publishers', data.publishers, actors, 'publisher', _('Remove the publisher')), ('contact_points', data.contact_points, contact_points, 'contact_point', _('Remove the contact point'))] %} {% if entries %}| {{ _('Name') }} | {{ _('Datasets') }} | {{ _('Replace with') }} |
|---|---|---|
|
{{ entry.record.name }}
{% if entry.merged_into %} {{ _('Merged into {name}').format(name=entry.merged_into.name) }}{% endif %} |
{% if entry.datasets|length == entry.total %}{{ entry.total }}{% else %}{{ _('{mine} of {total} (the ones you may edit)').format(mine=entry.datasets|length, total=entry.total) }}{% endif %}
{% if entry.datasets %} {{ dataset_links(entry) }}{% endif %} |
{% if entry.datasets %}{{ replace_form(entry, records, kind, remove_label) }}{% else %}{{ _('None of these datasets is yours to edit.') }}{% endif %} |
| {{ _('Reference') }} | {{ _('Datasets') }} | {{ _('Replace with') }} |
|---|---|---|
| {{ _('Publisher') if entry.kind == 'publisher' else _('Contact point') }} {{ entry.id }} |
{{ entry.total }}{% if entry.datasets %} {{ dataset_links(entry) }}{% endif %} |
{% if entry.datasets %}{{ replace_form(entry, actors if entry.kind == 'publisher' else contact_points, entry.kind, _('Remove the publisher') if entry.kind == 'publisher' else _('Remove the contact point')) }}{% endif %} |
{{ _('Replacing changes only the datasets you may edit, one by one with the usual checks; a dataset that cannot be saved is reported and left as it is.') }}
{{ _('Removing a required publisher is refused for each dataset; choose a replacement instead.') }}