Lines 430-467
Link Here
|
430 |
[% END %] |
430 |
[% END %] |
431 |
<div class="modal-dialog"> |
431 |
<div class="modal-dialog"> |
432 |
<div class="modal-content"> |
432 |
<div class="modal-content"> |
433 |
<div class="modal-header"> |
433 |
<form method="post" action="returns.pl" name="wrongtransferform" id="wrongtransferform"> |
434 |
<h3> |
434 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
435 |
Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %] |
435 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
436 |
</h3> |
436 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
437 |
</div> |
437 |
<input type="hidden" name="transit" value="[% NewTransfer | html %]" /> |
438 |
<div class="modal-body"> |
438 |
[% FOREACH inputloo IN inputloop %] |
439 |
<p> |
439 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
440 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
440 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
441 |
[% item.barcode | html %]: [% title | html %] |
441 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
442 |
</a> |
442 |
[% END %] |
443 |
</p> |
443 |
|
444 |
[% INCLUDE all_checkin_messages %] |
444 |
<div class="modal-header"> |
445 |
</div> |
445 |
<h3> |
446 |
<div class="modal-footer"> |
446 |
Wrong transfer detected, please return item to: [% Branches.GetName( TransferWaitingAt ) | html %] |
447 |
<!-- CONFIRM --> |
447 |
</h3> |
448 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
448 |
</div> |
449 |
<!-- PRINT SLIP --> |
449 |
|
450 |
<button type="button" data-dismiss="modal" class="btn btn-default openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% TransferWaitingAt | uri %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
450 |
<div class="modal-body"> |
451 |
<!-- CANCEL TRANSFER --> |
451 |
<p> |
452 |
<form method="post" action="returns.pl" name="mainform"> |
452 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a> |
453 |
<button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button> |
453 |
</p> |
454 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
454 |
|
455 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
455 |
[% INCLUDE all_checkin_messages %] |
456 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
456 |
</div> |
457 |
<input type="hidden" name="canceltransfer" value="1" /> |
457 |
|
458 |
[% FOREACH inputloo IN inputloop %] |
458 |
<div class="modal-footer"> |
459 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
459 |
<!-- CONFIRM --> |
460 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
460 |
<button class="btn btn-default approve" type="submit"><i class="fa fa-check"></i> OK</button> |
461 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
461 |
<!-- PRINT SLIP --> |
462 |
[% END %] |
462 |
<button type="button" data-dismiss="modal" class="btn btn-default transit openWin" data-transfer="[% NewTransfer | html %]" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% TransferWaitingAt | uri %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
463 |
</form> <!-- /mainform --> |
463 |
<!-- CANCEL TRANSFER --> |
464 |
</div> <!-- /.modal-footer --> |
464 |
<button type="button" data-dismiss="modal" class="btn btn-default deny cancel"><i class="fa fa-times"></i> Cancel transfer</button> |
|
|
465 |
</div> <!-- /.modal-footer --> |
466 |
</form> <!-- /wrongtransferform --> |
465 |
</div> <!-- /.modal-content --> |
467 |
</div> <!-- /.modal-content --> |
466 |
</div> <!-- /.modal-dialog --> |
468 |
</div> <!-- /.modal-dialog --> |
467 |
</div> <!-- /#wrong-transfer-modal --> |
469 |
</div> <!-- /#wrong-transfer-modal --> |
Lines 1126-1131
Link Here
|
1126 |
Dopop( $(this).data("url") ); |
1128 |
Dopop( $(this).data("url") ); |
1127 |
}); |
1129 |
}); |
1128 |
|
1130 |
|
|
|
1131 |
$('.cancel').on("click",function(e){ |
1132 |
var docancel = $("<input>").attr("type", "hidden").attr("name", "canceltransfer").val(1); |
1133 |
$('#wrongtransferform').append(docancel); |
1134 |
this.form.submit(); |
1135 |
}); |
1136 |
|
1129 |
$('.print').on("click",function(e){ |
1137 |
$('.print').on("click",function(e){ |
1130 |
this.form.print_slip.value = 1; |
1138 |
this.form.print_slip.value = 1; |
1131 |
let barcode = document.getElementById('confirm-hold-barcode'); |
1139 |
let barcode = document.getElementById('confirm-hold-barcode'); |
1132 |
- |
|
|