Unify concept of absolute_id and remote_id
This commit is contained in:
@ -124,7 +124,7 @@ class Connector(AbstractConnector):
|
||||
|
||||
|
||||
def format_search_result(self, doc):
|
||||
# build the absolute id from the openlibrary key
|
||||
# build the remote id from the openlibrary key
|
||||
key = self.books_url + doc['key']
|
||||
author = doc.get('author_name') or ['Unknown']
|
||||
return SearchResult(
|
||||
|
@ -41,7 +41,7 @@ class Connector(AbstractConnector):
|
||||
def format_search_result(self, book):
|
||||
return SearchResult(
|
||||
book.title,
|
||||
book.absolute_id,
|
||||
book.local_id,
|
||||
book.author_text,
|
||||
book.published_date.year if book.published_date else None,
|
||||
)
|
||||
|
Reference in New Issue
Block a user