var to_branch = $(this).attr('data-tobranch');
window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
});
[% IF ( found ) %]
$(document).ready( function() {
$("#transfer_confirm").modal("show");
[% END %]
$("#transfer_confirm").modal('show');
</script>
-