{#- For CKAN's own contact fields (author, author_email, maintainer, maintainer_email) while a catalogue moves to the registry. Shown to edit only while the migration is open, the dataset has no registry contact point and the field holds something, with one notice for the four fields; or to correct a stored value that fails validation (an old "n/a" in an email field), otherwise no save of the dataset could go through. Otherwise hidden, its value sent along unchanged so that saving never clears it; a sysadmin can read it under a fold. See "Migrate to Actor Registry" in the README. -#} {%- if h.actor_registry_legacy_editable(field, data, errors) -%} {%- if not (errors or {}).get(field.field_name) and h.actor_registry_legacy_notice_once('contact') -%}
{{ _('These are old contact details in free text. Choose or create a contact point instead; the free text is then hidden.') }}
{%- endif -%} {%- snippet 'scheming/form_snippets/text.html', field=field, data=data, errors=errors -%} {%- else -%} {%- if h.actor_registry_is_sysadmin() and h.actor_registry_legacy_has_value(field, data) -%}
{{ _('Show the old details: %(field)s', field=h.scheming_language_text(field.label)) }}

{{ _('Kept as they were, not shown to visitors or exported. Only sysadmins see them here.') }}

{{ data.get(field.field_name) }}

{%- endif -%} {%- endif -%}