{% load template_tags %} Maritime Craft {% include 'html_export/milligram.htm' %} {% include 'html_export/custom_style.htm' %}
{% include 'html_export/custom_header.htm' %}

Maritime Craft

{% 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 %} {# Maritime Craft #} {% if resource_data|has_key:"Names" %}

Maritime Craft 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 %} {# Designation and Protection Assignment #} {% if resource_data|has_key:"Designation and Protection Assignment" %}

Designation and Protection Assignment

Designation Name
Designation or Protection Type
Grade
{% for desig in resource_data|val_from_key:"Designation and Protection Assignment" %}
{{ desig|val_from_key:"Designation Names"|val_from_key:"Designation Name"|val_from_key:"@display_value" }}
{{ desig|val_from_key:"Designation or Protection Type"|val_from_key:"@display_value" }}
{{ desig|val_from_key:"Grade"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Location Data #} {% if resource_data|has_key:"Location Data" %}

Location Information

National Grid References

{% if resource_data|val_from_key:"Location Data"|has_key:"National Grid References" %} {% with ngr_check=resource_data|val_from_key:"Location Data"|val_from_key:"National Grid References" %} {% if ngr_check.0|has_key:"National Grid Reference" %} {% for ngr in resource_data|val_from_key:"Location 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:"Location 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|val_from_key:"Location Data"|has_key:"Localities/Administrative Areas" %} {% for area in resource_data|val_from_key:"Location 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 %}

{# 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 #} {% with address_check=resource_data|val_from_key:"Location Data"|val_from_key:"Addresses" %} {% if address_check.0|has_key:"Full Address" %}

Addresses

Full Address
Locality
{% for address in resource_data|val_from_key:"Location Data"|val_from_key:"Addresses" %}
{{ address|val_from_key:"Full Address"|val_from_key:"@display_value" }}
{{ address|val_from_key:"Locality"|val_from_key:"Locality Value"|val_from_key:"@display_value" }}
{% endfor %}
{% endif %} {% endwith %}

{% 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 %} {# 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 %} {# Maritime Vessel Construction Phase #} {% if resource_data|has_key:"Construction Phases" %}

Maritime Vessel Construction Phases

Craft type
Period
Construction Phase Start Date
Construction Phase End Date
{% for conphase in resource_data|val_from_key:"Construction Phases" %}
{{ conphase|val_from_key:"Phase Classification"|val_from_key:"Maritime Vessel Type"|val_from_key:"@display_value" }}
{{ conphase|val_from_key:"Cultural Period"|val_from_key:"@display_value" }}
{{ conphase|val_from_key:"Construction Phase Timespan"|val_from_key:"Construction Phase Start Date"|val_from_key:"@display_value" }}
{{ conphase|val_from_key:"Construction Phase Timespan"|val_from_key:"Construction Phase End Date"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Maritime Vessel Use Phase #} {% if resource_data|has_key:"Use Phase" %}

Maritime Vessel Use Phases

Functional Craft Type
Period
Use Phase Start Date
Use Phase End Date
{% for usephase in resource_data|val_from_key:"Use Phase" %}
{{ usephase|val_from_key:"Use Phase Classification"|val_from_key:"Functional Craft Type"|val_from_key:"@display_value" }}
{{ usephase|val_from_key:"Use Phase Period"|val_from_key:"@display_value" }}
{{ usephase|val_from_key:"Use Phase Timespan"|val_from_key:"Use Phase Start Date"|val_from_key:"@display_value" }}
{{ usephase|val_from_key:"Use Phase Timespan"|val_from_key:"Use Phase End Date"|val_from_key:"@display_value" }}
{% endfor %}

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

Voyages

Manner of Loss
Date of Loss Start
Date of Loss End
{% for voyage in resource_data|val_from_key:"Voyages" %}
{{ voyage|val_from_key:"Manner of Loss"|val_from_key:"@display_value" }}
{{ voyage|val_from_key:"Loss Timespan"|val_from_key:"Date of Loss Start"|val_from_key:"@display_value" }}
{{ voyage|val_from_key:"Loss Timespan"|val_from_key:"Date of Loss End"|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:"Associated Monument, Area or Artefact"|val_from_key:"@display_value" }}
{{ assocAAAVA|val_from_key:"Association Type"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Associated Activities #} {% if resource_data|has_key:"Associated Activities" %}

Associated Activities

{{ resource_data|val_from_key:"Associated Activities"|val_from_key:"@display_value" }}

{% endif %} {# Associated Archives #} {% if resource_data|has_key:"Associated Archives" %}

Associated Archives

Archive Object Reference
Archive Object Title
Archive Holder
{% for assocArchive in resource_data|val_from_key:"Associated Archives" %}
{{ assocArchive|val_from_key:"Associated Archive Objects"|val_from_key:"Archive Object References"|val_from_key:"Archive Object Reference"|val_from_key:"@display_value" }}
{{ assocArchive|val_from_key:"Associated Archive Objects"|val_from_key:"Archive Object Titles"|val_from_key:"Archive Object Title"|val_from_key:"@display_value" }}
{{ assocArchive|val_from_key:"Associated Archive Objects"|val_from_key:"Archive Holder"|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 %}