Parser for search results in connectors

This commit is contained in:
Mouse Reeve
2020-05-08 17:56:24 -07:00
parent c8bb717634
commit bb01834a31
5 changed files with 18 additions and 2 deletions

View File

@ -47,6 +47,10 @@ class Connector(AbstractConnector):
)
def parse_search_data(self, data):
return data.get('docs')
def get_or_create_book(self, olkey):
''' pull up a book record by whatever means possible.
if you give a work key, it should give you the default edition,