Lines 59-65
Link Here
|
59 |
|
59 |
|
60 |
<div class="bookcover"> |
60 |
<div class="bookcover"> |
61 |
|
61 |
|
62 |
<div id="biblio-cover-slider" class="cover-slider"> |
62 |
<div id="biblio-cover-slider" class="cover-slider cover-slides"><!-- cover-slides shows spinner --> |
63 |
[% IF ( OPACLocalCoverImages ) %] |
63 |
[% IF ( OPACLocalCoverImages ) %] |
64 |
[% IF localimages.count %] |
64 |
[% IF localimages.count %] |
65 |
[% FOREACH image IN localimages %] |
65 |
[% FOREACH image IN localimages %] |
Lines 1222-1228
Link Here
|
1222 |
[% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] |
1222 |
[% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] |
1223 |
<td class="cover"> |
1223 |
<td class="cover"> |
1224 |
<div class="bookcover"> |
1224 |
<div class="bookcover"> |
1225 |
<div class="cover-slider"> |
1225 |
<div class="cover-slider cover-slides"> |
1226 |
[% FOR image IN ITEM_RESULT.cover_images %] |
1226 |
[% FOR image IN ITEM_RESULT.cover_images %] |
1227 |
<div class="cover-image local-coverimg"> |
1227 |
<div class="cover-image local-coverimg"> |
1228 |
<a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image"> |
1228 |
<a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image"> |
Lines 1606-1621
Link Here
|
1606 |
if( $(coverSlide).find(".cover-image:visible").length < 1 ){ |
1606 |
if( $(coverSlide).find(".cover-image:visible").length < 1 ){ |
1607 |
$(coverSlide).remove(); |
1607 |
$(coverSlide).remove(); |
1608 |
} else { |
1608 |
} else { |
1609 |
$(coverSlide).addClass("cover-slides"); |
1609 |
// This is a suboptimal workaround; we should do this via load, but |
1610 |
$(coverSlide).find("img").one("load", function(index) { |
1610 |
// the image code is scattered all over now. We come here now after |
1611 |
if(this.complete && this.naturalHeight !== 0){ |
1611 |
// window load and wait_for_images (so load completed). |
1612 |
$(coverSlide).css({"background-image":"none"}); |
1612 |
var check_complete = 1; |
1613 |
} |
1613 |
$(coverSlide).find("img").each( function() { |
1614 |
}).each(function() { |
1614 |
if( !this.complete || this.naturalHeight == 0 ) check_complete = 0; |
1615 |
if(this.complete) { |
|
|
1616 |
$(this).trigger('load'); |
1617 |
} |
1618 |
}); |
1615 |
}); |
|
|
1616 |
if( check_complete ) $(coverSlide).removeClass('cover-slides'); |
1619 |
} |
1617 |
} |
1620 |
}); |
1618 |
}); |
1621 |
|
1619 |
|
1622 |
- |
|
|