Bug 19511: Local cover images not centered in table column in staff client search results
This patch modifies the JavaScript which embeds local cover images in staff client catalog search results. It now adds the "thumbail" class to the image, matching Amazon cover images. To test you should have one or more titles with local cover images attached. Apply the patch and clear your browser cache if necessary. Enable both the AmazonCoverImages and LocalCoverImages system preferences and perform a search which will return titles with local cover images. Confirm that local covers are styled like Amazon covers. Tested and confirmed local cover images are appearing quite nicely now. Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commitafa51869c3) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit683589ec95) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
463e7de027
commit
2fdf6e2322
|
|
@ -56,8 +56,9 @@ KOHA.LocalCover = {
|
|||
$(message).html(NO_LOCAL_JACKET);
|
||||
$(mydiv).append(message);
|
||||
var img = $("<img />");
|
||||
img.attr('src','/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"));
|
||||
img.load(function () {
|
||||
img.attr('src','/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
|
||||
.addClass("thumbnail")
|
||||
.load(function () {
|
||||
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth <= 1) {
|
||||
//IE HACK
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue