|
Lines 541-547
Link Here
|
| 541 |
[% END # /IF transfer || needstransfer %] |
541 |
[% END # /IF transfer || needstransfer %] |
| 542 |
|
542 |
|
| 543 |
<!-- case of simple return no issue or transfer but with a reservation --> |
543 |
<!-- case of simple return no issue or transfer but with a reservation --> |
| 544 |
[% IF ( reserved ) %] |
544 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
| 545 |
<!-- reserved --> |
545 |
<!-- reserved --> |
| 546 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
546 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
| 547 |
<div class="modal-dialog"> |
547 |
<div class="modal-dialog"> |
|
Lines 653-658
Link Here
|
| 653 |
</div> <!-- /.modal-dialog --> |
653 |
</div> <!-- /.modal-dialog --> |
| 654 |
</div> <!-- /#hold-found2 --> |
654 |
</div> <!-- /#hold-found2 --> |
| 655 |
[% END #/IF reserved %] |
655 |
[% END #/IF reserved %] |
|
|
656 |
|
| 657 |
[% IF ( recalled ) %] |
| 658 |
<!-- recalled --> |
| 659 |
<div id="recalled" class="modal fade audio-alert-action block"> |
| 660 |
<div class="modal-dialog"> |
| 661 |
<div class="modal-content"> |
| 662 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 663 |
|
| 664 |
<div class="modal-header"> |
| 665 |
<h3> |
| 666 |
Recall found: |
| 667 |
<br/> |
| 668 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 669 |
[% IF recall.item %] |
| 670 |
<div class="recall-found-barcode"> |
| 671 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 672 |
</div> |
| 673 |
[% END %] |
| 674 |
</h3> |
| 675 |
</div> |
| 676 |
|
| 677 |
<div class="modal-body"> |
| 678 |
[% IF ( recall.recallnotes ) %] |
| 679 |
<h4>Notes:</h4> |
| 680 |
<p>[% recall.recallnotes | html %]</p> |
| 681 |
<hr /> |
| 682 |
[% END %] |
| 683 |
<h5>Recall placed by:</h5> |
| 684 |
<ul> |
| 685 |
<li> |
| 686 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 687 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 688 |
</li> |
| 689 |
|
| 690 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 691 |
|
| 692 |
[% IF ( recall.patron.phone ) %] |
| 693 |
<li>[% recall.patron.phone | html %]</li> |
| 694 |
[% END %] |
| 695 |
|
| 696 |
[% IF ( recall.patron.email ) %] |
| 697 |
<li> |
| 698 |
[% IF ( transfertodo ) %] |
| 699 |
[% recall.patron.email | html %] |
| 700 |
[% ELSE %] |
| 701 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 702 |
[% END %] |
| 703 |
</li> |
| 704 |
[% END %] |
| 705 |
|
| 706 |
[% UNLESS ( transfertodo) %] |
| 707 |
[% INCLUDE display_bormessagepref %] |
| 708 |
[% END %] |
| 709 |
|
| 710 |
[% IF ( recall.patron.is_debarred ) %] |
| 711 |
<li class="error">Patron is RESTRICTED</li> |
| 712 |
[% END %] |
| 713 |
|
| 714 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 715 |
<li class="error">Patron's address is in doubt</li> |
| 716 |
[% END %] |
| 717 |
</ul> |
| 718 |
[% IF ( transfertodo ) %] |
| 719 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 720 |
[% ELSE %] |
| 721 |
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 722 |
[% END %] |
| 723 |
|
| 724 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 725 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 726 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 727 |
<input type="hidden" name="recall_slip" value="0"> |
| 728 |
|
| 729 |
</div> |
| 730 |
|
| 731 |
<div class="modal-footer"> |
| 732 |
[% IF ( transfertodo ) %] |
| 733 |
<button type="submit" class="btn btn-default approve"> |
| 734 |
<i class="fa fa-check"></i> Confirm recall and transfer |
| 735 |
</button> |
| 736 |
<button type="button" class="btn btn-default print-recall"> |
| 737 |
<i class="fa fa-print"></i> Print slip, transfer, and confirm |
| 738 |
</button> |
| 739 |
[% ELSE %] |
| 740 |
<button type="submit" class="btn btn-default approve"> |
| 741 |
<i class="fa fa-check"></i> Confirm recall |
| 742 |
</button> |
| 743 |
<button type="button" class="btn btn-default print-recall"> |
| 744 |
<i class="fa fa-print"></i> Print slip and confirm |
| 745 |
</button> |
| 746 |
[% END %] |
| 747 |
|
| 748 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 749 |
<i class="fa fa-times"></i> Ignore |
| 750 |
</button> |
| 751 |
</div> <!-- /.modal-footer --> |
| 752 |
</form> <!-- /.confirm --> |
| 753 |
</div> <!-- /.modal-content --> |
| 754 |
</div> <!-- /.modal-dialog --> |
| 755 |
</div> <!-- /#recalled --> |
| 756 |
[% END #/IF recalled %] |
| 757 |
|
| 758 |
[% IF ( waitingrecall ) %] |
| 759 |
<!-- recalled --> |
| 760 |
<div id="recalledwaiting" class="modal fade audio-alert-action block"> |
| 761 |
<div class="modal-dialog"> |
| 762 |
<div class="modal-content"> |
| 763 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
| 764 |
|
| 765 |
<div class="modal-header"> |
| 766 |
<h3> |
| 767 |
Recall found (item is already waiting): |
| 768 |
<br/> |
| 769 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
| 770 |
[% IF recall.item %] |
| 771 |
<div class="recall-found-barcode"> |
| 772 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
| 773 |
</div> |
| 774 |
[% END %] |
| 775 |
</h3> |
| 776 |
</div> |
| 777 |
|
| 778 |
<div class="modal-body"> |
| 779 |
[% IF ( recall.recallnotes ) %] |
| 780 |
<h4>Notes:</h4> |
| 781 |
<p>[% recall.recallnotes | html %]</p> |
| 782 |
<hr /> |
| 783 |
[% END %] |
| 784 |
<h5>Recall placed by:</h5> |
| 785 |
<ul> |
| 786 |
<li> |
| 787 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
| 788 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
| 789 |
</li> |
| 790 |
|
| 791 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
| 792 |
|
| 793 |
[% IF ( recall.patron.phone ) %] |
| 794 |
<li>[% recall.patron.phone | html %]</li> |
| 795 |
[% END %] |
| 796 |
|
| 797 |
[% IF ( recall.patron.email ) %] |
| 798 |
<li> |
| 799 |
[% IF ( transfertodo ) %] |
| 800 |
[% recall.patron.email | html %] |
| 801 |
[% ELSE %] |
| 802 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
| 803 |
[% END %] |
| 804 |
</li> |
| 805 |
[% END %] |
| 806 |
|
| 807 |
[% UNLESS ( transfertodo) %] |
| 808 |
[% INCLUDE display_bormessagepref %] |
| 809 |
[% END %] |
| 810 |
|
| 811 |
[% IF ( recall.patron.is_debarred ) %] |
| 812 |
<li class="error">Patron is RESTRICTED</li> |
| 813 |
[% END %] |
| 814 |
|
| 815 |
[% IF ( recall.patron.gonenoaddress ) %] |
| 816 |
<li class="error">Patron's address is in doubt</li> |
| 817 |
[% END %] |
| 818 |
</ul> |
| 819 |
[% IF ( transfertodo ) %] |
| 820 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 821 |
[% ELSE %] |
| 822 |
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
| 823 |
[% END %] |
| 824 |
|
| 825 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
| 826 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
| 827 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
| 828 |
<input type="hidden" name="recall_slip" value="0"> |
| 829 |
|
| 830 |
</div> |
| 831 |
|
| 832 |
<div class="modal-footer"> |
| 833 |
<button type="submit" class="btn btn-default approve"> |
| 834 |
<i class="fa fa-check"></i> Confirm recall |
| 835 |
</button> |
| 836 |
<button type="button" class="btn btn-default print-recall"> |
| 837 |
<i class="fa fa-print"></i> Print slip and confirm |
| 838 |
</button> |
| 839 |
|
| 840 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
| 841 |
<i class="fa fa-times"></i> Ignore |
| 842 |
</button> |
| 843 |
</div> <!-- /.modal-footer --> |
| 844 |
</form> <!-- /.confirm --> |
| 845 |
</div> <!-- /.modal-content --> |
| 846 |
</div> <!-- /.modal-dialog --> |
| 847 |
</div> <!-- /#recalledwaiting--> |
| 848 |
[% END #/IF recalledwaiting %] |
| 656 |
[% END # /IF found %] |
849 |
[% END # /IF found %] |
| 657 |
|
850 |
|
| 658 |
<div class="static_checkin_messages"> |
851 |
<div class="static_checkin_messages"> |
|
Lines 939-944
Link Here
|
| 939 |
[% END %] |
1132 |
[% END %] |
| 940 |
[% END %] |
1133 |
[% END %] |
| 941 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
1134 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
1135 |
|
| 1136 |
[% IF recall_slip %] |
| 1137 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
| 1138 |
[% END %] |
| 1139 |
|
| 942 |
var returns_table = KohaTable("checkedintable", { |
1140 |
var returns_table = KohaTable("checkedintable", { |
| 943 |
"bFilter":false, |
1141 |
"bFilter":false, |
| 944 |
"bPaginate":false, |
1142 |
"bPaginate":false, |
|
Lines 1044-1049
Link Here
|
| 1044 |
this.form.submit(); |
1242 |
this.form.submit(); |
| 1045 |
}); |
1243 |
}); |
| 1046 |
|
1244 |
|
|
|
1245 |
$('.print-recall').on("click",function(e){ |
| 1246 |
this.form.recall_slip.value = 1; |
| 1247 |
this.form.submit(); |
| 1248 |
}); |
| 1249 |
|
| 1047 |
$('.cancel-hold').on("click",function(e){ |
1250 |
$('.cancel-hold').on("click",function(e){ |
| 1048 |
this.form.cancel_reserve.value = 1; |
1251 |
this.form.cancel_reserve.value = 1; |
| 1049 |
this.form.submit(); |
1252 |
this.form.submit(); |