Update existing authors when isni data available

When an existing author is selected as a new author when editing a book,
if they have an ISNI ID recorded we check the record and augment the local
database record from the ISNI data.

Also dedupes author aliases for this feature and when adding a completely
new author.
This commit is contained in:
Hugh Rundle
2021-11-01 19:50:49 +11:00
parent c845b7a5d0
commit 6556090524
4 changed files with 47 additions and 2 deletions

View File

@ -78,6 +78,7 @@
<p class="help ml-5">
{{ author.existing_isnis|get_isni_bio:match }}
</p>
{{ author.existing_isnis|get_isni:match }}
{% endfor %}
<label class="label mt-2">
<input type="radio" name="author_match-{{ counter }}" value="{{ author.name }}" required> {% trans "This is a new author" %}