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