|
Lines 574-580
Link Here
|
| 574 |
[% END # /IF transfer || needstransfer %] |
574 |
[% END # /IF transfer || needstransfer %] |
| 575 |
|
575 |
|
| 576 |
<!-- case of simple return no issue or transfer but with a reservation --> |
576 |
<!-- case of simple return no issue or transfer but with a reservation --> |
| 577 |
[% IF ( reserved ) %] |
577 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
| 578 |
<!-- reserved --> |
578 |
<!-- reserved --> |
| 579 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
579 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
| 580 |
<div class="modal-dialog"> |
580 |
<div class="modal-dialog"> |
|
Lines 686-691
Link Here
|
| 686 |
</div> <!-- /.modal-dialog --> |
686 |
</div> <!-- /.modal-dialog --> |
| 687 |
</div> <!-- /#hold-found2 --> |
687 |
</div> <!-- /#hold-found2 --> |
| 688 |
[% END #/IF reserved %] |
688 |
[% END #/IF reserved %] |
|
|
689 |
|
| 690 |
[% IF ( recalled ) %] |
| 691 |
<!-- recalled --> |
| 692 |
<div id="recalled" class="modal fade audio-alert-action block"> |
| 693 |
<div class="modal-dialog"> |
| 694 |
<div class="modal-content"> |
| 695 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 696 |
|
| 697 |
<div class="modal-header"> |
| 698 |
<h3> |
| 699 |
Recall found: |
| 700 |
<br/> |
| 701 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 702 |
[% IF recall.item %] |
| 703 |
<div class="recall-found-barcode"> |
| 704 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 705 |
</div> |
| 706 |
[% END %] |
| 707 |
</h3> |
| 708 |
</div> |
| 709 |
|
| 710 |
<div class="modal-body"> |
| 711 |
[% IF ( recall.recallnotes ) %] |
| 712 |
<h4>Notes:</h4> |
| 713 |
<p>[% recall.recallnotes | html %]</p> |
| 714 |
<hr /> |
| 715 |
[% END %] |
| 716 |
<h5>Recall placed by:</h5> |
| 717 |
<ul> |
| 718 |
<li> |
| 719 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 720 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 721 |
</li> |
| 722 |
|
| 723 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 724 |
|
| 725 |
[% IF ( recall.patron.phone ) %] |
| 726 |
<li>[% recall.patron.phone | html %]</li> |
| 727 |
[% END %] |
| 728 |
|
| 729 |
[% IF ( recall.patron.email ) %] |
| 730 |
<li> |
| 731 |
[% IF ( transfertodo ) %] |
| 732 |
[% recall.patron.email | html %] |
| 733 |
[% ELSE %] |
| 734 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 735 |
[% END %] |
| 736 |
</li> |
| 737 |
[% END %] |
| 738 |
|
| 739 |
[% UNLESS ( transfertodo) %] |
| 740 |
[% INCLUDE display_bormessagepref %] |
| 741 |
[% END %] |
| 742 |
|
| 743 |
[% IF ( recall.patron.is_debarred ) %] |
| 744 |
<li class="error">Patron is RESTRICTED</li> |
| 745 |
[% END %] |
| 746 |
|
| 747 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 748 |
<li class="error">Patron's address is in doubt</li> |
| 749 |
[% END %] |
| 750 |
</ul> |
| 751 |
[% IF ( transfertodo ) %] |
| 752 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 753 |
[% ELSE %] |
| 754 |
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 755 |
[% END %] |
| 756 |
|
| 757 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 758 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 759 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 760 |
<input type="hidden" name="recall_slip" value="0"> |
| 761 |
|
| 762 |
</div> |
| 763 |
|
| 764 |
<div class="modal-footer"> |
| 765 |
[% IF ( transfertodo ) %] |
| 766 |
<button type="submit" class="btn btn-default approve"> |
| 767 |
<i class="fa fa-check"></i> Confirm recall and transfer |
| 768 |
</button> |
| 769 |
<button type="button" class="btn btn-default print-recall"> |
| 770 |
<i class="fa fa-print"></i> Print slip, transfer, and confirm |
| 771 |
</button> |
| 772 |
[% ELSE %] |
| 773 |
<button type="submit" class="btn btn-default approve"> |
| 774 |
<i class="fa fa-check"></i> Confirm recall |
| 775 |
</button> |
| 776 |
<button type="button" class="btn btn-default print-recall"> |
| 777 |
<i class="fa fa-print"></i> Print slip and confirm |
| 778 |
</button> |
| 779 |
[% END %] |
| 780 |
|
| 781 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 782 |
<i class="fa fa-times"></i> Ignore |
| 783 |
</button> |
| 784 |
</div> <!-- /.modal-footer --> |
| 785 |
</form> <!-- /.confirm --> |
| 786 |
</div> <!-- /.modal-content --> |
| 787 |
</div> <!-- /.modal-dialog --> |
| 788 |
</div> <!-- /#recalled --> |
| 789 |
[% END #/IF recalled %] |
| 790 |
|
| 791 |
[% IF ( waitingrecall ) %] |
| 792 |
<!-- recalled --> |
| 793 |
<div id="recalledwaiting" class="modal fade audio-alert-action block"> |
| 794 |
<div class="modal-dialog"> |
| 795 |
<div class="modal-content"> |
| 796 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 797 |
|
| 798 |
<div class="modal-header"> |
| 799 |
<h3> |
| 800 |
Recall found (item is already waiting): |
| 801 |
<br/> |
| 802 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 803 |
[% IF recall.item %] |
| 804 |
<div class="recall-found-barcode"> |
| 805 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 806 |
</div> |
| 807 |
[% END %] |
| 808 |
</h3> |
| 809 |
</div> |
| 810 |
|
| 811 |
<div class="modal-body"> |
| 812 |
[% IF ( recall.recallnotes ) %] |
| 813 |
<h4>Notes:</h4> |
| 814 |
<p>[% recall.recallnotes | html %]</p> |
| 815 |
<hr /> |
| 816 |
[% END %] |
| 817 |
<h5>Recall placed by:</h5> |
| 818 |
<ul> |
| 819 |
<li> |
| 820 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 821 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 822 |
</li> |
| 823 |
|
| 824 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 825 |
|
| 826 |
[% IF ( recall.patron.phone ) %] |
| 827 |
<li>[% recall.patron.phone | html %]</li> |
| 828 |
[% END %] |
| 829 |
|
| 830 |
[% IF ( recall.patron.email ) %] |
| 831 |
<li> |
| 832 |
[% IF ( transfertodo ) %] |
| 833 |
[% recall.patron.email | html %] |
| 834 |
[% ELSE %] |
| 835 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 836 |
[% END %] |
| 837 |
</li> |
| 838 |
[% END %] |
| 839 |
|
| 840 |
[% UNLESS ( transfertodo) %] |
| 841 |
[% INCLUDE display_bormessagepref %] |
| 842 |
[% END %] |
| 843 |
|
| 844 |
[% IF ( recall.patron.is_debarred ) %] |
| 845 |
<li class="error">Patron is RESTRICTED</li> |
| 846 |
[% END %] |
| 847 |
|
| 848 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 849 |
<li class="error">Patron's address is in doubt</li> |
| 850 |
[% END %] |
| 851 |
</ul> |
| 852 |
[% IF ( transfertodo ) %] |
| 853 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 854 |
[% ELSE %] |
| 855 |
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 856 |
[% END %] |
| 857 |
|
| 858 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 859 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 860 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 861 |
<input type="hidden" name="recall_slip" value="0"> |
| 862 |
|
| 863 |
</div> |
| 864 |
|
| 865 |
<div class="modal-footer"> |
| 866 |
<button type="submit" class="btn btn-default approve"> |
| 867 |
<i class="fa fa-check"></i> Confirm recall |
| 868 |
</button> |
| 869 |
<button type="button" class="btn btn-default print-recall"> |
| 870 |
<i class="fa fa-print"></i> Print slip and confirm |
| 871 |
</button> |
| 872 |
|
| 873 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 874 |
<i class="fa fa-times"></i> Ignore |
| 875 |
</button> |
| 876 |
</div> <!-- /.modal-footer --> |
| 877 |
</form> <!-- /.confirm --> |
| 878 |
</div> <!-- /.modal-content --> |
| 879 |
</div> <!-- /.modal-dialog --> |
| 880 |
</div> <!-- /#recalledwaiting--> |
| 881 |
[% END #/IF recalledwaiting %] |
| 689 |
[% END # /IF found %] |
882 |
[% END # /IF found %] |
| 690 |
|
883 |
|
| 691 |
<div class="static_checkin_messages"> |
884 |
<div class="static_checkin_messages"> |
|
Lines 972-977
Link Here
|
| 972 |
[% END %] |
1165 |
[% END %] |
| 973 |
[% END %] |
1166 |
[% END %] |
| 974 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
1167 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
1168 |
|
| 1169 |
[% IF recall_slip %] |
| 1170 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
| 1171 |
[% END %] |
| 1172 |
|
| 975 |
var returns_table = KohaTable("checkedintable", { |
1173 |
var returns_table = KohaTable("checkedintable", { |
| 976 |
"bFilter":false, |
1174 |
"bFilter":false, |
| 977 |
"bPaginate":false, |
1175 |
"bPaginate":false, |
|
Lines 1077-1082
Link Here
|
| 1077 |
this.form.submit(); |
1275 |
this.form.submit(); |
| 1078 |
}); |
1276 |
}); |
| 1079 |
|
1277 |
|
|
|
1278 |
$('.print-recall').on("click",function(e){ |
| 1279 |
this.form.recall_slip.value = 1; |
| 1280 |
this.form.submit(); |
| 1281 |
}); |
| 1282 |
|
| 1080 |
$('.cancel-hold').on("click",function(e){ |
1283 |
$('.cancel-hold').on("click",function(e){ |
| 1081 |
this.form.cancel_reserve.value = 1; |
1284 |
this.form.cancel_reserve.value = 1; |
| 1082 |
this.form.submit(); |
1285 |
this.form.submit(); |