{% from 'components/record-references.html' import record_references with context %} {% from 'macros.html' import evidence_link with context %}
{{ t.get(item.kind,item.kind) }}{{ t.revision }} {{ item.revision }} · {{ t.current_revision if item.is_current else t.historical_revision }}

{{ t.note_body }}

{{ item.text }}

{{ t.note_version_record }}

{% include 'components/memory-metadata.html' %} {% set meta = namespace(value=none) %} {% if history %}{% for entry in history['items'] if entry.revision == item.revision %}{% set meta.value=entry %}{% endfor %}{% endif %} {% if meta.value and meta.value.reason %}

{{ meta.value.reason }}

{% elif item.get('creation') and item.creation.type == 'merge' %}

{{ t.note_merge_record }}

{% else %}

{{ t.note_reason_unrecorded }}

{% endif %}
{{ t.source_references_short }} {{ item.sources|length }} {% for source in item.sources %}
{{ t.source_label }} {{ loop.index }}
{% if source.source_type == 'content' %}{% set chosen=namespace(index=0) %}{% for readable in related_sources %}{% if readable.source_type == source.source_type and readable.source_id == source.source_id %}{% set chosen.index=loop.index0 %}{% endif %}{% endfor %}{{ evidence_link(chosen.index,t.source_original) }}{% if not record_only %}{{ t.note_processing_link }} →{% endif %}{% else %}

{{ t.note_source_reference_only }}

{% endif %}
{{ t.note_record_identity }}{{ source.source_type }}/{{ source.source_id }}
{% else %}

{{ t.note_sources_empty }}

{% endfor %}

{{ t.note_sources_scope }}

{{ t.note_record_identity }}{% if meta.value and meta.value.created_at %}

{{ t.note_saved_at }}: {{ meta.value.created_at }}

{% endif %}{{ record_references(item,item.family) }}