display isni bio with existing author name

If an existing author has an isni on record and it matches an author from the isni api call,
display the isni short description to aid with identifying the appropriate author.
This commit is contained in:
Hugh Rundle
2021-11-01 10:26:17 +11:00
parent 30a959dfce
commit 37148c5127
3 changed files with 19 additions and 0 deletions

View File

@ -75,11 +75,14 @@ class EditBook(View):
for a in author_matches
if i["isni"] == a.isni
]
isni_matches = list(filter(lambda x: x not in exists, isni_authors))
data["author_matches"].append(
{
"name": author.strip(),
"matches": author_matches,
"existing_isnis": exists,
"isni_matches": isni_matches,
}
)