The local cover images don't show on the staff results. This is what was reported to me: It looks like the staff client search results is using the same localcovers.js that the OPAC search results does however it doesn't work because the two pages are formatted differently. Here is a jquery that solves it for now: $("#searchresults").ready(function(){ $("#searchresults table td").each(function(i){ td = $(this); var tdv = td.find("input[class^='selection']"); var linkv = tdv.attr("value"); var a = $("<a />").attr('href', '/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=' + $(tdv).attr("value")); var img = $("<img />").attr('src', '/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(tdv).attr("value")) if(linkv){ $(td).append(a); $(a).append(img); } }); });
Created attachment 25459 [details] local cover
Hi, It's the same for a staff detail biblio (see attachment). Jquery code you proposed is just for a results list? is there a jquery code for detail biblio? Regards, Marjorie
Created attachment 25521 [details] [review] Bug 11328 - Show local cover images in staff client search results Local cover images do not appear in staff client search results. This patch adds them. To test, enable the LocalCoverImages system preference and add at least one cover image to a title. Perform a search which will return results that include your title. Confirm that the local cover image is displayed. Search results should also display correctly with and without AmazonCoverImages enabled as well as with LocalCoverImages disabled.
Created attachment 25681 [details] [review] [SIGNED-OFF] Bug 11328 - Show local cover images in staff client search results Local images appear now in results when available with the syspref on. But also other images from Amazon, which is fine. Bug 9991, should handle multiples, or no image avail at the same time. At least this allows local cover images to be shown.
Created attachment 26012 [details] [review] [PASSED-QA] Bug 11328 - Show local cover images in staff client search results Local cover images do not appear in staff client search results. This patch adds them. To test, enable the LocalCoverImages system preference and add at least one cover image to a title. Perform a search which will return results that include your title. Confirm that the local cover image is displayed. Search results should also display correctly with and without AmazonCoverImages enabled as well as with LocalCoverImages disabled. Signed-off-by: wajasu <matted-34813@mypacks.net> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Pushed to master. Thanks, Owen!
Pushed to 3.14.x, will be in 3.14.07