select correct isni record when adding authors

The original implementation of this was so, so broken.
Now it's not.
This commit is contained in:
Hugh Rundle
2021-11-01 11:34:32 +11:00
parent 37148c5127
commit 552980e208
4 changed files with 18 additions and 14 deletions

View File

@ -59,13 +59,12 @@
{% if author.isni_matches %}
{% for isni_match in author.isni_matches %}
<label class="label mt-2">
<input type="radio" name="author_match-{{ counter }}" value="{{ isni_match.name }}" required>
<input type="radio" name="author_match-{{ counter }}" value="isni_match_{{ isni_match.isni }}" required>
{{ isni_match.name }}
</label>
<p class="help ml-5 mb-2">
<a href="{{ match.uri }}" target="_blank">{{ isni_match.bio }}</a>
<a href="{{ isni_match.uri }}" target="_blank">{{ isni_match.bio }}</a>
</p>
<input type="text" name="isni_match-{{ counter }}" value="{{ isni_match.isni }}" hidden>
{% endfor %}
{% endif %}
{% for match in author.matches %}