Skip to content

Adding books requires identifiers #380

@gedankenstuecke

Description

@gedankenstuecke

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🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions