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:
parent
30a959dfce
commit
37148c5127
3 changed files with 19 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue