Hello:

I'm writing an iOS App as a mobile front end to search and browse and download 
eBooks from the OpenLibrary database. 

Is there a way to go to the list of eBook editions using the work OLID? 

It's relatively straightforward to get a list of eBooks from a work in a search 
result. One need only do a multi-request format query documented on 

    https://openlibrary.org/dev/docs/api/read

and pass the list of edition OLIDs from the search result record. 

https://openlibrary.org/api/volumes/brief/json/OLID:OL13750740M;OLID:OL23761702M;OLID:OL6635084M;OLID:OL7086400M;OLID:OL12580066M;OLID:OL6660819M;OLID:OL22210119M;OLID:OL6706844M;OLID:OL16175143M;OLID:OL15252807M;OLID:OL20857488M;OLID:OL7465571M;OLID:OL22350630M;OLID:OL16178158M;OLID:OL2910851M;OLID:OL24218911M;OLID:OL5087797M;OLID:OL9876338M;OLID:OL9566434M;OLID:OL8229353M;OLID:OL2026059M;OLID:OL1429238M;OLID:OL9485003M;OLID:OL49505M;OLID:OL13321006M;OLID:OL6789949M;OLID:OL8926073M;OLID:OL12033754M;OLID:OL3568003M;OLID:OL3307832M;OLID:OL8870259M;OLID:OL11938477M;OLID:OL11792042M;OLID:OL11975893M;OLID:OL9347267M;OLID:OL11975773M;OLID:OL9325060M;OLID:OL9845261M

It's ugly, but it works.

if the user browses around through the author to other works it becomes much 
less straightforward. One must then pull all the editions associated with the 
work and then do a multi-request query. This is another round trip and more 
data traffic. I can do it if I must. I would query for the editions by:

    https://openlibrary.org/query.json?type=/type/edition&works=/works/OL108456W

and then build the above multi-request query from the results.

What does the server do to build a page like:

    https://openlibrary.org/works/OL108456W/Scaramouche

Have I missed something obvious?

Thank you for your time and attention.

Sincerely,

Bob Wakefield
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
Archives: http://www.mail-archive.com/[email protected]/
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to