Update openlibrary author with ISNI
This commit is contained in:
parent
d7e4e6aa1e
commit
4085714764
8 changed files with 43 additions and 15 deletions
|
@ -177,9 +177,10 @@ class AbstractConnector(AbstractMinimalConnector):
|
|||
|
||||
def get_or_create_author(self, remote_id, instance=None):
|
||||
"""load that author"""
|
||||
existing = models.Author.find_existing_by_remote_id(remote_id)
|
||||
if existing:
|
||||
return existing
|
||||
if not instance:
|
||||
existing = models.Author.find_existing_by_remote_id(remote_id)
|
||||
if existing:
|
||||
return existing
|
||||
|
||||
data = self.get_book_data(remote_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue