[Koha-bugs] [Bug 11328] New: local cover images in staff
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Dec 2 04:36:04 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11328
Bug ID: 11328
Summary: local cover images in staff
Change sponsored?: ---
Product: Koha
Version: 3.12
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Templates
Assignee: oleonard at myacpl.org
Reporter: nengard at gmail.com
QA Contact: testopia at bugs.koha-community.org
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);
}
});
});
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list