{% extends "base.html" %} {% from "components.html" import breadcrumbs, status_badge %} {% from "components/concept.html" import banner with context %} {% from "layouts/page.html" import page_context %} {% from "components/side_panel.html" import form_side_panel %} {% from "components/version_diff.html" import properties, value %} {% from "components/search_field.html" import search_field %} {% from "components/mapping_update.html" import counts, warning, transition %} {% from "components/mapping_usage.html" import publication_notice %} {% block title %}Review & publish · {{ dataset.name }} · REFRNCR{% endblock %} {% block content %}
{% include 'pages/datasets/_source_notice.html' %} {{ publication_notice(mapping_usage) }} {{ counts(mapping_source) }} {{ warning(mapping_source) }} {% call banner(dataset.key, concept_ui, actions=false, show_current=false) %} {% if identity.baseline_status != 'Scheduled' and (section != 'Summary' or result.has_changes) %} Publish version {% endif %} {% endcall %} {% if identity.baseline_status == 'Scheduled' %}

Publication is available after the Scheduled version becomes Current or is cancelled. Restart this review after that change.

{% endif %}

{{ section }}

{% if section == 'Summary' %} {% if result.hierarchy_errors %}

Resolve before publication

{% endif %} {% if result.metadata %}{{ properties(result.metadata, 'Dataset metadata changes') }}{% endif %} {% if result.hierarchy_changes %}

Hierarchy changes

{% for item in result.hierarchy_changes %}

{{ item.name }} {{ status_badge(item.status) }}

{{ properties(item.properties, 'Node changes: ' ~ item.name) }}
{% endfor %}
{% endif %}
Change counts
ContentAddedChangedDeleted
Fields{{ result.counts.fields_added }}{{ result.counts.fields_changed }}{{ result.counts.fields_removed }}
Records{{ result.counts.records_added }}{{ result.counts.records_changed }}{{ result.counts.records_removed }}
{% if not result.has_changes %}

No changes

The Draft matches this published version.

{% endif %} {% else %} {% if section == 'Records' %} {% if mapping_source %} {% include 'pages/datasets/versions/_mapping_records.html' %} {% else %} {% if result.items %}
{% for item in result.items %}{% endfor %}
Record changes, Added then Changed then Deleted
StatusIdentifierOld identifierChanged values
{{ status_badge(item.status) }} Review record {{ item.after_identifier or item.before_identifier }} {% if item.status == ChangeStatus.CHANGED and item.before_identifier != item.after_identifier %}{{ item.before_identifier }}{% else %}—{% endif %} {{ item.changed_values if item.status == ChangeStatus.CHANGED else '—' }}
{% endif %} {% endif %} {% else %}
{{ result.total }} changed field{{ '' if result.total == 1 else 's' }} · {{ result.status_counts[0] }} Added · {{ result.status_counts[1] }} Changed · {{ result.status_counts[2] }} Deleted
{% if field_items %}
{% for item in field_items %}{% for change in item.properties %} {% if loop.first %}{% endif %} {% endfor %}{% endfor %}
Field changes, Added then Changed then Deleted
FieldPropertyBeforeAfter
{{ item.name }}{{ status_badge(item.status) }}{% if item.moved %} Moved{% endif %}
{% if item.datatype_changed %}

Datatype changed. Interpretation or presentation may differ; publication still validates the values.

{% endif %}
{{ change.name }}{{ value(change.before) }}{{ value(change.after) }}
{% endif %} {% endif %} {% if not result.items %}

No matching changes

There are no changes in this view.

{% endif %} {% endif %} {{ form_side_panel('review-panel') }}
{% endblock %} {% block scripts %}{% endblock %}