{% extends "base.html" %} {% block title %}Refresh metadata — {{ work.title }} — {{ library_name() }}{% endblock %} {% block content %}

Refresh metadata

{% if not report.found %}

Refresh failed: {{ report.error or "no upstream data found" }}

Back to edit

{% else %}

Source: {{ report.source }} (lookup: {{ report.lookup_kind }}={{ report.lookup_value }})

{% if report.planned %}

Applying this refresh will update {{ report.planned | length }} field{{ '' if report.planned | length == 1 else 's' }} on this work. Text fields are only filled when the current value is empty; the cover URL is replaced when upstream provides a new one. Local cover-image cache is always re-downloaded so a same-URL upstream image update is picked up.

{% for fname, change in report.planned.items() | sort %} {% endfor %}
Field Current New (from {{ report.source }})
{{ fname }} {% if change[0] %}{{ change[0] }}{% else %}empty{% endif %} {{ change[1] }}
{% else %}

No fields would change. The work already has values for every field this source provides, and the cover URL is unchanged.

Confirming will still re-download the cover image from upstream in case the bytes have been updated at the same URL.

{% endif %}
Cancel {% endif %} {% endblock %}