|
Lines 28-33
KOHA.LocalCover = {
Link Here
|
| 28 |
var img = $("<img />").attr('src', |
28 |
var img = $("<img />").attr('src', |
| 29 |
'/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class")) |
29 |
'/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class")) |
| 30 |
.load(function () { |
30 |
.load(function () { |
|
|
31 |
this.setAttribute("class", "thumbnail"); |
| 31 |
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { |
32 |
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { |
| 32 |
//IE HACK |
33 |
//IE HACK |
| 33 |
try { |
34 |
try { |
|
Lines 36-42
KOHA.LocalCover = {
Link Here
|
| 36 |
} |
37 |
} |
| 37 |
catch(err){ |
38 |
catch(err){ |
| 38 |
}; |
39 |
}; |
| 39 |
} else { |
40 |
} else if (this.width > 1) { // don't show the silly 1px "no image" img |
| 40 |
if (uselink) { |
41 |
if (uselink) { |
| 41 |
var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class")); |
42 |
var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class")); |
| 42 |
$(a).append(img); |
43 |
$(a).append(img); |
| 43 |
- |
|
|