{% extends "base.html" %} {% block title %}{{ artwork.title }} — ArtNode{% endblock %} {% block content %}
{% set img = artwork.images[0] if artwork.images else none %} {% if img and img.iiif_url %} {{ artwork.title }} {% else %}
No image
{% endif %}
Images ({{ artwork.images|length }})
{% if artwork.images %}
{% for img in artwork.images|sort(attribute="sort_order") %}
{% if loop.first %} MAIN {% endif %}
{% endfor %}
{% endif %}

JPG or PNG · Max 10MB · First image = main image

Artwork Details
{% macro meta_row(label, value) %} {% if value %}
{{ label }} {{ value }}
{% endif %} {% endmacro %} {{ meta_row("Artist", (artwork.contact_artist.first_name ~ " " ~ artwork.contact_artist.last_name) if artwork.contact_artist else ((artwork.artist.first_name ~ " " ~ artwork.artist.last_name) if artwork.artist else none)) }} {{ meta_row("Date", artwork.year_from|string if artwork.year_from else none) }} {{ meta_row("Medium", artwork.medium) }} {{ meta_row("Dimensions", artwork.dimensions) }} {{ meta_row("Object Type", artwork.object_type) }} {{ meta_row("Inventory No.", artwork.inventory_number) }} {{ meta_row("Rights", artwork.rights) }} {% if artwork.price %} {{ meta_row("Price", artwork.price|ch_currency(artwork.currency)) }} {% endif %}
Provenance
{% if artwork.provenance %} {% for entry in artwork.provenance|sort(attribute="recorded_at", reverse=true) %}
{{ entry.event_type }} {{ entry.recorded_at|ch_date }}
{% if entry.description %}

{{ entry.description }}

{% endif %} {% if entry.attached_files %}
{% for f in entry.attached_files %} {% set fname = f.split('|')[1] if '|' in f else f.split('/')[-1] %} {% set file_idx = loop.index0 %} 📎 {{ fname }} {% endfor %}
{% endif %}
⬇ PDF {% if not entry.document_hash %}
{% else %} ✓ {{ entry.ots_status or 'anchored' }} {% if entry.document_hash %} {{ entry.document_hash[:16] }}… {% endif %} {% endif %}
{% endfor %} {% else %}

No provenance records yet.

+ Add Record {% endif %}
{% if artwork.source_url %}
View source record →
{% endif %}
{% endblock %}