|
Lines 8-13
Link Here
|
| 8 |
[% USE TablesSettings %] |
8 |
[% USE TablesSettings %] |
| 9 |
[% PROCESS 'i18n.inc' %] |
9 |
[% PROCESS 'i18n.inc' %] |
| 10 |
[% PROCESS 'member-display-address-style.inc' %] |
10 |
[% PROCESS 'member-display-address-style.inc' %] |
|
|
11 |
[% PROCESS 'html_helpers.inc' %] |
| 11 |
[% SET footerjs = 1 %] |
12 |
[% SET footerjs = 1 %] |
| 12 |
[% BLOCK display_bormessagepref %] |
13 |
[% BLOCK display_bormessagepref %] |
| 13 |
[% IF ( bormessagepref ) %] |
14 |
[% IF ( bormessagepref ) %] |
|
Lines 835-965
Link Here
|
| 835 |
|
836 |
|
| 836 |
<!-- case of simple return no issue or transfer but with a hold --> |
837 |
<!-- case of simple return no issue or transfer but with a hold --> |
| 837 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
838 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
| 838 |
<!-- reserved --> |
|
|
| 839 |
<div id="hold-found2" class="modal modal-lg block audio-alert-action" data-bs-backdrop="static" data-bs-keyboard="false"> |
| 840 |
<div class="modal-dialog"> |
| 841 |
<div class="modal-content"> |
| 842 |
<form method="post" action="returns.pl" class="confirm"> |
| 843 |
[% INCLUDE 'csrf-token.inc' %] |
| 844 |
|
839 |
|
| 845 |
<input type="hidden" name="print_slip" value="0" /> |
840 |
[% SET confirm_button_text = '' %] |
| 846 |
|
841 |
[% SET print_button = '' %] |
| 847 |
<div class="modal-header"> |
|
|
| 848 |
<h1 class="modal-title"> |
| 849 |
Hold found: |
| 850 |
<br /> |
| 851 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a> |
| 852 |
<div class="hold-found-barcode"> (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>) </div> |
| 853 |
</h1> |
| 854 |
</div> |
| 855 |
|
| 856 |
<div class="modal-body"> |
| 857 |
[% IF ( reservenotes ) %] |
| 858 |
<h4>Notes:</h4> |
| 859 |
<p>[% reservenotes | html %]</p> |
| 860 |
<hr /> |
| 861 |
[% END %] |
| 862 |
<h5>Hold for:</h5> |
| 863 |
<ul> |
| 864 |
<li> |
| 865 |
[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %] |
| 866 |
<span class="patron-category"> - [% patron.category.description | html %]</span> |
| 867 |
</li> |
| 868 |
|
842 |
|
| 869 |
[% INCLUDE display_holdpatron_address %] |
843 |
[% IF transfertodo %] |
|
|
844 |
[% confirm_button_text = 'Confirm hold and transfer' %] |
| 845 |
[% print_button = '<button type="button" class="btn btn-default print" accesskey="p"> <i class="fa fa-print"></i> Print slip, transfer, and confirm (P) </button>' %] |
| 846 |
[% ELSE %] |
| 847 |
[% confirm_button_text = 'Confirm hold' %] |
| 848 |
[% print_button = '<button type="button" class="btn btn-default print" accesskey="p"> <i class="fa fa-print"></i> Print slip and confirm (P) </button>' %] |
| 849 |
[% END %] |
| 870 |
|
850 |
|
| 871 |
[% IF ( patron.phone ) %] |
851 |
[% SET modal_print_url = reserve_id | uri %] |
| 872 |
<li>[% patron.phone | html %]</li> |
852 |
[% modal_print_url = "/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" _ modal_print_url %] |
| 873 |
[% END %] |
|
|
| 874 |
|
853 |
|
| 875 |
[% IF ( patron.email ) %] |
854 |
[% WRAPPER modal_wrapper modal_id="hold-found-modal" modal_header_contents='<h1 class="modal-title">Hold found</h1>' modal_confirm_text=confirm_button_text modal_confirm_accesskey="Y" modal_custom_utility_button=print_button modal_deny_text="Ignore" modal_deny_accesskey="I" modal_deny_action="dismiss" %] |
| 876 |
<li> |
855 |
<h1> |
| 877 |
[% IF ( transfertodo ) %] |
856 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a> |
| 878 |
[% patron.email | html %] |
857 |
<div class="hold-found-barcode"> (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>) </div> |
| 879 |
[% ELSE %] |
858 |
</h1> |
| 880 |
<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a> |
859 |
[% IF ( reservenotes ) %] |
| 881 |
[% END %] |
860 |
<h4>Notes:</h4> |
| 882 |
</li> |
861 |
<p>[% reservenotes | html %]</p> |
| 883 |
[% END %] |
862 |
<hr /> |
|
|
863 |
[% END %] |
| 864 |
<h4>Hold for:</h4> |
| 865 |
<ul> |
| 866 |
<li> |
| 867 |
[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %] |
| 868 |
<span class="patron-category"> - [% patron.category.description | html %]</span> |
| 869 |
</li> |
| 884 |
|
870 |
|
| 885 |
[% UNLESS ( transfertodo) %] |
871 |
[% INCLUDE display_holdpatron_address %] |
| 886 |
[% INCLUDE display_bormessagepref %] |
|
|
| 887 |
[% IF patron.primary_contact_method %] |
| 888 |
<li id="main_contact_method" |
| 889 |
>Main contact method: |
| 890 |
[% SWITCH patron.primary_contact_method %] |
| 891 |
[% CASE 'phone' %] |
| 892 |
<span>Primary phone</span> |
| 893 |
[% CASE 'phonepro' %] |
| 894 |
<span>Secondary phone</span> |
| 895 |
[% CASE 'mobile' %] |
| 896 |
<span>Other phone</span> |
| 897 |
[% CASE 'email' %] |
| 898 |
<span>Primary email</span> |
| 899 |
[% CASE 'emailpro' %] |
| 900 |
<span>Secondary email</span> |
| 901 |
[% CASE 'fax' %] |
| 902 |
<span>Fax</span> |
| 903 |
[% END %] |
| 904 |
</li> |
| 905 |
[% END %] |
| 906 |
[% END %] |
| 907 |
|
872 |
|
| 908 |
[% IF ( patron.is_debarred ) %] |
873 |
[% IF ( patron.phone ) %] |
| 909 |
<li class="error">Patron is RESTRICTED</li> |
874 |
<li>[% patron.phone | html %]</li> |
| 910 |
[% END %] |
875 |
[% END %] |
| 911 |
|
876 |
|
| 912 |
[% IF ( patron.gonenoaddress ) %] |
877 |
[% IF ( patron.email ) %] |
| 913 |
<li class="error">Patron's address is in doubt</li> |
878 |
<li> |
| 914 |
[% END %] |
879 |
[% IF ( transfertodo ) %] |
| 915 |
</ul> |
880 |
[% patron.email | html %] |
| 916 |
[% IF ( transfertodo ) %] |
881 |
[% ELSE %] |
| 917 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
882 |
<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a> |
| 918 |
[% ELSE %] |
883 |
[% END %] |
| 919 |
<h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
884 |
</li> |
| 920 |
[% END %] |
885 |
[% END %] |
| 921 |
|
886 |
|
| 922 |
[% FOREACH inputloo IN inputloop %] |
887 |
[% UNLESS ( transfertodo) %] |
| 923 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
888 |
[% INCLUDE display_bormessagepref %] |
| 924 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
889 |
[% IF patron.primary_contact_method %] |
| 925 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
890 |
<li id="main_contact_method" |
| 926 |
<input type="hidden" name="nr-[% inputloo.counter | html %]" value="[% inputloo.not_returned | html %]" /> |
891 |
>Main contact method: |
|
|
892 |
[% SWITCH patron.primary_contact_method %] |
| 893 |
[% CASE 'phone' %] |
| 894 |
<span>Primary phone</span> |
| 895 |
[% CASE 'phonepro' %] |
| 896 |
<span>Secondary phone</span> |
| 897 |
[% CASE 'mobile' %] |
| 898 |
<span>Other phone</span> |
| 899 |
[% CASE 'email' %] |
| 900 |
<span>Primary email</span> |
| 901 |
[% CASE 'emailpro' %] |
| 902 |
<span>Secondary email</span> |
| 903 |
[% CASE 'fax' %] |
| 904 |
<span>Fax</span> |
| 927 |
[% END %] |
905 |
[% END %] |
|
|
906 |
</li> |
| 907 |
[% END %] |
| 908 |
[% END %] |
| 928 |
|
909 |
|
| 929 |
<input type="hidden" name="op" value="cud-affect_reserve" /> |
910 |
[% IF ( patron.is_debarred ) %] |
| 930 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
911 |
<li class="error">Patron is RESTRICTED</li> |
| 931 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
912 |
[% END %] |
| 932 |
<input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" /> |
|
|
| 933 |
<input type="hidden" name="reserve_id" value="[% reserve_id | html %]" /> |
| 934 |
<input type="hidden" name="diffBranch" value="[% destbranch | html %]" /> |
| 935 |
<input type="hidden" name="exemptfine" value="[% exemptfine | html %]" /> |
| 936 |
<input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" /> |
| 937 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
| 938 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
| 939 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
| 940 |
[% INCLUDE all_checkin_messages %] |
| 941 |
</div> |
| 942 |
|
913 |
|
| 943 |
<div class="modal-footer"> |
914 |
[% IF ( patron.gonenoaddress ) %] |
| 944 |
[% IF ( transfertodo ) %] |
915 |
<li class="error">Patron's address is in doubt</li> |
| 945 |
<button type="submit" class="btn btn-default approve" accesskey="y"> <i class="fa fa-check"></i> Confirm hold and transfer (Y) </button> |
916 |
[% END %] |
| 946 |
<button type="button" class="btn btn-default print" accesskey="p"> <i class="fa fa-print"></i> Print slip, transfer, and confirm (P) </button> |
917 |
</ul> |
| 947 |
[% ELSE %] |
918 |
[% IF ( transfertodo ) %] |
| 948 |
<button type="submit" class="btn btn-default approve" accesskey="y"> <i class="fa fa-check"></i> Confirm hold (Y) </button> |
919 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
| 949 |
<button type="button" class="btn btn-default print" accesskey="p"> <i class="fa fa-print"></i> Print slip and confirm (P) </button> |
920 |
[% ELSE %] |
| 950 |
[% END %] |
921 |
<h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
|
|
922 |
[% END %] |
| 951 |
|
923 |
|
| 952 |
<button type="button" data-bs-dismiss="modal" class="btn btn-default deny" accesskey="i"> <i class="fa fa-times"></i> Ignore (I) </button> |
924 |
[% PROCESS passthrough_data %] |
| 953 |
</div> |
925 |
|
| 954 |
<!-- /.modal-footer --> |
926 |
<input type="hidden" name="op" value="cud-affect_reserve" /> |
| 955 |
</form> |
927 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
| 956 |
<!-- /.confirm --> |
928 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 957 |
</div> |
929 |
<input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" /> |
| 958 |
<!-- /.modal-content --> |
930 |
<input type="hidden" name="reserve_id" value="[% reserve_id | html %]" /> |
| 959 |
</div> |
931 |
<input type="hidden" name="diffBranch" value="[% destbranch | html %]" /> |
| 960 |
<!-- /.modal-dialog --> |
932 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
| 961 |
</div> |
933 |
<input type="hidden" name="print_slip" value="0" /> |
| 962 |
<!-- /#hold-found2 --> |
934 |
[% INCLUDE all_checkin_messages %] |
|
|
935 |
[% END #/hold-found-modal %] |
| 963 |
[% END #/IF reserved %] |
936 |
[% END #/IF reserved %] |
| 964 |
|
937 |
|
| 965 |
[% IF ( recalled ) %] |
938 |
[% IF ( recalled ) %] |
| 966 |
- |
|
|