|
Lines 20-31
Link Here
|
| 20 |
[% INCLUDE 'strings.inc' %] |
20 |
[% INCLUDE 'strings.inc' %] |
| 21 |
[% INCLUDE 'datatables.inc' %] |
21 |
[% INCLUDE 'datatables.inc' %] |
| 22 |
[% INCLUDE 'columns_settings.inc' %] |
22 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
23 |
[% show_barcode_input = (Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce')) || !noissues || forceallow %] |
| 24 |
<style> |
| 25 |
.issue-allow, .issue-disallow {display: none;} |
| 26 |
[% IF !show_barcode_input %]#mainform {display: none;}[% END %] |
| 27 |
</style> |
| 23 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
28 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 24 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
29 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
| 25 |
[% INCLUDE 'timepicker.inc' %] |
30 |
[% INCLUDE 'timepicker.inc' %] |
| 26 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script> |
31 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script> |
| 27 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script> |
32 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script> |
| 28 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script> |
|
|
| 29 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script> |
33 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script> |
| 30 |
<script type="text/javascript"> |
34 |
<script type="text/javascript"> |
| 31 |
//<![CDATA[ |
35 |
//<![CDATA[ |
|
Lines 84-89
function toggle_onsite_checkout(){
Link Here
|
| 84 |
function Dopop(link) { |
88 |
function Dopop(link) { |
| 85 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
89 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
| 86 |
} |
90 |
} |
|
|
91 |
|
| 87 |
$(document).ready(function() { |
92 |
$(document).ready(function() { |
| 88 |
$('#mainform').on('submit',function() { |
93 |
$('#mainform').on('submit',function() { |
| 89 |
if ($("#barcode") && $("#barcode").val()) { |
94 |
if ($("#barcode") && $("#barcode").val()) { |
|
Lines 412-420
$(document).ready(function() {
Link Here
|
| 412 |
</form> |
417 |
</form> |
| 413 |
|
418 |
|
| 414 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
419 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 415 |
[% UNLESS noissues %] |
420 |
<button class="issue-allow" type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber %]&borrowernumber=[% borrowernumber %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
| 416 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber %]&borrowernumber=[% borrowernumber %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
|
|
| 417 |
[% END %] |
| 418 |
[% END %] |
421 |
[% END %] |
| 419 |
</div></div> |
422 |
</div></div> |
| 420 |
[% END %] <!-- NEEDSCONFIRMATION --> |
423 |
[% END %] <!-- NEEDSCONFIRMATION --> |
|
Lines 581-587
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 581 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
584 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
| 582 |
[% END %] |
585 |
[% END %] |
| 583 |
|
586 |
|
| 584 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
| 585 |
<div class="yui-u first"> |
587 |
<div class="yui-u first"> |
| 586 |
|
588 |
|
| 587 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
589 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
|
Lines 618-624
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 618 |
|
620 |
|
| 619 |
<div class="checkout-settings"> |
621 |
<div class="checkout-settings"> |
| 620 |
|
622 |
|
| 621 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
| 622 |
[% IF ( SpecifyDueDate ) %] |
623 |
[% IF ( SpecifyDueDate ) %] |
| 623 |
<div id="specify-due-date" class="checkout-setting"> |
624 |
<div id="specify-due-date" class="checkout-setting"> |
| 624 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
625 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
|
Lines 636-645
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 636 |
<button class="btn btn-default btn-sm action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button> |
637 |
<button class="btn btn-default btn-sm action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button> |
| 637 |
</div> |
638 |
</div> |
| 638 |
[% END %] |
639 |
[% END %] |
| 639 |
[% END %] |
|
|
| 640 |
|
640 |
|
| 641 |
[% UNLESS ( noissues ) %] |
641 |
<div id="set-automatic-renewal" class="checkout-setting issue-allow"> |
| 642 |
<div id="set-automatic-renewal" class="checkout-setting"> |
|
|
| 643 |
[% IF NEEDSCONFIRMATION %] |
642 |
[% IF NEEDSCONFIRMATION %] |
| 644 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
643 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 645 |
[% ELSE %] |
644 |
[% ELSE %] |
|
Lines 666-684
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 666 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
665 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 667 |
</div> |
666 |
</div> |
| 668 |
[% END %] |
667 |
[% END %] |
| 669 |
[% END %] |
|
|
| 670 |
|
668 |
|
| 671 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
669 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 672 |
<div id="onsite_checkout-select" class="checkout-setting"> |
670 |
<div id="onsite_checkout-select" class="checkout-setting"> |
| 673 |
[% IF noissues %] |
671 |
<div class="onsite-checkout-only issue-disallow"> |
| 674 |
<div class="onsite-checkout-only"> |
|
|
| 675 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
672 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
| 676 |
<input type="text" name="duedatespec" id="duedatespec" /> |
673 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 677 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
674 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 678 |
</div> |
675 |
</div> |
| 679 |
[% ELSE %] |
676 |
<div class="issue-allow"> |
| 680 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
677 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
| 681 |
[% END %] |
678 |
</div> |
| 682 |
</div> |
679 |
</div> |
| 683 |
[% END %] |
680 |
[% END %] |
| 684 |
|
681 |
|
|
Lines 700-734
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 700 |
[% END %] |
697 |
[% END %] |
| 701 |
</form></div> |
698 |
</form></div> |
| 702 |
|
699 |
|
| 703 |
[% END %]<!-- /unless noissues --> |
|
|
| 704 |
|
| 705 |
[% IF ( noissues ) %] |
| 706 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 707 |
<div class="yui-u"> |
| 708 |
[% ELSE %] |
| 709 |
<div> |
| 710 |
[% END %] |
| 711 |
[% ELSE %] |
| 712 |
<div class="yui-u"> |
700 |
<div class="yui-u"> |
| 713 |
[% END %] |
701 |
<div id="circmessages" class="circmessage attention"> |
| 714 |
|
702 |
<h3>Attention:</h3> |
| 715 |
[% IF ( noissues ) %] |
703 |
<div class="issue-disallow"> |
| 716 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
704 |
[% IF !( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 717 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 718 |
[% ELSE %] |
| 719 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
705 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 720 |
<div id="circmessages" class="circmessage warning"> |
|
|
| 721 |
[% END %] |
706 |
[% END %] |
| 722 |
<h3> |
707 |
<h3> |
| 723 |
Cannot check out! |
708 |
Cannot check out! |
| 724 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
709 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 725 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
710 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 726 |
[% END %] |
711 |
[% END %] |
| 727 |
</h3> |
712 |
</h3> |
| 728 |
[% ELSE %] |
713 |
</div> |
| 729 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 730 |
<h3>Attention:</h3> |
| 731 |
[% END %] |
| 732 |
|
714 |
|
| 733 |
<ul> |
715 |
<ul> |
| 734 |
|
716 |
|
|
Lines 787-794
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 787 |
[% END %] |
769 |
[% END %] |
| 788 |
<br/> |
770 |
<br/> |
| 789 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
771 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 790 |
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %] |
772 |
[% IF (borrowernumber && CAN_user_circulate_force_checkout) %] |
| 791 |
<span class="override_debarment"> |
773 |
<span class="override_debarment issue-disallow"> |
| 792 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
774 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 793 |
</span> |
775 |
</span> |
| 794 |
[% END %] |
776 |
[% END %] |
|
Lines 798-808
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 798 |
[% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a>[% END %]</li> |
780 |
[% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a>[% END %]</li> |
| 799 |
[% END %] |
781 |
[% END %] |
| 800 |
|
782 |
|
| 801 |
[% IF ( charges ) %] |
783 |
[% INCLUDE 'blocked-fines.inc' %] |
| 802 |
[% INCLUDE 'blocked-fines.inc' |
|
|
| 803 |
fines = chargesamount |
| 804 |
%] |
| 805 |
[% END %] |
| 806 |
|
784 |
|
| 807 |
[% IF ( charges_guarantees ) %] |
785 |
[% IF ( charges_guarantees ) %] |
| 808 |
<li> |
786 |
<li> |
|
Lines 888-898
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 888 |
|
866 |
|
| 889 |
<ul> |
867 |
<ul> |
| 890 |
<li> |
868 |
<li> |
| 891 |
[% IF ( issuecount ) %] |
869 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
| 892 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
|
|
| 893 |
[% ELSE %] |
| 894 |
<a href="#checkouts">0 Checkouts</a> |
| 895 |
[% END %] |
| 896 |
</li> |
870 |
</li> |
| 897 |
|
871 |
|
| 898 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
872 |
[% SET enrollments = patron.get_club_enrollments(1) %] |