convert between ibsn 10 and 13

This commit is contained in:
Mouse Reeve
2020-10-29 12:32:37 -07:00
parent 90cccc455e
commit 7febcec229
7 changed files with 97 additions and 24 deletions

View File

@ -52,11 +52,13 @@ class Connector(AbstractConnector):
def get_edition_from_work_data(self, data):
return data['editions'][0]
''' we're served a list of edition urls '''
path = data['editions'][0]
return get_data(path)
def get_work_from_edition_date(self, data):
return data['work']
return get_data(data['work'])
def get_authors_from_data(self, data):