{% set author_data = { 'name': pkg.author, 'email': h.extract_email(pkg.author_email), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'author_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'author_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'author_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'author_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'author_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'author_country') } %} {% set maintainer_data = { 'name': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_name'), 'email': h.extract_email(h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_email')), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'maintainer_country') } %} {% set contact_data = { 'name': h.odsh_extract_value_from_extras(pkg.extras, 'contact_name'), 'email': h.extract_email(h.odsh_extract_value_from_extras(pkg.extras, 'contact_email')), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'contact_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'contact_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'contact_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'contact_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'contact_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'contact_country') } %} {% set publisher_data = { 'name': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_name'), 'email': h.extract_email(h.odsh_extract_value_from_extras(pkg.extras, 'publisher_email')), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'publisher_country') } %} {% set originator_data = { 'name': h.odsh_extract_value_from_extras(pkg.extras, 'originator_name'), 'email': h.extract_email(h.odsh_extract_value_from_extras(pkg.extras, 'originator_email')), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'originator_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'originator_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'originator_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'originator_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'originator_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'originator_country') } %} {% set contributor_data = { 'name': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_name'), 'email': h.extract_email(h.odsh_extract_value_from_extras(pkg.extras, 'contributor_email')), 'tel': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_tel'), 'fax': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_fax'), 'city': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_city'), 'zip': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_zip'), 'street': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_street'), 'country': h.odsh_extract_value_from_extras(pkg.extras, 'contributor_country') } %} {% if author_data.name or maintainer_data.name or contact_data.name or publisher_data.name or originator_data.name or contributor_data.name %}

{{ _('Contact') }}

{% snippet "package/snippets/contact_details_item.html", data=author_data, title=_('Creator'), description=_('Entities or individuals responsible and accountable for the data and its appropriate maintenance.') %} {% snippet "package/snippets/contact_details_item.html", data=maintainer_data, title=_('Maintainer'), description=_('Entities or individuals responsible and accountable for the data and its appropriate maintenance.') %} {% snippet "package/snippets/contact_details_item.html", data=contact_data, title=_('Contact'), description=_('Entities or individuals who can be contacted to inquire about or acquire the data.') %} {% snippet "package/snippets/contact_details_item.html", data=publisher_data, title=_('Publisher'), description=_('Entities or individuals who have decided on granting access and usage rights to third parties.') %} {% snippet "package/snippets/contact_details_item.html", data=originator_data, title=_('Originator'), description=_('Individuals who hold copyright to the data.') %} {% snippet "package/snippets/contact_details_item.html", data=contributor_data, title=_('Contributor'), description=_('Entities or individuals who have processed the data.') %}
{% endif %}