{{ resource.displayname }}
System Reference Numbers
Primary Reference Number: {{ resource_data|val_from_key:"System Reference Numbers"|val_from_key:"PrimaryReferenceNumber"|val_from_key:"Primary Reference Number"|val_from_key:"@display_value" }}
Legacy ID: {{ resource_data|val_from_key:"System Reference Numbers"|val_from_key:"LegacyID"|val_from_key:"Legacy ID"|val_from_key:"@display_value" }}
{% endif %} {# References #} {% if resource_data|has_key:"References" %}
References
{% endif %} {# Application Area Names #} {% if resource_data|has_key:"Application Area Names" %}
Application Area Name
Name: {{ resource_data|val_from_key:"Application Area Names"|val_from_key:"Application Area Name"|val_from_key:"@display_value"}}
Name Type: {{ resource_data|val_from_key:"Application Area Names"|val_from_key:"Application Area Name Type"|val_from_key:"@display_value" }}
{% endif %} {# Location Data #} {% if resource_data|has_key:"Localities/Administrative Areas" or "Addresses" %}
Location Information
Localities/Administrative Areas
{% if resource_data|has_key:"Localities/Administrative Areas" %} {% for area in resource_data|val_from_key:"Localities/Administrative Areas" %} {# there is a bug that passes a dict if there are no addresses in this branch... let's check for a key to stop this from causing odd artifacts #} {% if area|val_from_key:"Area Type"|has_key:"@display_value" %} {{ area|val_from_key:"Area Type"|val_from_key:"@display_value" }}: {{ area|val_from_key:"Area Names"|val_from_key:"Area Name"|val_from_key:"@display_value" }} {% else %} {{ area|val_from_key:"Area Names"|val_from_key:"Area Name"|val_from_key:"@display_value" }} {% endif %} {% endfor %} {% endif %}
Addresses
{% endif %} {# Designation and Protection Assignment #} {% if resource_data|has_key:"Designation and Protection Assignment" %}
Designation and Protection Assignment
{% endif %} {# Associated Application Areas #} {% if resource_data|has_key:"Associated Application Area" %}
Associated Application Areas
{% endif %} {# Associated Consultations #} {% if resource_data|has_key:"Associated Consultations" %}
Associated Consultations
{% endif %} {# Associated Monuments/Areas/Artefacts/Maritime Vessels/Historic Aircraft #} {% if resource_data|has_key:"Associated Monuments, Areas and Artefacts" %}
Associated Monuments, Areas and Artefacts
{% endif %} {# Associated Activities #} {% if resource_data|has_key:"Associated Activities" %}
Associated Activities
{% endif %} {% endwith%} {% endfor %}