Lines 1606-1614
Note that permanent location is a code, and location may be an authval.
Link Here
|
1606 |
}); |
1606 |
}); |
1607 |
}); |
1607 |
}); |
1608 |
|
1608 |
|
1609 |
$(window).load(function() { |
1609 |
|
1610 |
verify_cover_images(); |
1610 |
[% IF ( IntranetCoce && CoceProviders ) %] |
1611 |
}); |
1611 |
let counter_wait = 0; |
|
|
1612 |
function wait_for_images(cb){ |
1613 |
|
1614 |
var loaded = 1; |
1615 |
counter_wait++; |
1616 |
|
1617 |
if ( loaded ) { |
1618 |
loaded = KOHA.coce.done; |
1619 |
} |
1620 |
|
1621 |
if (!loaded && counter_wait < 50) {// Do not wait more than 5 seconds |
1622 |
window.setTimeout(function(){wait_for_images(cb);}, 100); |
1623 |
} else { |
1624 |
if (counter_wait >= 50 ) { |
1625 |
console.log("Could not retrieve the images") |
1626 |
} |
1627 |
cb(); |
1628 |
} |
1629 |
} |
1630 |
|
1631 |
$(window).load(function() { |
1632 |
wait_for_images(verify_cover_images); |
1633 |
}); |
1634 |
[% ELSE %] |
1635 |
$(window).load(function() { |
1636 |
verify_cover_images; |
1637 |
}); |
1638 |
[% END %] |
1612 |
</script> |
1639 |
</script> |
1613 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1640 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1614 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |
1641 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |