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 81-86
function toggle_onsite_checkout(){
Link Here
|
81 |
function Dopop(link) { |
84 |
function Dopop(link) { |
82 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
85 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
83 |
} |
86 |
} |
|
|
87 |
|
88 |
KOHA.Checkouts.DisallowIssue = [% noissues ? "true" : "false" %]; |
89 |
KOHA.Checkouts.ForceAllowIssue = [% forceallow ? "true" : "false" %]; |
90 |
KOHA.Checkouts.ForceOnSiteCheckouts = [% Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ? "true" : "false" %]; |
84 |
$(document).ready(function() { |
91 |
$(document).ready(function() { |
85 |
$('#mainform').on('submit',function() { |
92 |
$('#mainform').on('submit',function() { |
86 |
if ($("#barcode") && $("#barcode").val()) { |
93 |
if ($("#barcode") && $("#barcode").val()) { |
Lines 390-398
$(document).ready(function() {
Link Here
|
390 |
</form> |
397 |
</form> |
391 |
|
398 |
|
392 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
399 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
393 |
[% UNLESS noissues %] |
400 |
<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> |
394 |
<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> |
|
|
395 |
[% END %] |
396 |
[% END %] |
401 |
[% END %] |
397 |
</div></div> |
402 |
</div></div> |
398 |
[% END %] <!-- NEEDSCONFIRMATION --> |
403 |
[% END %] <!-- NEEDSCONFIRMATION --> |
Lines 559-565
No patron matched <span class="ex">[% message %]</span>
Link Here
|
559 |
<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> |
564 |
<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> |
560 |
[% END %] |
565 |
[% END %] |
561 |
|
566 |
|
562 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
563 |
<div class="yui-u first"> |
567 |
<div class="yui-u first"> |
564 |
|
568 |
|
565 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
569 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
Lines 592-598
No patron matched <span class="ex">[% message %]</span>
Link Here
|
592 |
|
596 |
|
593 |
<div class="checkout-settings"> |
597 |
<div class="checkout-settings"> |
594 |
|
598 |
|
595 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
596 |
[% IF ( SpecifyDueDate ) %] |
599 |
[% IF ( SpecifyDueDate ) %] |
597 |
<div id="specify-due-date" class="checkout-setting"> |
600 |
<div id="specify-due-date" class="checkout-setting"> |
598 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
601 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
Lines 610-619
No patron matched <span class="ex">[% message %]</span>
Link Here
|
610 |
<button class="btn btn-small 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> |
613 |
<button class="btn btn-small 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> |
611 |
</div> |
614 |
</div> |
612 |
[% END %] |
615 |
[% END %] |
613 |
[% END %] |
|
|
614 |
|
616 |
|
615 |
[% UNLESS ( noissues ) %] |
617 |
<div id="set-automatic-renewal" class="checkout-setting issue-allow"> |
616 |
<div id="set-automatic-renewal" class="checkout-setting"> |
|
|
617 |
[% IF NEEDSCONFIRMATION %] |
618 |
[% IF NEEDSCONFIRMATION %] |
618 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
619 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
619 |
[% ELSE %] |
620 |
[% ELSE %] |
Lines 640-658
No patron matched <span class="ex">[% message %]</span>
Link Here
|
640 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
641 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
641 |
</div> |
642 |
</div> |
642 |
[% END %] |
643 |
[% END %] |
643 |
[% END %] |
|
|
644 |
|
644 |
|
645 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
645 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
646 |
<div id="onsite_checkout-select" class="checkout-setting"> |
646 |
<div id="onsite_checkout-select" class="checkout-setting"> |
647 |
[% IF noissues %] |
647 |
<div class="onsite-checkout-only issue-disallow"> |
648 |
<div class="onsite-checkout-only"> |
|
|
649 |
<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> |
648 |
<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> |
650 |
<input type="text" name="duedatespec" id="duedatespec" readonly="readonly" /> |
649 |
<input type="text" name="duedatespec" id="duedatespec" readonly="readonly" /> |
651 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
650 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
652 |
</div> |
651 |
</div> |
653 |
[% ELSE %] |
652 |
<div class="issue-allow"> |
654 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
653 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
655 |
[% END %] |
654 |
</div> |
656 |
</div> |
655 |
</div> |
657 |
[% END %] |
656 |
[% END %] |
658 |
|
657 |
|
Lines 674-708
No patron matched <span class="ex">[% message %]</span>
Link Here
|
674 |
[% END %] |
673 |
[% END %] |
675 |
</form></div> |
674 |
</form></div> |
676 |
|
675 |
|
677 |
[% END %]<!-- /unless noissues --> |
|
|
678 |
|
679 |
[% IF ( noissues ) %] |
680 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
681 |
<div class="yui-u"> |
682 |
[% ELSE %] |
683 |
<div> |
684 |
[% END %] |
685 |
[% ELSE %] |
686 |
<div class="yui-u"> |
676 |
<div class="yui-u"> |
687 |
[% END %] |
677 |
<div id="circmessages" class="circmessage attention"> |
688 |
|
678 |
<h3>Attention:</h3> |
689 |
[% IF ( noissues ) %] |
679 |
<div class="issue-disallow"> |
690 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
680 |
[% IF !( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
691 |
<div id="circmessages" class="circmessage attention"> |
|
|
692 |
[% ELSE %] |
693 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
681 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
694 |
<div id="circmessages" class="circmessage warning"> |
|
|
695 |
[% END %] |
682 |
[% END %] |
696 |
<h3> |
683 |
<h3> |
697 |
Cannot check out! |
684 |
Cannot check out! |
698 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
685 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
699 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
686 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
700 |
[% END %] |
687 |
[% END %] |
701 |
</h3> |
688 |
</h3> |
702 |
[% ELSE %] |
689 |
</div> |
703 |
<div id="circmessages" class="circmessage attention"> |
|
|
704 |
<h3>Attention:</h3> |
705 |
[% END %] |
706 |
|
690 |
|
707 |
<ul> |
691 |
<ul> |
708 |
|
692 |
|
Lines 761-768
No patron matched <span class="ex">[% message %]</span>
Link Here
|
761 |
[% END %] |
745 |
[% END %] |
762 |
<br/> |
746 |
<br/> |
763 |
<a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
747 |
<a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
764 |
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %] |
748 |
[% IF (borrowernumber && CAN_user_circulate_force_checkout) %] |
765 |
<span class="override_debarment"> |
749 |
<span class="override_debarment issue-disallow"> |
766 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a> |
750 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a> |
767 |
</span> |
751 |
</span> |
768 |
[% END %] |
752 |
[% END %] |
Lines 861-871
No patron matched <span class="ex">[% message %]</span>
Link Here
|
861 |
|
845 |
|
862 |
<ul> |
846 |
<ul> |
863 |
<li> |
847 |
<li> |
864 |
[% IF ( issuecount ) %] |
848 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
865 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
|
|
866 |
[% ELSE %] |
867 |
<a href="#checkouts">0 Checkouts</a> |
868 |
[% END %] |
869 |
</li> |
849 |
</li> |
870 |
|
850 |
|
871 |
[% IF relatives_issues_count %] |
851 |
[% IF relatives_issues_count %] |