{% load template_tags %} Historic Landscape Characterization {% include 'html_export/milligram.htm' %} {% include 'html_export/custom_style.htm' %}
{% include 'html_export/custom_header.htm' %}

Historic Landscape Characterization

{% for resource in resources %} {% with resource_data=resource.resource %}

{{ resource.displayname }}

{# System Ref #} {% if resource_data|has_key:"System Reference Numbers" %}

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 %} {# Historic Landscape Characterization Names #} {% if resource_data|has_key:"Names" %}

Historic Landscape Characterization Names

Name
Name Type
{% for names in resource_data|val_from_key:"Names" %}
{% if names|has_key:"Name" %} {{ names|val_from_key:"Name"|val_from_key:"@display_value" }} {% endif %}
{% if names|has_key:"Name Use Type" %} {{ names|val_from_key:"Name Use Type"|val_from_key:"@display_value" }} {% endif %}
{% endfor %}

{% endif %} {# Descriptions #} {% if resource_data|has_key:"Descriptions" %}

Descriptions

{% for desc in resource_data|val_from_key:"Descriptions" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" == "Summary" %}

Description Type :{{ desc|val_from_key:"Description Type"|val_from_key:"@display_value" }}
{{ desc|val_from_key:"Description"|val_from_key:"@display_value"|safe }}

{% endif%} {% endfor %} {% for desc in resource_data|val_from_key:"Descriptions" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" == "Full" %}

Description Type :{{ desc|val_from_key:"Description Type"|val_from_key:"@display_value"|safe }}
{{ desc|val_from_key:"Description"|val_from_key:"@display_value"|safe }}

{% endif %} {% endfor %} {% for desc in resource_data|val_from_key:"Descriptions" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" != "Summary" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" != "Full" %}

Description Type: {{ desc|val_from_key:"Description Type"|val_from_key:"@display_value"|safe }}
{{ desc|val_from_key:"Description"|val_from_key:"@display_value"|safe }}

{% endif %} {% endif %} {% endfor %}

{% endif %} {# Location Data #} {% if resource_data|has_key:"Localities/Administrative Areas" or resource_data|has_key:"National Grid References" %}

Location Information

National Grid References

{% if resource_data|has_key:"National Grid References" %} {% with ngr_check=resource_data|val_from_key:"National Grid References" %} {% if ngr_check.0|has_key:"National Grid Reference" %} {% for ngr in resource_data|val_from_key:"National Grid References" %} {{ ngr|val_from_key:"National Grid Reference"|val_from_key:"@display_value" }} {% endfor %} {% else %} {{ resource_data|val_from_key:"National Grid References"|val_from_key:"National Grid Reference"|val_from_key:"@display_value" }} {% endif %} {% endwith %} {% endif %}

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|has_key:"Area Type" %} {% 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 %} {% endif %} {% endfor %} {% endif %}


{% endif %} {# HLC Phases #} {% if resource_data|has_key:"HLC Phase" %}

HLC Phases

HLC Phase Classification
Period
HLC Phase Start Date
HLC Phase End Date
{% for hlcphase in resource_data|val_from_key:"HLC Phase" %}
{% if hlcphase|val_from_key:"HLC Phase Classification"|has_key:"Broad Type" %} Broad Type: {{hlcphase|val_from_key:"HLC Phase Classification"|val_from_key:"Broad Type"|val_from_key:"@display_value"}}
{% endif %} {% if hlcphase|val_from_key:"HLC Phase Classification"|val_from_key:"Broad Type"|has_key:"HLC Type" %} HLC Type: {{hlcphase|val_from_key:"HLC Phase Classification"|val_from_key:"Broad Type"|val_from_key:"HLC Type"|val_from_key:"@display_value"}}
{% endif %} {% if hlcphase|val_from_key:"HLC Phase Classification"|has_key:"Historic Map" %} Historic Map: {{hlcphase|val_from_key:"HLC Phase Classification"|val_from_key:"Historic Map"|val_from_key:"@display_value"}}
{% endif %}
{{ hlcphase|val_from_key:"Period"|val_from_key:"@display_value" }}
{{ hlcphase|val_from_key:"HLC Phase Timespan"|val_from_key:"HLC Phase Start Date"|val_from_key:"@display_value" }}
{{ hlcphase|val_from_key:"HLC Phase Timespan"|val_from_key:"HLC Phase End Date"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Historic Land Use Character Attributes #} {% if resource_data|has_key:"Historic Land Use Character Attributes" %}

Historic Land Use Character Attributes

Street Frontage: {{ resource_data|val_from_key:"Historic Land Use Character Attributes"|val_from_key:"Street Frontage"|val_from_key:"@display_value" }}
Average Height: {{ resource_data|val_from_key:"Historic Land Use Character Attributes"|val_from_key:"Average Height"|val_from_key:"@display_value" }}
Rear Gardens: {{ resource_data|val_from_key:"Historic Land Use Character Attributes"|val_from_key:"Rear Gardens"|val_from_key:"@display_value" }}
Street Pattern: {{ resource_data|val_from_key:"Historic Land Use Character Attributes"|val_from_key:"Street Pattern"|val_from_key:"@display_value" }}


{% endif %} {# Bibliographic Source Citation #} {% if resource_data|has_key:"Bibliographic Source Citation" %}

Bibliographic Source Citations

Source Number
Source Title
{% for biblio in resource_data|val_from_key:"Bibliographic Source Citation" %}
{{ biblio|val_from_key:"Source Number"|val_from_key:"Source Number Value"|val_from_key:"@display_value" }}
{{ biblio|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Associated Monuments/Areas/Artefacts #} {% if resource_data|has_key:"Associated Monuments, Areas and Artefacts" %}

Associated Monuments, Areas and Artefacts

Associated Monument/Area/Artefact
Association Type
{% for assocAAAVA in resource_data|val_from_key:"Associated Monuments, Areas and Artefacts" %}
{{ assocAAAVA|val_from_key:"Monument, Area or Artefact"|val_from_key:"@display_value" }}
{{ assocAAAVA|val_from_key:"Association Type"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# External Cross References #} {% if resource_data|has_key:"External Cross References" %}

External Cross References

External Cross Reference
External Cross Reference Source
URL
{% for exref in resource_data|val_from_key:"External Cross References" %}
{{ exref|val_from_key:"External Cross Reference"|val_from_key:"@display_value" }}
{{ exref|val_from_key:"External Cross Reference Source"|val_from_key:"@display_value" }}
{% with exref|val_from_key:"URL" as URL %} {% if URL|has_key:"url" and URL|has_key:"url_label" %} {{URL|val_from_key:'url_label'}} {% elif URL|has_key:"url_label" %} {{URL|val_from_key:"url_label"}} {% elif URL|has_key:"url" %} {{URL|val_from_key:'url'}} {% else %}
{% endif %} {% endwith %}
{% endfor %}

{% endif %} {% endwith%} {% endfor %}