From d013541d6dd35f8157cd0ef5d9b163217322403a Mon Sep 17 00:00:00 2001 From: Mason James Date: Tue, 19 Feb 2013 16:24:15 +1300 Subject: [PATCH] [PASSED QA] Bug 9660 - OpenLibrary covers are too small on OPAC search results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Demians Works as advertised. OpenLibrary book cover API offers 3 cover sizes: small, medium, and large. Switch from small to medium, for result page, with downsizing. Signed-off-by: Katrin Fischer Improves display of OpenLibrary covers in OPAC result list. All tests and QA script pass. --- koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js b/koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js index c07ba3b..10a58dd 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js @@ -51,7 +51,8 @@ KOHA.OpenLibrary = { $(this).append(img); $(this).append('
' + 'Preview
'); } else { - img.src = book.cover.small; + img.src = book.cover.medium; + img.height = '110'; $(this).append(img); } } else { -- 1.7.9.5