{% extends "base.html" %} {% import "macros.html" as m %} {% block title %}Diff {{ entry.document_id }} - {{ pack.pack }}{% endblock %} {% block content %}

Diff of a superseded record

old: {{ m.document_link(pack.pack, entry.document_id, entry.title or entry.document_id) }} {{ (entry.retrieved_at or '')[:19] }}
new: {% if successor %}{{ m.document_link(pack.pack, successor.document_id, successor.title or successor.document_id) }} {{ (successor.retrieved_at or '')[:19] }} {% else %}no record replaced it{% endif %}

{% if successor %}

Blocks are aligned by text_sha256; unchanged runs are collapsed. {{ changed }} changed, added or removed block group(s).

{% endif %}

Citations into the old record

{% for citation in citations %} {% else %} {% endfor %}
FactConceptBlocksLast build outcomeWarnings
{{ m.fact_link(pack.pack, citation.fact_id) }} {{ m.concept_link(pack.pack, citation.concept_id) }} {{ citation.first_block }}-{{ citation.last_block or citation.first_block }} {{ citation.outcome.get('outcome') or 'not in the last build report' }} {% if citation.outcome.get('reason') %}
{{ citation.outcome.reason }}
{% endif %}
{{ (citation.outcome.get('warnings') or []) | join(', ') }}
No fact cites this record.

Blocks

{% for row in rows %} {% if row.state == 'same' %}
=
{{ row.count }} unchanged block(s): old b{{ row.old_from }}-b{{ row.old_to }}, new b{{ row.new_from }}-b{{ row.new_to }}
{% else %}
{% if row.old_number %}-b{{ row.old_number }}{% endif %} {% if row.new_number %}+b{{ row.new_number }}{% endif %}
{{ row.state }} {% if row.old %}
old: {{ row.old.text | shorten(400) }}
{% endif %} {% if row.new %}
new: {{ row.new.text | shorten(400) }}
{% endif %}
{% endif %} {% else %}

No successor record to compare against.

{% endfor %}
{% endblock %}