Bug 6672 - larger cover images from openlibrary
Summary: larger cover images from openlibrary
Status: CLOSED DUPLICATE of bug 7161
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Bugs List
URL:
Keywords:
Depends on: 5429
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-05 11:49 UTC by Nicole C. Engard
Modified: 2012-10-26 00:41 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicole C. Engard 2011-08-05 11:49:15 UTC
The openlibrary cover images are coming over in small format, it might be better if they were medium (like google and amazon).

See more here: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5429
Comment 1 Owen Leonard 2011-08-24 15:11:56 UTC
I see that we're pulling book covers using the Open Library Books API:

http://openlibrary.org/dev/docs/api/books

...which appears to only be able to pull the small thumbnail. On the other hand, there's the Open Library Covers API:

http://openlibrary.org/dev/docs/api/covers

...which appears to work much like Amazon covers in that there's a defined URL for each cover image in each size available:

http://covers.openlibrary.org/b/oclc/28419896-S.jpg
http://covers.openlibrary.org/b/oclc/28419896-M.jpg
http://covers.openlibrary.org/b/oclc/28419896-L.jpg

I'd be interested in hearing about why it was decided not to use the latter to pull covers.
Comment 2 Chris Cormack 2011-08-24 17:18:51 UTC
Read further down

http://openlibrary.org/dev/docs/api/books

It provides covers too, (not just the thumbnail) (cover just after links but before ebooks)

links

List of links to the book. Each link will be in the following format:

{
    "url": "http://...",
    "title": "..."
}
cover

URLs to small, medium and large covers.

{
    "small": "http://covers.openlibrary.org/b/id/1-S.jpg",
    "medium": "http://covers.openlibrary.org/b/id/1-M.jpg",
    "large": "http://covers.openlibrary.org/b/id/1-L.jpg",
}

The book api provides a lot of info.

And I did try the medium ones, but they were too big. I then checked with OpenLibrary to make sure there would be no issue in terms of license with us fetching the medium ones and scaling them via html.

But I havent had a chance to do that
Comment 3 Owen Leonard 2011-08-24 17:51:09 UTC
Thanks Chris. The medium ones are too big for the results page, but would be just right for the detail page.
Comment 4 Chris Cormack 2011-08-24 19:01:59 UTC
While you're doing that (see what I did there?)

Theres a bunch more info we get from the book api, we could show more of that on the detail page too :)
Comment 5 Savitra Sirohi 2011-11-05 06:35:25 UTC
This will get taken care of in 7161

*** This bug has been marked as a duplicate of bug 7161 ***