Lines 23-28
Link Here
|
23 |
[% INCLUDE 'strings.inc' %] |
23 |
[% INCLUDE 'strings.inc' %] |
24 |
[% INCLUDE 'datatables.inc' %] |
24 |
[% INCLUDE 'datatables.inc' %] |
25 |
[% INCLUDE 'columns_settings.inc' %] |
25 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
26 |
<style> |
27 |
.issue-allow, .issue-disallow, #mainform {display: none;} |
28 |
</style> |
26 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
29 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
27 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
30 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
28 |
[% INCLUDE 'timepicker.inc' %] |
31 |
[% INCLUDE 'timepicker.inc' %] |
Lines 87-92
function toggle_onsite_checkout(){
Link Here
|
87 |
function Dopop(link) { |
90 |
function Dopop(link) { |
88 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
91 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
89 |
} |
92 |
} |
|
|
93 |
|
94 |
KOHA.Checkouts.DisallowIssue = [% noissues ? "true" : "false" %]; |
95 |
KOHA.Checkouts.ForceAllowIssue = [% forceallow ? "true" : "false" %]; |
96 |
KOHA.Checkouts.ForceOnSiteCheckouts = [% Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ? "true" : "false" %]; |
90 |
$(document).ready(function() { |
97 |
$(document).ready(function() { |
91 |
$('#mainform').on('submit',function() { |
98 |
$('#mainform').on('submit',function() { |
92 |
if ($("#barcode") && $("#barcode").val()) { |
99 |
if ($("#barcode") && $("#barcode").val()) { |
Lines 408-416
$(document).ready(function() {
Link Here
|
408 |
</form> |
415 |
</form> |
409 |
|
416 |
|
410 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
417 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
411 |
[% UNLESS noissues %] |
418 |
<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> |
412 |
<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> |
|
|
413 |
[% END %] |
414 |
[% END %] |
419 |
[% END %] |
415 |
</div></div> |
420 |
</div></div> |
416 |
[% END %] <!-- NEEDSCONFIRMATION --> |
421 |
[% END %] <!-- NEEDSCONFIRMATION --> |
Lines 577-583
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
577 |
<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 |
<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> |
578 |
[% END %] |
583 |
[% END %] |
579 |
|
584 |
|
580 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
581 |
<div class="yui-u first"> |
585 |
<div class="yui-u first"> |
582 |
|
586 |
|
583 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
587 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
Lines 614-620
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
614 |
|
618 |
|
615 |
<div class="checkout-settings"> |
619 |
<div class="checkout-settings"> |
616 |
|
620 |
|
617 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
618 |
[% IF ( SpecifyDueDate ) %] |
621 |
[% IF ( SpecifyDueDate ) %] |
619 |
<div id="specify-due-date" class="checkout-setting"> |
622 |
<div id="specify-due-date" class="checkout-setting"> |
620 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
623 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
Lines 632-641
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
632 |
<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> |
635 |
<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> |
633 |
</div> |
636 |
</div> |
634 |
[% END %] |
637 |
[% END %] |
635 |
[% END %] |
|
|
636 |
|
638 |
|
637 |
[% UNLESS ( noissues ) %] |
639 |
<div id="set-automatic-renewal" class="checkout-setting issue-allow"> |
638 |
<div id="set-automatic-renewal" class="checkout-setting"> |
|
|
639 |
[% IF NEEDSCONFIRMATION %] |
640 |
[% IF NEEDSCONFIRMATION %] |
640 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
641 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
641 |
[% ELSE %] |
642 |
[% ELSE %] |
Lines 662-680
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
662 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
663 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
663 |
</div> |
664 |
</div> |
664 |
[% END %] |
665 |
[% END %] |
665 |
[% END %] |
|
|
666 |
|
666 |
|
667 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
667 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
668 |
<div id="onsite_checkout-select" class="checkout-setting"> |
668 |
<div id="onsite_checkout-select" class="checkout-setting"> |
669 |
[% IF noissues %] |
669 |
<div class="onsite-checkout-only issue-disallow"> |
670 |
<div class="onsite-checkout-only"> |
|
|
671 |
<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> |
670 |
<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="text" name="duedatespec" id="duedatespec" /> |
671 |
<input type="text" name="duedatespec" id="duedatespec" /> |
673 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
672 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
674 |
</div> |
673 |
</div> |
675 |
[% ELSE %] |
674 |
<div class="issue-allow"> |
676 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
675 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
677 |
[% END %] |
676 |
</div> |
678 |
</div> |
677 |
</div> |
679 |
[% END %] |
678 |
[% END %] |
680 |
|
679 |
|
Lines 696-730
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
696 |
[% END %] |
695 |
[% END %] |
697 |
</form></div> |
696 |
</form></div> |
698 |
|
697 |
|
699 |
[% END %]<!-- /unless noissues --> |
|
|
700 |
|
701 |
[% IF ( noissues ) %] |
702 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
703 |
<div class="yui-u"> |
704 |
[% ELSE %] |
705 |
<div> |
706 |
[% END %] |
707 |
[% ELSE %] |
708 |
<div class="yui-u"> |
698 |
<div class="yui-u"> |
709 |
[% END %] |
699 |
<div id="circmessages" class="circmessage attention"> |
710 |
|
700 |
<h3>Attention:</h3> |
711 |
[% IF ( noissues ) %] |
701 |
<div class="issue-disallow"> |
712 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
702 |
[% IF !( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
713 |
<div id="circmessages" class="circmessage attention"> |
|
|
714 |
[% ELSE %] |
715 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
703 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
716 |
<div id="circmessages" class="circmessage warning"> |
|
|
717 |
[% END %] |
704 |
[% END %] |
718 |
<h3> |
705 |
<h3> |
719 |
Cannot check out! |
706 |
Cannot check out! |
720 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
707 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
721 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
708 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
722 |
[% END %] |
709 |
[% END %] |
723 |
</h3> |
710 |
</h3> |
724 |
[% ELSE %] |
711 |
</div> |
725 |
<div id="circmessages" class="circmessage attention"> |
|
|
726 |
<h3>Attention:</h3> |
727 |
[% END %] |
728 |
|
712 |
|
729 |
<ul> |
713 |
<ul> |
730 |
|
714 |
|
Lines 783-790
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
783 |
[% END %] |
767 |
[% END %] |
784 |
<br/> |
768 |
<br/> |
785 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
769 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
786 |
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %] |
770 |
[% IF (borrowernumber && CAN_user_circulate_force_checkout) %] |
787 |
<span class="override_debarment"> |
771 |
<span class="override_debarment issue-disallow"> |
788 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
772 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
789 |
</span> |
773 |
</span> |
790 |
[% END %] |
774 |
[% END %] |
Lines 884-894
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
884 |
|
868 |
|
885 |
<ul> |
869 |
<ul> |
886 |
<li> |
870 |
<li> |
887 |
[% IF ( issuecount ) %] |
871 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
888 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
|
|
889 |
[% ELSE %] |
890 |
<a href="#checkouts">0 Checkouts</a> |
891 |
[% END %] |
892 |
</li> |
872 |
</li> |
893 |
|
873 |
|
894 |
[% IF relatives_issues_count %] |
874 |
[% IF relatives_issues_count %] |