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