|
Lines 585-591
Link Here
|
| 585 |
[% END # /IF transfer || needstransfer %] |
585 |
[% END # /IF transfer || needstransfer %] |
| 586 |
|
586 |
|
| 587 |
<!-- case of simple return no issue or transfer but with a reservation --> |
587 |
<!-- case of simple return no issue or transfer but with a reservation --> |
| 588 |
[% IF ( reserved ) %] |
588 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
| 589 |
<!-- reserved --> |
589 |
<!-- reserved --> |
| 590 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
590 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
| 591 |
<div class="modal-dialog"> |
591 |
<div class="modal-dialog"> |
|
Lines 697-702
Link Here
|
| 697 |
</div> <!-- /.modal-dialog --> |
697 |
</div> <!-- /.modal-dialog --> |
| 698 |
</div> <!-- /#hold-found2 --> |
698 |
</div> <!-- /#hold-found2 --> |
| 699 |
[% END #/IF reserved %] |
699 |
[% END #/IF reserved %] |
|
|
700 |
|
| 701 |
[% IF ( recalled ) %] |
| 702 |
<!-- recalled --> |
| 703 |
<div id="recalled" class="modal fade audio-alert-action block"> |
| 704 |
<div class="modal-dialog"> |
| 705 |
<div class="modal-content"> |
| 706 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 707 |
|
| 708 |
<div class="modal-header"> |
| 709 |
<h3> |
| 710 |
Recall found: |
| 711 |
<br/> |
| 712 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 713 |
[% IF recall.item %] |
| 714 |
<div class="recall-found-barcode"> |
| 715 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 716 |
</div> |
| 717 |
[% END %] |
| 718 |
</h3> |
| 719 |
</div> |
| 720 |
|
| 721 |
<div class="modal-body"> |
| 722 |
[% IF ( recall.recallnotes ) %] |
| 723 |
<h4>Notes:</h4> |
| 724 |
<p>[% recall.recallnotes | html %]</p> |
| 725 |
<hr /> |
| 726 |
[% END %] |
| 727 |
<h5>Recall placed by:</h5> |
| 728 |
<ul> |
| 729 |
<li> |
| 730 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 731 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 732 |
</li> |
| 733 |
|
| 734 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 735 |
|
| 736 |
[% IF ( recall.patron.phone ) %] |
| 737 |
<li>[% recall.patron.phone | html %]</li> |
| 738 |
[% END %] |
| 739 |
|
| 740 |
[% IF ( recall.patron.email ) %] |
| 741 |
<li> |
| 742 |
[% IF ( transfertodo ) %] |
| 743 |
[% recall.patron.email | html %] |
| 744 |
[% ELSE %] |
| 745 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 746 |
[% END %] |
| 747 |
</li> |
| 748 |
[% END %] |
| 749 |
|
| 750 |
[% UNLESS ( transfertodo) %] |
| 751 |
[% INCLUDE display_bormessagepref %] |
| 752 |
[% END %] |
| 753 |
|
| 754 |
[% IF ( recall.patron.is_debarred ) %] |
| 755 |
<li class="error">Patron is RESTRICTED</li> |
| 756 |
[% END %] |
| 757 |
|
| 758 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 759 |
<li class="error">Patron's address is in doubt</li> |
| 760 |
[% END %] |
| 761 |
</ul> |
| 762 |
[% IF ( transfertodo ) %] |
| 763 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 764 |
[% ELSE %] |
| 765 |
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 766 |
[% END %] |
| 767 |
|
| 768 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 769 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 770 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 771 |
<input type="hidden" name="recall_slip" value="0"> |
| 772 |
|
| 773 |
</div> |
| 774 |
|
| 775 |
<div class="modal-footer"> |
| 776 |
[% IF ( transfertodo ) %] |
| 777 |
<button type="submit" class="btn btn-default approve"> |
| 778 |
<i class="fa fa-check"></i> Confirm recall and transfer |
| 779 |
</button> |
| 780 |
<button type="button" class="btn btn-default print-recall"> |
| 781 |
<i class="fa fa-print"></i> Print slip, transfer, and confirm |
| 782 |
</button> |
| 783 |
[% ELSE %] |
| 784 |
<button type="submit" class="btn btn-default approve"> |
| 785 |
<i class="fa fa-check"></i> Confirm recall |
| 786 |
</button> |
| 787 |
<button type="button" class="btn btn-default print-recall"> |
| 788 |
<i class="fa fa-print"></i> Print slip and confirm |
| 789 |
</button> |
| 790 |
[% END %] |
| 791 |
|
| 792 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 793 |
<i class="fa fa-times"></i> Ignore |
| 794 |
</button> |
| 795 |
</div> <!-- /.modal-footer --> |
| 796 |
</form> <!-- /.confirm --> |
| 797 |
</div> <!-- /.modal-content --> |
| 798 |
</div> <!-- /.modal-dialog --> |
| 799 |
</div> <!-- /#recalled --> |
| 800 |
[% END #/IF recalled %] |
| 801 |
|
| 802 |
[% IF ( waitingrecall ) %] |
| 803 |
<!-- recalled --> |
| 804 |
<div id="recalledwaiting" class="modal fade audio-alert-action block"> |
| 805 |
<div class="modal-dialog"> |
| 806 |
<div class="modal-content"> |
| 807 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 808 |
|
| 809 |
<div class="modal-header"> |
| 810 |
<h3> |
| 811 |
Recall found (item is already waiting): |
| 812 |
<br/> |
| 813 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 814 |
[% IF recall.item %] |
| 815 |
<div class="recall-found-barcode"> |
| 816 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 817 |
</div> |
| 818 |
[% END %] |
| 819 |
</h3> |
| 820 |
</div> |
| 821 |
|
| 822 |
<div class="modal-body"> |
| 823 |
[% IF ( recall.recallnotes ) %] |
| 824 |
<h4>Notes:</h4> |
| 825 |
<p>[% recall.recallnotes | html %]</p> |
| 826 |
<hr /> |
| 827 |
[% END %] |
| 828 |
<h5>Recall placed by:</h5> |
| 829 |
<ul> |
| 830 |
<li> |
| 831 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 832 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 833 |
</li> |
| 834 |
|
| 835 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 836 |
|
| 837 |
[% IF ( recall.patron.phone ) %] |
| 838 |
<li>[% recall.patron.phone | html %]</li> |
| 839 |
[% END %] |
| 840 |
|
| 841 |
[% IF ( recall.patron.email ) %] |
| 842 |
<li> |
| 843 |
[% IF ( transfertodo ) %] |
| 844 |
[% recall.patron.email | html %] |
| 845 |
[% ELSE %] |
| 846 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 847 |
[% END %] |
| 848 |
</li> |
| 849 |
[% END %] |
| 850 |
|
| 851 |
[% UNLESS ( transfertodo) %] |
| 852 |
[% INCLUDE display_bormessagepref %] |
| 853 |
[% END %] |
| 854 |
|
| 855 |
[% IF ( recall.patron.is_debarred ) %] |
| 856 |
<li class="error">Patron is RESTRICTED</li> |
| 857 |
[% END %] |
| 858 |
|
| 859 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 860 |
<li class="error">Patron's address is in doubt</li> |
| 861 |
[% END %] |
| 862 |
</ul> |
| 863 |
[% IF ( transfertodo ) %] |
| 864 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 865 |
[% ELSE %] |
| 866 |
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 867 |
[% END %] |
| 868 |
|
| 869 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 870 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 871 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 872 |
<input type="hidden" name="recall_slip" value="0"> |
| 873 |
|
| 874 |
</div> |
| 875 |
|
| 876 |
<div class="modal-footer"> |
| 877 |
<button type="submit" class="btn btn-default approve"> |
| 878 |
<i class="fa fa-check"></i> Confirm recall |
| 879 |
</button> |
| 880 |
<button type="button" class="btn btn-default print-recall"> |
| 881 |
<i class="fa fa-print"></i> Print slip and confirm |
| 882 |
</button> |
| 883 |
|
| 884 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 885 |
<i class="fa fa-times"></i> Ignore |
| 886 |
</button> |
| 887 |
</div> <!-- /.modal-footer --> |
| 888 |
</form> <!-- /.confirm --> |
| 889 |
</div> <!-- /.modal-content --> |
| 890 |
</div> <!-- /.modal-dialog --> |
| 891 |
</div> <!-- /#recalledwaiting--> |
| 892 |
[% END #/IF recalledwaiting %] |
| 700 |
[% END # /IF found %] |
893 |
[% END # /IF found %] |
| 701 |
|
894 |
|
| 702 |
<div class="static_checkin_messages"> |
895 |
<div class="static_checkin_messages"> |
|
Lines 986-991
Link Here
|
| 986 |
[% END %] |
1179 |
[% END %] |
| 987 |
[% END %] |
1180 |
[% END %] |
| 988 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
1181 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
1182 |
|
| 1183 |
[% IF recall_slip %] |
| 1184 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
| 1185 |
[% END %] |
| 1186 |
|
| 989 |
var returns_table = KohaTable("checkedintable", { |
1187 |
var returns_table = KohaTable("checkedintable", { |
| 990 |
"bFilter":false, |
1188 |
"bFilter":false, |
| 991 |
"bPaginate":false, |
1189 |
"bPaginate":false, |
|
Lines 1093-1098
Link Here
|
| 1093 |
this.form.submit(); |
1291 |
this.form.submit(); |
| 1094 |
}); |
1292 |
}); |
| 1095 |
|
1293 |
|
|
|
1294 |
$('.print-recall').on("click",function(e){ |
| 1295 |
this.form.recall_slip.value = 1; |
| 1296 |
this.form.submit(); |
| 1297 |
}); |
| 1298 |
|
| 1096 |
$('.cancel-hold').on("click",function(e){ |
1299 |
$('.cancel-hold').on("click",function(e){ |
| 1097 |
this.form.cancel_reserve.value = 1; |
1300 |
this.form.cancel_reserve.value = 1; |
| 1098 |
this.form.submit(); |
1301 |
this.form.submit(); |