{% ckan_extends %} {% import 'macros/form.html' as form %} {% block contact_form_legend_content %} {% set package_id = h.get_request_param('package_id', None) %} {% if not package_id %} {{ _('Choose a department to enquire about a specific area of the collection. To contact the Data Portal team, select Data Portal / Other.') }} {% else %} {{ _('Use this form to contact the owner of this dataset.') }} {% endif %} {% endblock %} {% block contact_form_fields %} {{ form.input('name', label=_('Your name'), id='field-name', value=data.name, error=errors.name, classes=['control-medium'], is_required=true) }} {{ form.input('email', label=_('Your email'), id='field-email', type='email', value=data.email, error=errors.email, classes=['control-medium'], is_required=true) }} {# Add resource name and ID hidden field#} {% set package_id = h.get_request_param('package_id', None) %} {% if package_id %} {% set package = h.get_package(package_id) %} {# If this is the collections dataset, still add the department select #} {% if package['name'] == 'collection-specimens' %} {{ form.select('department', label=_('Department or team'), options=h.get_contact_form_department_options(), selected=data.department, error=errors.department, is_required=true) }} {% endif %}
{{ package['title'] or package['name'] }}
{{ resource['name'] or resource['id'] }}
{% if record['Catalog number'] %} {{ record['Catalog number'] }} {% elif record['Occurrence ID'] %} {{ record['Occurrence ID'] }} {% else %} {{ record['_id'] }} {% endif %}
{{ _('Data Protection') }}
{{ _('The Natural History Museum will use your personal data in accordance with data protection legislation to process your requests. For more information please read our') }} privacy notice.