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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/