http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7152

Anand <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Anand <[email protected]> 2011-11-05 07:37:10 UTC ---
Added search API to Open Library. This can be used to find OLID from book
metadata. The format of both request and response is JSON.

POST http://openlibrary.org/api/ils_search

Required Headers:
    Content-type: application/json
    Authorization: Basic base64-of-username:password (optional)

Payload:

    {
        "title": "book title",
        "authors": ["author 1", "author 2"],
        "publisher": "Name of the publisher",
        "publish_date": "June 2011",
        "isbns": ["1234567890", "234567890X"]
    }

Response Format:

    {
        "status": "found", 
        "olid": "OL24605334M",
        "key": "/books/OL24605334M", 
        "cover": {
            "small": "http://covers.openlibrary.org/b/id/6685633-S.jpg";, 
            "large": "http://covers.openlibrary.org/b/id/6685633-L.jpg";, 
            "medium": "http://covers.openlibrary.org/b/id/6685633-M.jpg";
        }
    }

Status can be one of found, created or notfound. The cover property will be
available only if the book has a cover.

Currently the OL API tries to match only the ISBNs and doesn't create a new
record if no match is found. This will be improved shortly.

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to