{% load template_tags %} Keystone - Artefact {% include 'html_export/milligram.htm' %} {% include 'html_export/custom_style.htm' %}
{% include 'html_export/custom_header.htm' %}

Artefact

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

{{ resource.displayname }}

{# Artefact Names #} {% if resource_data|has_key:"Artefact Names" %}

Artefact Names

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

{% endif %} {# System Reference Numbers #} {% 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" }}
UUID: {{ resource_data|val_from_key:"System Reference Numbers"|val_from_key:"UUID"|val_from_key:"ResourceID"|val_from_key:"@display_value" }}


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

Discovery

Discovery Method
Recovery Technique
Discovery Note
{% with discovery=resource_data|val_from_key:"Discovery" %}
{{ discovery|val_from_key:"Discovery Method"|val_from_key:"@display_value" }}
{{ discovery|val_from_key:"Recovery Technique"|val_from_key:"@display_value" }}
{{ discovery|val_from_key:"Discovery Notes"|val_from_key:"Discovery Note"|val_from_key:"@display_value"|safe }}
{% endwith %}
{# Location Information sub-row #} {% with location_data=resource_data|val_from_key:"Discovery"|val_from_key:"Location Data" %} {% if location_data %}

Location Information

{% if location_data|has_key:"Location Descriptions" %}

Location Descriptions

{# Show 'Summary' type first if present #} {% for desc in location_data|val_from_key:"Location Descriptions" %} {% if desc|val_from_key:"Location Description Type"|val_from_key:"@display_value" == "Summary" %} {{ desc|val_from_key:"Location Description Type"|val_from_key:"@display_value" }}:
{{ desc|val_from_key:"Location Description"|val_from_key:"@display_value"|safe }}
{% endif %} {% endfor %} {# Then show all others except 'Summary' #} {% for desc in location_data|val_from_key:"Location Descriptions" %} {% if desc|val_from_key:"Location Description Type"|val_from_key:"@display_value" != "Summary" %} {{ desc|val_from_key:"Location Description Type"|val_from_key:"@display_value" }}:
{{ desc|val_from_key:"Location Description"|val_from_key:"@display_value"|safe }}
{% endif %} {% endfor %}

{% endif %} {% if location_data|has_key:"Decimal LatLong References" %}

Coordinates

{% for latlong in location_data|val_from_key:"Decimal LatLong References" %} Latitude: {{ latlong|val_from_key:"Decimal Latitude"|val_from_key:"@display_value" }}
Longitude: {{ latlong|val_from_key:"Decimal Longitude"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %}
{% if location_data|has_key:"Named Location (place)" %}

Named Locations

{% for named in location_data|val_from_key:"Named Location (place)"|val_from_key:"instance_details" %} {{ named|val_from_key:"display_value" }}
{% endfor %}

{% endif %} {% if location_data|has_key:"Localities/Administrative Areas" %}

Localities/Administrative Areas

{% for area in location_data|val_from_key:"Localities/Administrative Areas" %} {% 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 %}
{% endif %} {% endwith %} {# Finder sub-row #} {% with finder_list=resource_data|val_from_key:"Discovery"|val_from_key:"Finder" %} {% if finder_list %}

Finder

{% for finder in finder_list %} {% if finder|has_key:"Finder Names" %} {{ finder|val_from_key:"Finder Names"|val_from_key:"Finder Name"|val_from_key:"@display_value" }}{% if not forloop.last %}, {% endif %} {% endif %} {% endfor %}

{% endif %} {% endwith %}

{% endif %} {# Artefact Production #} {% if resource_data|has_key:"Production" and resource_data|val_from_key:"Production" %}

Artefact Production

Artefact Type
Phase Evidence Type
Phase Certainty
Phase Description
Producer
Cultural Period
Production Date: From
Production Date: To
Material
{% for prod in resource_data|val_from_key:"Production" %}
{{ prod|val_from_key:"Phase Classification"|val_from_key:"Artefact Type"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Phase Classification"|val_from_key:"Phase Evidence Type"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Phase Classification"|val_from_key:"Phase Certainty"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Phase Classification"|val_from_key:"Phase Classification Description"|val_from_key:"Phase Description"|val_from_key:"@display_value"|safe }}
{{ prod|val_from_key:"Producer"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Cultural Period"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Production Time Span"|val_from_key:"From Date"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Production Time Span"|val_from_key:"To Date"|val_from_key:"@display_value" }}
{{ prod|val_from_key:"Material"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Artefact Dimensions #} {% if resource_data|has_key:"Measurement Event" and resource_data|val_from_key:"Measurement Event" %}

Artefact Dimensions

Dimension Type
Measurement Unit
Measurement Value
{% for dim in resource_data|val_from_key:"Measurement Event" %}
{{ dim|val_from_key:"Dimension"|val_from_key:"Dimension Type"|val_from_key:"@display_value" }}
{{ dim|val_from_key:"Dimension"|val_from_key:"Dimension Measurement Unit"|val_from_key:"@display_value" }}
{{ dim|val_from_key:"Dimension"|val_from_key:"Dimension Value"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Inscriptions #} {% if resource_data|has_key:"Inscription" and resource_data|val_from_key:"Inscription" %}

Inscriptions

Inscription Content
Inscription Language
Translation Text
Translation Language
Inscription Note
{% for ins in resource_data|val_from_key:"Inscription" %}
{{ ins|val_from_key:"Inscription Content"|val_from_key:"@display_value"|safe }}
{{ ins|val_from_key:"Inscription Language"|val_from_key:"@display_value" }}
{{ ins|val_from_key:"Translation"|val_from_key:"Translation Text"|val_from_key:"@display_value"|safe }}
{{ ins|val_from_key:"Translation"|val_from_key:"Translation Language"|val_from_key:"@display_value" }}
{{ ins|val_from_key:"Inscription Note"|val_from_key:"Inscription Note Text"|val_from_key:"@display_value"|safe }}
{% endfor %}

{% endif %} {# Artefact Condition Assessment #} {% if resource_data|has_key:"Condition Assessment" and resource_data|val_from_key:"Condition Assessment" %}

Artefact Condition Assessment

Condition
Start Date
End Date
{% for cond in resource_data|val_from_key:"Condition Assessment" %}
{{ cond|val_from_key:"Condition State"|val_from_key:"Condition Type"|val_from_key:"@display_value" }}
{{ cond|val_from_key:"Condition Timespan"|val_from_key:"Date of Assessment Start"|val_from_key:"@display_value" }}
{{ cond|val_from_key:"Condition Timespan"|val_from_key:"Date of Assessment End"|val_from_key:"@display_value" }}
{% endfor %}

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

Copyright

Holder
Type
Note
{{ resource_data|val_from_key:"Copyright"|val_from_key:"Copyright Holder"|val_from_key:"@display_value" }}
{{ resource_data|val_from_key:"Copyright"|val_from_key:"Copyright Type"|val_from_key:"@display_value" }}
{{ resource_data|val_from_key:"Copyright"|val_from_key:"Copyright Note"|val_from_key:"Copyright Note Text"|val_from_key:"@display_value"|safe }}

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

Descriptions

{% with descs=resource_data|val_from_key:"Descriptions" %} {# Show 'Summary' type first if present #} {% for desc in descs %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" == "Summary" %}

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


{% endif %} {% endfor %} {# Then show all others except 'Summary' #} {% for desc in descs %} {% if desc|val_from_key:"Description Type"|val_from_key:"@display_value" != "Summary" %}

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


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

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

Bibliographic Source Citation

Source Number
Source Title
Page(s)
Comment
{% for source in resource_data|val_from_key:"Bibliographic Source Citation" %}
{{ source|val_from_key:"Source Number"|val_from_key:"Source Number Value"|val_from_key:"@display_value" }}
{{ source|val_from_key:"@display_value" }}
{{ source|val_from_key:"Pages"|val_from_key:"Page(s)"|val_from_key:"@display_value" }}
{{ source|val_from_key:"Source Comment"|val_from_key:"Comment"|val_from_key:"@display_value"|safe }}
{% 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 %} {# 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 Historic Event #} {% if resource_data|has_key:"Associated Historic Event" %}

Associated Historic Event

    {% for event in resource_data|val_from_key:"Associated Historic Event" %}
  • {{ event|val_from_key:"@display_value" }}
  • {% endfor %}

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

Associated Heritage Story

    {% for story in resource_data|val_from_key:"Associated Heritage Story" %}
  • {{ story|val_from_key:"@display_value" }}
  • {% endfor %}

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

Repository Storage Location

Repository Owner
Storage Building Name
Storage Area Name
{{ resource_data|val_from_key:"Repository Storage Location"|val_from_key:"Repository owner"|val_from_key:"@display_value" }}
{{ resource_data|val_from_key:"Repository Storage Location"|val_from_key:"Storage Building"|val_from_key:"Storage Building Name"|val_from_key:"@display_value" }}
{{ resource_data|val_from_key:"Repository Storage Location"|val_from_key:"Storage Area Names"|val_from_key:"Storage Area Name"|val_from_key:"@display_value" }}

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

External Cross References

External Cross Reference
External Cross Reference Source
Notes
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" }}
{{ exref|val_from_key:"External Cross Reference Notes"|val_from_key:"External Cross Reference Description"|val_from_key:"@display_value"|safe }}
{% 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 %}