Bugzilla – Attachment 77812 Details for
Bug 19511
Local cover images not centered in table column in staff client search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19511: Local cover images not centered in table column in staff client search results
Bug-19511-Local-cover-images-not-centered-in-table.patch (text/plain), 2.00 KB, created by
Dilan Johnpullé
on 2018-08-15 07:12:50 UTC
(
hide
)
Description:
Bug 19511: Local cover images not centered in table column in staff client search results
Filename:
MIME Type:
Creator:
Dilan Johnpullé
Created:
2018-08-15 07:12:50 UTC
Size:
2.00 KB
patch
obsolete
>From 8f730f194366f9b14685863e3ef25c3ab696faf3 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 26 Jul 2018 15:36:24 +0000 >Subject: [PATCH] Bug 19511: Local cover images not centered in table column in > staff client search results >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > koha-tmpl/intranet-tmpl/prog/js/localcovers.js | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/localcovers.js b/koha-tmpl/intranet-tmpl/prog/js/localcovers.js >index ac1f885..fe6aeac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/localcovers.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/localcovers.js >@@ -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 { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19511
:
68369
|
77293
|
77812
|
77840