Lines 625-631
Link Here
|
625 |
[% END # /IF transfer || needstransfer %] |
625 |
[% END # /IF transfer || needstransfer %] |
626 |
|
626 |
|
627 |
<!-- case of simple return no issue or transfer but with a reservation --> |
627 |
<!-- case of simple return no issue or transfer but with a reservation --> |
628 |
[% IF ( reserved ) %] |
628 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
629 |
<!-- reserved --> |
629 |
<!-- reserved --> |
630 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
630 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
631 |
<div class="modal-dialog"> |
631 |
<div class="modal-dialog"> |
Lines 737-742
Link Here
|
737 |
</div> <!-- /.modal-dialog --> |
737 |
</div> <!-- /.modal-dialog --> |
738 |
</div> <!-- /#hold-found2 --> |
738 |
</div> <!-- /#hold-found2 --> |
739 |
[% END #/IF reserved %] |
739 |
[% END #/IF reserved %] |
|
|
740 |
|
741 |
[% IF ( recalled ) %] |
742 |
<!-- recalled --> |
743 |
<div id="recalled" class="modal fade audio-alert-action block"> |
744 |
<div class="modal-dialog"> |
745 |
<div class="modal-content"> |
746 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
747 |
|
748 |
<div class="modal-header"> |
749 |
<h3> |
750 |
Recall found: |
751 |
<br/> |
752 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
753 |
[% IF recall.item %] |
754 |
<div class="recall-found-barcode"> |
755 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
756 |
</div> |
757 |
[% END %] |
758 |
</h3> |
759 |
</div> |
760 |
|
761 |
<div class="modal-body"> |
762 |
[% IF ( recall.recallnotes ) %] |
763 |
<h4>Notes:</h4> |
764 |
<p>[% recall.recallnotes | html %]</p> |
765 |
<hr /> |
766 |
[% END %] |
767 |
<h5>Recall placed by:</h5> |
768 |
<ul> |
769 |
<li> |
770 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
771 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
772 |
</li> |
773 |
|
774 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
775 |
|
776 |
[% IF ( recall.patron.phone ) %] |
777 |
<li>[% recall.patron.phone | html %]</li> |
778 |
[% END %] |
779 |
|
780 |
[% IF ( recall.patron.email ) %] |
781 |
<li> |
782 |
[% IF ( transfertodo ) %] |
783 |
[% recall.patron.email | html %] |
784 |
[% ELSE %] |
785 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
786 |
[% END %] |
787 |
</li> |
788 |
[% END %] |
789 |
|
790 |
[% UNLESS ( transfertodo) %] |
791 |
[% INCLUDE display_bormessagepref %] |
792 |
[% END %] |
793 |
|
794 |
[% IF ( recall.patron.is_debarred ) %] |
795 |
<li class="error">Patron is RESTRICTED</li> |
796 |
[% END %] |
797 |
|
798 |
[% IF ( recall.patron.gonenoaddress ) %] |
799 |
<li class="error">Patron's address is in doubt</li> |
800 |
[% END %] |
801 |
</ul> |
802 |
[% IF ( transfertodo ) %] |
803 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
804 |
[% ELSE %] |
805 |
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
806 |
[% END %] |
807 |
|
808 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
809 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
810 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
811 |
<input type="hidden" name="recall_slip" value="0"> |
812 |
|
813 |
</div> |
814 |
|
815 |
<div class="modal-footer"> |
816 |
[% IF ( transfertodo ) %] |
817 |
<button type="submit" class="btn btn-default approve"> |
818 |
<i class="fa fa-check"></i> Confirm recall and transfer |
819 |
</button> |
820 |
<button type="button" class="btn btn-default print-recall"> |
821 |
<i class="fa fa-print"></i> Print slip, transfer, and confirm |
822 |
</button> |
823 |
[% ELSE %] |
824 |
<button type="submit" class="btn btn-default approve"> |
825 |
<i class="fa fa-check"></i> Confirm recall |
826 |
</button> |
827 |
<button type="button" class="btn btn-default print-recall"> |
828 |
<i class="fa fa-print"></i> Print slip and confirm |
829 |
</button> |
830 |
[% END %] |
831 |
|
832 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
833 |
<i class="fa fa-times"></i> Ignore |
834 |
</button> |
835 |
</div> <!-- /.modal-footer --> |
836 |
</form> <!-- /.confirm --> |
837 |
</div> <!-- /.modal-content --> |
838 |
</div> <!-- /.modal-dialog --> |
839 |
</div> <!-- /#recalled --> |
840 |
[% END #/IF recalled %] |
841 |
|
842 |
[% IF ( waitingrecall ) %] |
843 |
<!-- recalled --> |
844 |
<div id="recalledwaiting" class="modal fade audio-alert-action block"> |
845 |
<div class="modal-dialog"> |
846 |
<div class="modal-content"> |
847 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
848 |
|
849 |
<div class="modal-header"> |
850 |
<h3> |
851 |
Recall found (item is already waiting): |
852 |
<br/> |
853 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
854 |
[% IF recall.item %] |
855 |
<div class="recall-found-barcode"> |
856 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
857 |
</div> |
858 |
[% END %] |
859 |
</h3> |
860 |
</div> |
861 |
|
862 |
<div class="modal-body"> |
863 |
[% IF ( recall.recallnotes ) %] |
864 |
<h4>Notes:</h4> |
865 |
<p>[% recall.recallnotes | html %]</p> |
866 |
<hr /> |
867 |
[% END %] |
868 |
<h5>Recall placed by:</h5> |
869 |
<ul> |
870 |
<li> |
871 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
872 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
873 |
</li> |
874 |
|
875 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
876 |
|
877 |
[% IF ( recall.patron.phone ) %] |
878 |
<li>[% recall.patron.phone | html %]</li> |
879 |
[% END %] |
880 |
|
881 |
[% IF ( recall.patron.email ) %] |
882 |
<li> |
883 |
[% IF ( transfertodo ) %] |
884 |
[% recall.patron.email | html %] |
885 |
[% ELSE %] |
886 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
887 |
[% END %] |
888 |
</li> |
889 |
[% END %] |
890 |
|
891 |
[% UNLESS ( transfertodo) %] |
892 |
[% INCLUDE display_bormessagepref %] |
893 |
[% END %] |
894 |
|
895 |
[% IF ( recall.patron.is_debarred ) %] |
896 |
<li class="error">Patron is RESTRICTED</li> |
897 |
[% END %] |
898 |
|
899 |
[% IF ( recall.patron.gonenoaddress ) %] |
900 |
<li class="error">Patron's address is in doubt</li> |
901 |
[% END %] |
902 |
</ul> |
903 |
[% IF ( transfertodo ) %] |
904 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
905 |
[% ELSE %] |
906 |
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
907 |
[% END %] |
908 |
|
909 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
910 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
911 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
912 |
<input type="hidden" name="recall_slip" value="0"> |
913 |
|
914 |
</div> |
915 |
|
916 |
<div class="modal-footer"> |
917 |
<button type="submit" class="btn btn-default approve"> |
918 |
<i class="fa fa-check"></i> Confirm recall |
919 |
</button> |
920 |
<button type="button" class="btn btn-default print-recall"> |
921 |
<i class="fa fa-print"></i> Print slip and confirm |
922 |
</button> |
923 |
|
924 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
925 |
<i class="fa fa-times"></i> Ignore |
926 |
</button> |
927 |
</div> <!-- /.modal-footer --> |
928 |
</form> <!-- /.confirm --> |
929 |
</div> <!-- /.modal-content --> |
930 |
</div> <!-- /.modal-dialog --> |
931 |
</div> <!-- /#recalledwaiting--> |
932 |
[% END #/IF recalledwaiting %] |
740 |
[% END # /IF found %] |
933 |
[% END # /IF found %] |
741 |
|
934 |
|
742 |
<div class="static_checkin_messages"> |
935 |
<div class="static_checkin_messages"> |
Lines 1027-1032
Link Here
|
1027 |
[% END %] |
1220 |
[% END %] |
1028 |
[% END %] |
1221 |
[% END %] |
1029 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
1222 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
1223 |
|
1224 |
[% IF recall_slip %] |
1225 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
1226 |
[% END %] |
1227 |
|
1030 |
var returns_table = KohaTable("checkedintable", { |
1228 |
var returns_table = KohaTable("checkedintable", { |
1031 |
"bFilter":false, |
1229 |
"bFilter":false, |
1032 |
"bPaginate":false, |
1230 |
"bPaginate":false, |
Lines 1148-1153
Link Here
|
1148 |
this.form.submit(); |
1346 |
this.form.submit(); |
1149 |
}); |
1347 |
}); |
1150 |
|
1348 |
|
|
|
1349 |
$('.print-recall').on("click",function(e){ |
1350 |
this.form.recall_slip.value = 1; |
1351 |
this.form.submit(); |
1352 |
}); |
1353 |
|
1151 |
$('.cancel-hold').on("click",function(e){ |
1354 |
$('.cancel-hold').on("click",function(e){ |
1152 |
this.form.cancel_reserve.value = 1; |
1355 |
this.form.cancel_reserve.value = 1; |
1153 |
this.form.submit(); |
1356 |
this.form.submit(); |