Bug 5429

Summary: Enable Koha to fetch book covers from openlibrary
Product: Koha Reporter: Chris Cormack <chris>
Component: OPACAssignee: Chris Cormack <chris>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: magnus, nengard, paul.poulain
Version: 3.6   
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:    
Bug Blocks: 6625, 6624, 6672    
Attachments: Proposed patch
Follow up patch
Follow up patch
Signed-off patch 1/2
Signed-off patch 2/2
proposed patch (passed QA)
proposed patch 2 (passed QA)
proposed patch 3 (passed QA)

Description Chris Cormack 2010-11-23 19:57:11 UTC
Openlibrary has an API very similair to google books, we should enable Koha to use it to fetch book covers
Comment 1 Chris Cormack 2011-07-23 07:57:57 UTC
Patch sent to the mailing list
Comment 2 Chris Cormack 2011-07-23 08:11:23 UTC Comment hidden (obsolete)
Comment 3 Chris Cormack 2011-07-23 08:11:48 UTC Comment hidden (obsolete)
Comment 4 Chris Cormack 2011-07-23 08:17:33 UTC Comment hidden (obsolete)
Comment 5 Nicole C. Engard 2011-07-23 11:55:12 UTC
I have signed off on these patches since they do what they say they do - but if there is any way to have bigger cover images I'd love to see a follow up patch that does that.  The covers do appear a bit too small compared to other cover image services.

Nicole
Comment 6 Magnus Enger 2011-07-23 12:39:52 UTC Comment hidden (obsolete)
Comment 7 Magnus Enger 2011-07-23 12:43:33 UTC Comment hidden (obsolete)
Comment 8 Magnus Enger 2011-07-23 12:44:44 UTC
That last URL should of course be: 

http://covers.openlibrary.org/b/id/227938-M.jpg
Comment 9 Nicole C. Engard 2011-07-23 13:21:23 UTC
Magnus,

You repeated exactly what I said :) Glad I'm not alone. I did not however attach my signed off patches here ... just FYI.

Nicole
Comment 10 Paul Poulain 2011-08-03 14:23:07 UTC
Created attachment 4822 [details] [review]
proposed patch (passed QA)
Comment 11 Paul Poulain 2011-08-03 14:24:17 UTC
Created attachment 4823 [details] [review]
proposed patch 2 (passed QA)
Comment 12 Paul Poulain 2011-08-03 14:26:08 UTC
Created attachment 4824 [details] [review]
proposed patch 3 (passed QA)

QA comment

No comment, works fine, nothing to notice, except, as others, the size of the image, that is quite small.

I've added a 3rd patch, with the version number (chris : 006, take care of applying the 005 i've validated a few hours ago before)
I also have rebased the first one, for a small/easy to fix updatedatabase glitch
Comment 13 Chris Cormack 2011-08-04 01:34:17 UTC
Have pushed,

For future reference, it is easier/better for me if you leave the updatedabase as XXX and don't change the kohaversion

I don't always apply them in the order you have numbered them, and its easier for me to just set the version when they are applied to master.
Comment 14 Nicole C. Engard 2011-08-05 11:48:22 UTC
opening a new ticket to recommend that the cover images be bigger, but this patch works as expected.