Use name field only for author name

It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
This commit is contained in:
Mouse Reeve
2020-12-12 09:47:27 -08:00
parent 5cf9e24ae5
commit 31a407d74a
7 changed files with 35 additions and 20 deletions

View File

@ -178,8 +178,7 @@ class AbstractConnector(AbstractMinimalConnector):
author_text = []
for author in self.get_authors_from_data(data):
book.authors.add(author)
if author.display_name:
author_text.append(author.display_name)
author_text.append(author.name)
book.author_text = ', '.join(author_text)
book.save()