Lines 604-610
Link Here
|
604 |
[% END # /IF transfer || needstransfer %] |
604 |
[% END # /IF transfer || needstransfer %] |
605 |
|
605 |
|
606 |
<!-- case of simple return no issue or transfer but with a reservation --> |
606 |
<!-- case of simple return no issue or transfer but with a reservation --> |
607 |
[% IF ( reserved ) %] |
607 |
[% IF ( reserved and !recalled and !waitingrecall ) %] |
608 |
<!-- reserved --> |
608 |
<!-- reserved --> |
609 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
609 |
<div id="hold-found2" class="modal fade audio-alert-action block"> |
610 |
<div class="modal-dialog"> |
610 |
<div class="modal-dialog"> |
Lines 716-721
Link Here
|
716 |
</div> <!-- /.modal-dialog --> |
716 |
</div> <!-- /.modal-dialog --> |
717 |
</div> <!-- /#hold-found2 --> |
717 |
</div> <!-- /#hold-found2 --> |
718 |
[% END #/IF reserved %] |
718 |
[% END #/IF reserved %] |
|
|
719 |
|
720 |
[% IF ( recalled ) %] |
721 |
<!-- recalled --> |
722 |
<div id="recalled" class="modal fade audio-alert-action block"> |
723 |
<div class="modal-dialog"> |
724 |
<div class="modal-content"> |
725 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
726 |
|
727 |
<div class="modal-header"> |
728 |
<h3> |
729 |
Recall found: |
730 |
<br/> |
731 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
732 |
[% IF recall.item %] |
733 |
<div class="recall-found-barcode"> |
734 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
735 |
</div> |
736 |
[% END %] |
737 |
</h3> |
738 |
</div> |
739 |
|
740 |
<div class="modal-body"> |
741 |
[% IF ( recall.recallnotes ) %] |
742 |
<h4>Notes:</h4> |
743 |
<p>[% recall.recallnotes | html %]</p> |
744 |
<hr /> |
745 |
[% END %] |
746 |
<h5>Recall placed by:</h5> |
747 |
<ul> |
748 |
<li> |
749 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
750 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
751 |
</li> |
752 |
|
753 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
754 |
|
755 |
[% IF ( recall.patron.phone ) %] |
756 |
<li>[% recall.patron.phone | html %]</li> |
757 |
[% END %] |
758 |
|
759 |
[% IF ( recall.patron.email ) %] |
760 |
<li> |
761 |
[% IF ( transfertodo ) %] |
762 |
[% recall.patron.email | html %] |
763 |
[% ELSE %] |
764 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
765 |
[% END %] |
766 |
</li> |
767 |
[% END %] |
768 |
|
769 |
[% UNLESS ( transfertodo) %] |
770 |
[% INCLUDE display_bormessagepref %] |
771 |
[% END %] |
772 |
|
773 |
[% IF ( recall.patron.is_debarred ) %] |
774 |
<li class="error">Patron is RESTRICTED</li> |
775 |
[% END %] |
776 |
|
777 |
[% IF ( recall.patron.gonenoaddress ) %] |
778 |
<li class="error">Patron's address is in doubt</li> |
779 |
[% END %] |
780 |
</ul> |
781 |
[% IF ( transfertodo ) %] |
782 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
783 |
[% ELSE %] |
784 |
<h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
785 |
[% END %] |
786 |
|
787 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
788 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
789 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
790 |
<input type="hidden" name="recall_slip" value="0"> |
791 |
|
792 |
</div> |
793 |
|
794 |
<div class="modal-footer"> |
795 |
[% IF ( transfertodo ) %] |
796 |
<button type="submit" class="btn btn-default approve"> |
797 |
<i class="fa fa-check"></i> Confirm recall and transfer |
798 |
</button> |
799 |
<button type="button" class="btn btn-default print-recall"> |
800 |
<i class="fa fa-print"></i> Print slip, transfer, and confirm |
801 |
</button> |
802 |
[% ELSE %] |
803 |
<button type="submit" class="btn btn-default approve"> |
804 |
<i class="fa fa-check"></i> Confirm recall |
805 |
</button> |
806 |
<button type="button" class="btn btn-default print-recall"> |
807 |
<i class="fa fa-print"></i> Print slip and confirm |
808 |
</button> |
809 |
[% END %] |
810 |
|
811 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
812 |
<i class="fa fa-times"></i> Ignore |
813 |
</button> |
814 |
</div> <!-- /.modal-footer --> |
815 |
</form> <!-- /.confirm --> |
816 |
</div> <!-- /.modal-content --> |
817 |
</div> <!-- /.modal-dialog --> |
818 |
</div> <!-- /#recalled --> |
819 |
[% END #/IF recalled %] |
820 |
|
821 |
[% IF ( waitingrecall ) %] |
822 |
<!-- recalled --> |
823 |
<div id="recalledwaiting" class="modal fade audio-alert-action block"> |
824 |
<div class="modal-dialog"> |
825 |
<div class="modal-content"> |
826 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm"> |
827 |
|
828 |
<div class="modal-header"> |
829 |
<h3> |
830 |
Recall found (item is already waiting): |
831 |
<br/> |
832 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a> |
833 |
[% IF recall.item %] |
834 |
<div class="recall-found-barcode"> |
835 |
(<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>) |
836 |
</div> |
837 |
[% END %] |
838 |
</h3> |
839 |
</div> |
840 |
|
841 |
<div class="modal-body"> |
842 |
[% IF ( recall.recallnotes ) %] |
843 |
<h4>Notes:</h4> |
844 |
<p>[% recall.recallnotes | html %]</p> |
845 |
<hr /> |
846 |
[% END %] |
847 |
<h5>Recall placed by:</h5> |
848 |
<ul> |
849 |
<li> |
850 |
[% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %] |
851 |
<span class="patron-category"> - [% recall.patron.category.description | html %]</span> |
852 |
</li> |
853 |
|
854 |
[% INCLUDE display_holdpatron_address patron=recall.patron %] |
855 |
|
856 |
[% IF ( recall.patron.phone ) %] |
857 |
<li>[% recall.patron.phone | html %]</li> |
858 |
[% END %] |
859 |
|
860 |
[% IF ( recall.patron.email ) %] |
861 |
<li> |
862 |
[% IF ( transfertodo ) %] |
863 |
[% recall.patron.email | html %] |
864 |
[% ELSE %] |
865 |
<a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a> |
866 |
[% END %] |
867 |
</li> |
868 |
[% END %] |
869 |
|
870 |
[% UNLESS ( transfertodo) %] |
871 |
[% INCLUDE display_bormessagepref %] |
872 |
[% END %] |
873 |
|
874 |
[% IF ( recall.patron.is_debarred ) %] |
875 |
<li class="error">Patron is RESTRICTED</li> |
876 |
[% END %] |
877 |
|
878 |
[% IF ( recall.patron.gonenoaddress ) %] |
879 |
<li class="error">Patron's address is in doubt</li> |
880 |
[% END %] |
881 |
</ul> |
882 |
[% IF ( transfertodo ) %] |
883 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
884 |
[% ELSE %] |
885 |
<h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4> |
886 |
[% END %] |
887 |
|
888 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
889 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]"> |
890 |
<input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]"> |
891 |
<input type="hidden" name="recall_slip" value="0"> |
892 |
|
893 |
</div> |
894 |
|
895 |
<div class="modal-footer"> |
896 |
<button type="submit" class="btn btn-default approve"> |
897 |
<i class="fa fa-check"></i> Confirm recall |
898 |
</button> |
899 |
<button type="button" class="btn btn-default print-recall"> |
900 |
<i class="fa fa-print"></i> Print slip and confirm |
901 |
</button> |
902 |
|
903 |
<button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny"> |
904 |
<i class="fa fa-times"></i> Ignore |
905 |
</button> |
906 |
</div> <!-- /.modal-footer --> |
907 |
</form> <!-- /.confirm --> |
908 |
</div> <!-- /.modal-content --> |
909 |
</div> <!-- /.modal-dialog --> |
910 |
</div> <!-- /#recalledwaiting--> |
911 |
[% END #/IF recalledwaiting %] |
719 |
[% END # /IF found %] |
912 |
[% END # /IF found %] |
720 |
|
913 |
|
721 |
<div class="static_checkin_messages"> |
914 |
<div class="static_checkin_messages"> |
Lines 1006-1011
Link Here
|
1006 |
[% END %] |
1199 |
[% END %] |
1007 |
[% END %] |
1200 |
[% END %] |
1008 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
1201 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %] |
|
|
1202 |
|
1203 |
[% IF recall_slip %] |
1204 |
Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]'); |
1205 |
[% END %] |
1206 |
|
1009 |
var returns_table = KohaTable("checkedintable", { |
1207 |
var returns_table = KohaTable("checkedintable", { |
1010 |
"bFilter":false, |
1208 |
"bFilter":false, |
1011 |
"bPaginate":false, |
1209 |
"bPaginate":false, |
Lines 1113-1118
Link Here
|
1113 |
this.form.submit(); |
1311 |
this.form.submit(); |
1114 |
}); |
1312 |
}); |
1115 |
|
1313 |
|
|
|
1314 |
$('.print-recall').on("click",function(e){ |
1315 |
this.form.recall_slip.value = 1; |
1316 |
this.form.submit(); |
1317 |
}); |
1318 |
|
1116 |
$('.cancel-hold').on("click",function(e){ |
1319 |
$('.cancel-hold').on("click",function(e){ |
1117 |
this.form.cancel_reserve.value = 1; |
1320 |
this.form.cancel_reserve.value = 1; |
1118 |
this.form.submit(); |
1321 |
this.form.submit(); |