{% ckan_extends %} {#- Leaves out the rows of CKAN's own contact fields (display_snippet legacy_contact.html) and of ckanext-dcat's free-text contact point and publisher (legacy_dcat_contact.html, legacy_dcat_publisher.html) once the migration to the registry is closed, or when the dataset has the registry field that takes over (contact points, publisher). Same loop as ckanext-scheming's own template otherwise. A theme that overrides this block itself (listed before actor_registry) must add the same check. -#} {% block package_additional_info %} {#- The same list as ckanext-scheming's, repeated: the parent's top-level variable is not reliably visible inside an overridden block. -#} {%- set exclude_fields = ['id', 'title', 'name', 'notes', 'tag_string', 'license_id', 'owner_org'] -%} {#- Hidden when the migration is closed, and when the dataset has the registry field that takes over: the DCAT export then leaves these fields out, and the page shows what is exported. -#} {%- set legacy_snippets = ['legacy_contact.html', 'legacy_dcat_contact.html', 'legacy_dcat_publisher.html'] -%} {#- The registry's own fields: no empty row "Publisher" or "Contact points" above the old details, or alone. -#} {%- set registry_snippets = ['actor.html', 'contactpoints.html'] -%} {%- for field in schema.dataset_fields -%} {%- if field.field_name not in exclude_fields and field.display_snippet is not none and not (field.display_snippet in legacy_snippets and not h.actor_registry_legacy_shown_on_page(field, pkg_dict)) and not (field.display_snippet in registry_snippets and not h.actor_registry_legacy_has_value(field, pkg_dict)) -%}