Bug 9660 - OpenLibrary covers are too small on OPAC search results

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

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 <Katrin.Fischer.83@web.de>
Improves display of OpenLibrary covers in OPAC result list.
All tests and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
Mason James 2013-02-19 16:24:15 +13:00 committed by Chris Cormack
parent 24678f5490
commit 727afb68cd
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ KOHA.OpenLibrary = {
$(this).append(img);
$(this).append('<div class="results_summary">' + '<a href="' + book.url + '">Preview</a></div>');
} else {
img.src = book.cover.small;
img.src = book.cover.medium;
img.height = '110';
$(this).append(img);
}
} else {