Summary: | larger cover images from openlibrary | ||
---|---|---|---|
Product: | Koha | Reporter: | Nicole C. Engard <nengard> |
Component: | Templates | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED DUPLICATE | QA Contact: | Bugs List <koha-bugs> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | chris, kohapatch, savitra.sirohi |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 5429 | ||
Bug Blocks: |
Description
Nicole C. Engard
2011-08-05 11:49:15 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. 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 Thanks Chris. The medium ones are too big for the results page, but would be just right for the detail page. 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 :) |