Lines 653-695
Link Here
|
653 |
</div> <!-- /div.row --> |
653 |
</div> <!-- /div.row --> |
654 |
|
654 |
|
655 |
<div id="finesholdsissues" class="toptabs"> |
655 |
<div id="finesholdsissues" class="toptabs"> |
656 |
<ul> |
656 |
<ul class="nav nav-tabs" role="tablist"> |
657 |
<li> |
657 |
<li role="presentation" class="active"> |
658 |
<a href="#checkouts">Checkouts ([% issuecount || 0 | html %])</a> |
658 |
<a href="#checkouts" aria-controls="checkouts" role="tab" data-toggle="tab">Checkouts ([% issuecount || 0 | html %])</a> |
659 |
</li> |
659 |
</li> |
660 |
[% IF relatives_issues_count %] |
660 |
[% IF relatives_issues_count %] |
661 |
<li> |
661 |
<li role="presentation"> |
662 |
<a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts ([% relatives_issues_count | html %])</a> |
662 |
<a href="#relatives-issues" id="relatives-issues-tab" aria-controls="relatives-issues" role="tab" data-toggle="tab">Relatives' checkouts ([% relatives_issues_count | html %])</a> |
663 |
</li> |
663 |
</li> |
664 |
[% END %] |
664 |
[% END %] |
665 |
[% IF ( fines ) %] |
665 |
[% IF ( fines ) %] |
666 |
<li id="finestab"> |
666 |
<li role="presentation" id="finestab"> |
667 |
<a href="#finesandcharges">Charges ([% fines | $Price %])</a> |
667 |
<a href="#finesandcharges" aria-controls="finesandcharges" role="tab" data-toggle="tab">Charges ([% fines | $Price %])</a> |
668 |
</li> |
668 |
</li> |
669 |
[% END %] |
669 |
[% END %] |
670 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
670 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
671 |
<li> |
671 |
<li role="presentation"> |
672 |
<a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a> |
672 |
<a href="#reserves" id="holds-tab" aria-controls="reserves" role="tab" data-toggle="tab">Holds ([% holds_count || 0 | html %])</a> |
673 |
</li> |
673 |
</li> |
674 |
[% END %] |
674 |
[% END %] |
675 |
|
675 |
|
676 |
[% IF Koha.Preference('UseRecalls') %] |
676 |
[% IF Koha.Preference('UseRecalls') %] |
677 |
<li> |
677 |
<li role="presentation"> |
678 |
<a href="#recalls" id="recalls-tab">Recalls ([% recalls.count || 0 | html %])</a> |
678 |
<a href="#recalls" id="recalls-tab" aria-controls="recalls" role="tab" data-toggle="tab">Recalls ([% recalls.count || 0 | html %])</a> |
679 |
</li> |
679 |
</li> |
680 |
[% END %] |
680 |
[% END %] |
681 |
|
681 |
|
682 |
[% IF Koha.Preference('ArticleRequests') %] |
682 |
[% IF Koha.Preference('ArticleRequests') %] |
683 |
[% SET article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current') %] |
683 |
[% SET article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current') %] |
684 |
<li> |
684 |
<li role="presentation"> |
685 |
<a href="#article-requests" id="article-requests-tab">Article requests ([% article_requests.count || 0 | html %])</a> |
685 |
<a href="#article-requests" id="article-requests-tab" aria-controls="article-requests" role="tab" data-toggle="tab">Article requests ([% article_requests.count || 0 | html %])</a> |
686 |
</li> |
686 |
</li> |
687 |
[% END %] |
687 |
[% END %] |
688 |
|
688 |
|
689 |
[% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %] |
689 |
[% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %] |
690 |
<li> |
690 |
<li role="presentation"> |
691 |
[% IF ( patron.return_claims.count ) %] |
691 |
[% IF ( patron.return_claims.count ) %] |
692 |
<a href="#return-claims" id="return-claims-tab"> |
692 |
<a href="#return-claims" id="return-claims-tab" aria-controls="return-claims" role="tab" data-toggle="tab"> |
693 |
Claims |
693 |
Claims |
694 |
([% IF patron.return_claims.resolved.count == 0 %] |
694 |
([% IF patron.return_claims.resolved.count == 0 %] |
695 |
<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span> |
695 |
<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span> |
Lines 703-709
Link Here
|
703 |
[% END %]) |
703 |
[% END %]) |
704 |
</a> |
704 |
</a> |
705 |
[% ELSE %] |
705 |
[% ELSE %] |
706 |
<a href="#return-claims" id="return-claims-tab"> |
706 |
<a href="#return-claims" id="return-claims-tab" aria-controls="return-claims" role="tab" data-toggle="tab"> |
707 |
Claims |
707 |
Claims |
708 |
(<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span> |
708 |
(<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span> |
709 |
<span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>) |
709 |
<span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>) |
Lines 712-838
Link Here
|
712 |
</li> |
712 |
</li> |
713 |
[% END %] |
713 |
[% END %] |
714 |
|
714 |
|
715 |
<li> |
715 |
<li role="presentation"> |
716 |
<a id="debarments-tab-link" href="#reldebarments">Restrictions ([% debarments.size || 0 | html %])</a> |
716 |
<a id="debarments-tab-link" href="#reldebarments" aria-controls="reldebarments" role="tab" data-toggle="tab">Restrictions ([% debarments.size || 0 | html %])</a> |
717 |
</li> |
717 |
</li> |
718 |
|
718 |
|
719 |
[% SET enrollments = patron.get_club_enrollments %] |
719 |
[% SET enrollments = patron.get_club_enrollments %] |
720 |
[% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC --> |
720 |
[% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC --> |
721 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
721 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
722 |
<li> |
722 |
<li role="presentation"> |
723 |
<a id="clubs-tab-link" href="#clubs-tab"> |
723 |
<a id="clubs-tab-link" href="#clubs-tab" aria-controls="checkouts" role="tab" data-toggle="tab"> |
724 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
724 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
725 |
</a> |
725 |
</a> |
726 |
</li> |
726 |
</li> |
727 |
[% END %] |
727 |
[% END %] |
728 |
</ul> |
728 |
</ul> |
729 |
|
729 |
|
730 |
[% INCLUDE "checkouts-table.inc" %] |
730 |
<div class="tab-content"> |
|
|
731 |
[% INCLUDE "checkouts-table.inc" %] |
731 |
|
732 |
|
732 |
[% INCLUDE "relatives-issues-table.inc" %] |
733 |
[% INCLUDE "relatives-issues-table.inc" %] |
733 |
|
734 |
|
734 |
[% IF ( fines ) %] |
735 |
[% IF ( fines ) %] |
735 |
<div id="finesandcharges"> |
736 |
<div id="finesandcharges" role="tabpanel" class="tab-pane"> |
736 |
[% IF ( fines ) %] |
737 |
[% IF ( fines ) %] |
737 |
<p>Total due: [% fines | $Price %]</p> |
738 |
<p>Total due: [% fines | $Price %]</p> |
738 |
[% ELSE %] |
739 |
[% ELSE %] |
739 |
<p>No outstanding charges</p> |
740 |
<p>No outstanding charges</p> |
740 |
[% END %] |
741 |
[% END %] |
741 |
</div> |
742 |
</div> |
742 |
[% END %] |
743 |
[% END %] |
743 |
|
744 |
|
744 |
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %] |
745 |
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %] |
745 |
<div id="clubs-tab"> |
746 |
<div id="clubs-tab" role="tabpanel" class="tab-pane"> |
746 |
Loading... |
747 |
Loading... |
747 |
</div> |
748 |
</div> |
748 |
[% END %] |
749 |
[% END %] |
749 |
|
750 |
|
750 |
[% INCLUDE borrower_debarments.inc %] |
751 |
[% INCLUDE borrower_debarments.inc %] |
751 |
|
|
|
752 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
753 |
<div id="reserves"> |
754 |
[% IF ( holds_count ) %] |
755 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
756 |
<input type="hidden" name="from" value="circ" /> |
757 |
<table id="holds-table" style="width: 100% !Important;"> |
758 |
<thead> |
759 |
<tr> |
760 |
<th>Hold date</th> |
761 |
<th>Title</th> |
762 |
<th>Call number</th> |
763 |
<th>Item type</th> |
764 |
<th>Barcode</th> |
765 |
<th>Pickup at</th> |
766 |
<th>Expiration</th> |
767 |
<th>Priority</th> |
768 |
<th>Delete?</th> |
769 |
<th>Suspend?</th> |
770 |
<th>Status</th> |
771 |
</tr> |
772 |
</thead> |
773 |
</table> |
774 |
|
775 |
<fieldset class="action"> |
776 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
777 |
|
778 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
779 |
[% IF hold_cancellation.count %] |
780 |
<label for="cancellation-reason">Cancellation reason:</label> |
781 |
<select name="cancellation-reason"> |
782 |
<option value="">No reason given</option> |
783 |
[% FOREACH reason IN hold_cancellation %] |
784 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
785 |
[% END %] |
786 |
</select> |
787 |
[% END %] |
788 |
</fieldset> |
789 |
</form> |
790 |
|
752 |
|
791 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
753 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
792 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
754 |
<div id="reserves" role="tabpanel" class="tab-pane"> |
793 |
<fieldset class="action"> |
755 |
[% IF ( holds_count ) %] |
794 |
<input type="hidden" name="from" value="borrower" /> |
756 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
795 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
757 |
<input type="hidden" name="from" value="circ" /> |
796 |
<input type="submit" value="Suspend all holds" /> |
758 |
<table id="holds-table" style="width: 100% !Important;"> |
797 |
|
759 |
<thead> |
798 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
760 |
<tr> |
799 |
<label for="suspend_until">until</label> |
761 |
<th>Hold date</th> |
800 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true"/> |
762 |
<th>Title</th> |
801 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
763 |
<th>Call number</th> |
802 |
[% END %] |
764 |
<th>Item type</th> |
803 |
</fieldset> |
765 |
<th>Barcode</th> |
804 |
</form> |
766 |
<th>Pickup at</th> |
|
|
767 |
<th>Expiration</th> |
768 |
<th>Priority</th> |
769 |
<th>Delete?</th> |
770 |
<th>Suspend?</th> |
771 |
<th>Status</th> |
772 |
</tr> |
773 |
</thead> |
774 |
</table> |
805 |
|
775 |
|
806 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
|
|
807 |
<fieldset class="action"> |
776 |
<fieldset class="action"> |
808 |
<input type="hidden" name="from" value="borrower" /> |
777 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
809 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
778 |
|
810 |
<input type="hidden" name="suspend" value="0" /> |
779 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
811 |
<input type="submit" value="Resume all suspended holds" /> |
780 |
[% IF hold_cancellation.count %] |
|
|
781 |
<label for="cancellation-reason">Cancellation reason:</label> |
782 |
<select name="cancellation-reason"> |
783 |
<option value="">No reason given</option> |
784 |
[% FOREACH reason IN hold_cancellation %] |
785 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
786 |
[% END %] |
787 |
</select> |
788 |
[% END %] |
812 |
</fieldset> |
789 |
</fieldset> |
813 |
</form> |
790 |
</form> |
814 |
[% END # IF SuspendHoldsIntranet %] |
|
|
815 |
|
791 |
|
816 |
[% ELSE %] |
792 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
817 |
<p>Patron has nothing on hold.</p> |
793 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
818 |
[% END %] |
794 |
<fieldset class="action"> |
819 |
</div> [% # /div#reserves %] |
795 |
<input type="hidden" name="from" value="borrower" /> |
820 |
[% END %] |
796 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
|
|
797 |
<input type="submit" value="Suspend all holds" /> |
798 |
|
799 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
800 |
<label for="suspend_until">until</label> |
801 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true"/> |
802 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
803 |
[% END %] |
804 |
</fieldset> |
805 |
</form> |
806 |
|
807 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
808 |
<fieldset class="action"> |
809 |
<input type="hidden" name="from" value="borrower" /> |
810 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
811 |
<input type="hidden" name="suspend" value="0" /> |
812 |
<input type="submit" value="Resume all suspended holds" /> |
813 |
</fieldset> |
814 |
</form> |
815 |
[% END # IF SuspendHoldsIntranet %] |
821 |
|
816 |
|
822 |
[% IF Koha.Preference('UseRecalls') %] |
817 |
[% ELSE %] |
823 |
<div id="recalls"> |
818 |
<p>Patron has nothing on hold.</p> |
824 |
[% INCLUDE 'recalls.inc' %] |
819 |
[% END %] |
825 |
</div> |
820 |
</div> [% # /div#reserves %] |
826 |
[% END %] |
821 |
[% END %] |
827 |
|
822 |
|
828 |
[% IF Koha.Preference('ClaimReturnedLostValue') %] |
823 |
[% IF Koha.Preference('UseRecalls') %] |
829 |
[% INCLUDE 'patron-return-claims.inc' %] |
824 |
<div id="recalls" role="tabpanel" class="tab-pane"> |
830 |
[% END %] |
825 |
[% INCLUDE 'recalls.inc' %] |
|
|
826 |
</div> |
827 |
[% END %] |
831 |
|
828 |
|
832 |
[% IF Koha.Preference('ArticleRequests') %] |
829 |
[% IF Koha.Preference('ClaimReturnedLostValue') %] |
833 |
[% INCLUDE 'patron-article-requests.inc' %] |
830 |
[% INCLUDE 'patron-return-claims.inc' %] |
834 |
[% END %] |
831 |
[% END %] |
835 |
|
832 |
|
|
|
833 |
[% IF Koha.Preference('ArticleRequests') %] |
834 |
[% INCLUDE 'patron-article-requests.inc' %] |
835 |
[% END %] |
836 |
</div> <!-- /.tab-content --> |
836 |
</div> <!-- /div#finesholdsissues --> |
837 |
</div> <!-- /div#finesholdsissues --> |
837 |
</main> |
838 |
</main> |
838 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
839 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
Lines 901-919
Link Here
|
901 |
}); |
902 |
}); |
902 |
} |
903 |
} |
903 |
|
904 |
|
904 |
$('#finesholdsissues').tabs({ |
905 |
$("#finesholdsissues a[data-toggle='tab']").on("shown.bs.tab", function(e){ |
905 |
// Correct table sizing for tables hidden in tabs |
906 |
var oTable = $('div.dataTables_wrapper > table', $(e.target.hash) ).dataTable(); |
906 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
907 |
if ( oTable.length > 0 ) { |
907 |
"show": function(event, ui) { |
908 |
oTable.fnAdjustColumnSizing(); |
908 |
var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable(); |
|
|
909 |
if ( oTable.length > 0 ) { |
910 |
oTable.fnAdjustColumnSizing(); |
911 |
} |
912 |
}, |
913 |
"activate": function( event, ui ) { |
914 |
$("a", ui.newTab ).click(); |
915 |
} |
909 |
} |
916 |
} ); |
910 |
}); |
917 |
|
911 |
|
918 |
$("#view_restrictions").on("click",function(){ |
912 |
$("#view_restrictions").on("click",function(){ |
919 |
$('#debarments-tab-link').click(); |
913 |
$('#debarments-tab-link').click(); |