It seems that the library currently requires specifying either an ISBN or LCCN identifier in order to be able to create a new book, which differs from the behaviour of the web form for the book creation, where the identifiers are optional.
To reproduce this should work just fine
from olclient.openlibrary import OpenLibrary
import olclient.common as common
ol = OpenLibrary()
book = common.Book(title="My test book title", authors=[common.Author(name="Testy McTestFace")], publisher=u"Publisher", publish_date=u"2018")
new_book = ol.create_book(book)
This will trigger the value error.
I'm not sure if this is expected behaviour that was designed to work like this, or whether the openlibrary-client is just out-of-sync with how the web-form behaves? If it's the latter I'd be happy to give it a shot to adjust it according to the web form🙂
It seems that the library currently requires specifying either an ISBN or LCCN identifier in order to be able to create a new book, which differs from the behaviour of the web form for the book creation, where the identifiers are optional.
To reproduce this should work just fine
This will trigger the value error.
I'm not sure if this is expected behaviour that was designed to work like this, or whether the
openlibrary-clientis just out-of-sync with how the web-form behaves? If it's the latter I'd be happy to give it a shot to adjust it according to the web form🙂