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