|
Lines 1503-1522
Link Here
|
| 1503 |
[% INCLUDE 'calendar.inc' %] |
1503 |
[% INCLUDE 'calendar.inc' %] |
| 1504 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
1504 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
| 1505 |
[% Asset.js("js/modal_printer.js") | $raw %] |
1505 |
[% Asset.js("js/modal_printer.js") | $raw %] |
|
|
1506 |
<script> |
| 1507 |
/* Set a variable needed by resolve_claim_modal.js or add_catalog_concern.js */ |
| 1508 |
var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; |
| 1509 |
|
| 1510 |
var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
| 1511 |
|
| 1512 |
const reserve_id = "[% reserve_id | html %]"; |
| 1513 |
const recall_id = "[% recall_id | html %]"; |
| 1514 |
|
| 1515 |
const print_slip = [% print_slip ? 1 : 0 | html %]; |
| 1516 |
const recall_slip = [% recall_slip ? 1 : 0 | html %]; |
| 1517 |
const overduecharges = [% overduecharges ? 1 : 0 | html %]; |
| 1518 |
const was_transferred = [% transfer ? 1 : 0 | html %]; |
| 1519 |
|
| 1520 |
addPrefs({ |
| 1521 |
TransfersBlockCirc: [% Koha.Preference('TransfersBlockCirc') ? 1 : 0 | html %], |
| 1522 |
AutomaticConfirmTransfer: [% Koha.Preference('AutomaticConfirmTransfer') ? 1 : 0 | html %], |
| 1523 |
}); |
| 1524 |
</script> |
| 1525 |
|
| 1506 |
[% IF ( ReturnClaims ) %] |
1526 |
[% IF ( ReturnClaims ) %] |
| 1507 |
<script> |
|
|
| 1508 |
/* Set a variable needed by resolve_claim_modal.js */ |
| 1509 |
var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; |
| 1510 |
</script> |
| 1511 |
[% Asset.js("js/resolve_claim_modal.js") | $raw %] |
1527 |
[% Asset.js("js/resolve_claim_modal.js") | $raw %] |
| 1512 |
[% END %] |
1528 |
[% END %] |
| 1513 |
[% IF ( Koha.Preference('CatalogConcerns') ) %] |
1529 |
[% IF ( Koha.Preference('CatalogConcerns') ) %] |
| 1514 |
<script> |
|
|
| 1515 |
/* Set a variable needed by add_catalog_concern.js */ |
| 1516 |
var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; |
| 1517 |
</script> |
| 1518 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
1530 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
| 1519 |
[% END %] |
1531 |
[% END %] |
|
|
1532 |
|
| 1520 |
<script> |
1533 |
<script> |
| 1521 |
function Dopop(link) { |
1534 |
function Dopop(link) { |
| 1522 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
1535 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
|
Lines 1545-1564
Link Here
|
| 1545 |
e.preventDefault(); |
1558 |
e.preventDefault(); |
| 1546 |
$(".modal.audio-alert-action").modal("show"); |
1559 |
$(".modal.audio-alert-action").modal("show"); |
| 1547 |
}); |
1560 |
}); |
| 1548 |
[% IF reserve_id %] |
1561 |
if (reserve_id){ |
| 1549 |
$(".print-slip").on('click', function(e) { |
1562 |
$(".print-slip").on('click', function(e) { |
| 1550 |
e.preventDefault(); |
1563 |
e.preventDefault(); |
| 1551 |
Dopop("hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]"); |
1564 |
Dopop("hold-transfer-slip.pl?reserve_id=" + reserve_id ); |
| 1552 |
}); |
1565 |
}); |
| 1553 |
[% IF print_slip %] |
1566 |
if (print_slip){ |
| 1554 |
Dopop("hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]"); |
1567 |
Dopop("hold-transfer-slip.pl?reserve_id=" + reserve_id ); |
| 1555 |
[% END %] |
1568 |
} |
| 1556 |
[% END %] |
1569 |
} |
| 1557 |
var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
| 1558 |
|
1570 |
|
| 1559 |
[% IF recall_slip %] |
1571 |
if (recall_slip){ |
| 1560 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
1572 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=' + recall_id); |
| 1561 |
[% END %] |
1573 |
} |
| 1562 |
|
1574 |
|
| 1563 |
var returns_table = $("#checkedintable").kohaTable( |
1575 |
var returns_table = $("#checkedintable").kohaTable( |
| 1564 |
{ |
1576 |
{ |
|
Lines 1608-1614
Link Here
|
| 1608 |
$("#barcode").focus(); |
1620 |
$("#barcode").focus(); |
| 1609 |
}); |
1621 |
}); |
| 1610 |
|
1622 |
|
| 1611 |
[% IF(overduecharges) %] |
1623 |
if (overduecharges){ |
| 1612 |
$("#barcode").focus(function () { |
1624 |
$("#barcode").focus(function () { |
| 1613 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
1625 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
| 1614 |
$("#barcode").addClass("input-warning"); |
1626 |
$("#barcode").addClass("input-warning"); |
|
Lines 1619-1625
Link Here
|
| 1619 |
$("#barcode").blur(function () { |
1631 |
$("#barcode").blur(function () { |
| 1620 |
$("#barcode").removeClass("input-warning"); |
1632 |
$("#barcode").removeClass("input-warning"); |
| 1621 |
}); |
1633 |
}); |
| 1622 |
[% END %] |
1634 |
} |
| 1623 |
|
1635 |
|
| 1624 |
$('.openWin').on("click",function(e){ |
1636 |
$('.openWin').on("click",function(e){ |
| 1625 |
Dopop( $(this).data("url") ); |
1637 |
Dopop( $(this).data("url") ); |
|
Lines 1755-1770
Link Here
|
| 1755 |
], |
1767 |
], |
| 1756 |
}); |
1768 |
}); |
| 1757 |
|
1769 |
|
| 1758 |
[% IF ( !(Koha.Preference('TransfersBlockCirc')) && Koha.Preference('AutomaticConfirmTransfer') ) %] |
1770 |
if( !prefs.TransfersBlockCirc && prefs.AutomaticConfirmTransfer ){ |
| 1759 |
$("#wrong-transfer-modal").on('hidden.bs.modal',function(){ |
1771 |
$("#wrong-transfer-modal").on('hidden.bs.modal',function(){ |
| 1760 |
$("#wrongtransferform").submit(); |
1772 |
$("#wrongtransferform").submit(); |
| 1761 |
}); |
1773 |
}); |
| 1762 |
[% IF (transfer) %] |
1774 |
if (was_transferred){ |
| 1763 |
$("#item-transfer-modal").on('hidden.bs.modal',function(){ |
1775 |
$("#item-transfer-modal").on('hidden.bs.modal',function(){ |
| 1764 |
$("#mainform").submit(); |
1776 |
$("#mainform").submit(); |
| 1765 |
}); |
1777 |
}); |
| 1766 |
[% END %] |
1778 |
} |
| 1767 |
[% END %] |
1779 |
} |
| 1768 |
}); |
1780 |
}); |
| 1769 |
</script> |
1781 |
</script> |
| 1770 |
[% END %] |
1782 |
[% END %] |
| 1771 |
- |
|
|