|
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 82-87
function toggle_onsite_checkout(){
Link Here
|
| 82 |
function Dopop(link) { |
85 |
function Dopop(link) { |
| 83 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
86 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
| 84 |
} |
87 |
} |
|
|
88 |
|
| 89 |
KOHA.Checkouts.DisallowIssue = [% noissues ? "true" : "false" %]; |
| 90 |
KOHA.Checkouts.ForceAllowIssue = [% forceallow ? "true" : "false" %]; |
| 91 |
KOHA.Checkouts.ForceOnSiteCheckouts = [% Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ? "true" : "false" %]; |
| 85 |
$(document).ready(function() { |
92 |
$(document).ready(function() { |
| 86 |
$('#mainform').on('submit',function() { |
93 |
$('#mainform').on('submit',function() { |
| 87 |
if ($("#barcode") && $("#barcode").val()) { |
94 |
if ($("#barcode") && $("#barcode").val()) { |
|
Lines 424-432
$(document).ready(function() {
Link Here
|
| 424 |
</form> |
431 |
</form> |
| 425 |
|
432 |
|
| 426 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
433 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 427 |
[% UNLESS noissues %] |
434 |
<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> |
| 428 |
<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> |
|
|
| 429 |
[% END %] |
| 430 |
[% END %] |
435 |
[% END %] |
| 431 |
</div></div> |
436 |
</div></div> |
| 432 |
[% END %] <!-- NEEDSCONFIRMATION --> |
437 |
[% END %] <!-- NEEDSCONFIRMATION --> |
|
Lines 589-595
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 589 |
<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> |
594 |
<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> |
| 590 |
[% END %] |
595 |
[% END %] |
| 591 |
|
596 |
|
| 592 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
| 593 |
<div class="yui-u first"> |
597 |
<div class="yui-u first"> |
| 594 |
|
598 |
|
| 595 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
599 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
|
Lines 622-628
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 622 |
|
626 |
|
| 623 |
<div class="checkout-settings"> |
627 |
<div class="checkout-settings"> |
| 624 |
|
628 |
|
| 625 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
| 626 |
[% IF ( SpecifyDueDate ) %] |
629 |
[% IF ( SpecifyDueDate ) %] |
| 627 |
<div id="specify-due-date" class="checkout-setting"> |
630 |
<div id="specify-due-date" class="checkout-setting"> |
| 628 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
631 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
|
Lines 640-649
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 640 |
<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> |
643 |
<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> |
| 641 |
</div> |
644 |
</div> |
| 642 |
[% END %] |
645 |
[% END %] |
| 643 |
[% END %] |
|
|
| 644 |
|
646 |
|
| 645 |
[% UNLESS ( noissues ) %] |
647 |
<div id="set-automatic-renewal" class="checkout-setting issue-allow"> |
| 646 |
<div id="set-automatic-renewal" class="checkout-setting"> |
|
|
| 647 |
[% IF NEEDSCONFIRMATION %] |
648 |
[% IF NEEDSCONFIRMATION %] |
| 648 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
649 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 649 |
[% ELSE %] |
650 |
[% ELSE %] |
|
Lines 670-688
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 670 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
671 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 671 |
</div> |
672 |
</div> |
| 672 |
[% END %] |
673 |
[% END %] |
| 673 |
[% END %] |
|
|
| 674 |
|
674 |
|
| 675 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
675 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 676 |
<div id="onsite_checkout-select" class="checkout-setting"> |
676 |
<div id="onsite_checkout-select" class="checkout-setting"> |
| 677 |
[% IF noissues %] |
677 |
<div class="onsite-checkout-only issue-disallow"> |
| 678 |
<div class="onsite-checkout-only"> |
|
|
| 679 |
<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> |
678 |
<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> |
| 680 |
<input type="text" name="duedatespec" id="duedatespec" readonly="readonly" /> |
679 |
<input type="text" name="duedatespec" id="duedatespec" readonly="readonly" /> |
| 681 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
680 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 682 |
</div> |
681 |
</div> |
| 683 |
[% ELSE %] |
682 |
<div class="issue-allow"> |
| 684 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
683 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
| 685 |
[% END %] |
684 |
</div> |
| 686 |
</div> |
685 |
</div> |
| 687 |
[% END %] |
686 |
[% END %] |
| 688 |
|
687 |
|
|
Lines 704-738
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 704 |
[% END %] |
703 |
[% END %] |
| 705 |
</form></div> |
704 |
</form></div> |
| 706 |
|
705 |
|
| 707 |
[% END %]<!-- /unless noissues --> |
|
|
| 708 |
|
| 709 |
[% IF ( noissues ) %] |
| 710 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 711 |
<div class="yui-u"> |
| 712 |
[% ELSE %] |
| 713 |
<div> |
| 714 |
[% END %] |
| 715 |
[% ELSE %] |
| 716 |
<div class="yui-u"> |
706 |
<div class="yui-u"> |
| 717 |
[% END %] |
707 |
<div id="circmessages" class="circmessage attention"> |
| 718 |
|
708 |
<h3>Attention:</h3> |
| 719 |
[% IF ( noissues ) %] |
709 |
<div class="issue-disallow"> |
| 720 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
710 |
[% IF !( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 721 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 722 |
[% ELSE %] |
| 723 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
711 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 724 |
<div id="circmessages" class="circmessage warning"> |
|
|
| 725 |
[% END %] |
712 |
[% END %] |
| 726 |
<h3> |
713 |
<h3> |
| 727 |
Cannot check out! |
714 |
Cannot check out! |
| 728 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
715 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 729 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
716 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 730 |
[% END %] |
717 |
[% END %] |
| 731 |
</h3> |
718 |
</h3> |
| 732 |
[% ELSE %] |
719 |
</div> |
| 733 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 734 |
<h3>Attention:</h3> |
| 735 |
[% END %] |
| 736 |
|
720 |
|
| 737 |
<ul> |
721 |
<ul> |
| 738 |
|
722 |
|
|
Lines 786-793
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 786 |
|
770 |
|
| 787 |
<br/> |
771 |
<br/> |
| 788 |
<a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
772 |
<a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 789 |
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %] |
773 |
[% IF (borrowernumber && CAN_user_circulate_force_checkout) %] |
| 790 |
<span class="override_debarment"> |
774 |
<span class="override_debarment issue-disallow"> |
| 791 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a> |
775 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a> |
| 792 |
</span> |
776 |
</span> |
| 793 |
[% END %] |
777 |
[% END %] |
|
Lines 885-895
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 885 |
|
869 |
|
| 886 |
<ul> |
870 |
<ul> |
| 887 |
<li> |
871 |
<li> |
| 888 |
[% IF ( issuecount ) %] |
872 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
| 889 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
|
|
| 890 |
[% ELSE %] |
| 891 |
<a href="#checkouts">0 Checkouts</a> |
| 892 |
[% END %] |
| 893 |
</li> |
873 |
</li> |
| 894 |
|
874 |
|
| 895 |
[% IF relatives_issues_count %] |
875 |
[% IF relatives_issues_count %] |