|
Lines 20-25
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 |
<style> |
| 24 |
.issue-allow, .issue-disallow, #mainform {display: none;} |
| 25 |
</style> |
| 23 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
26 |
<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> |
27 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
| 25 |
[% INCLUDE 'timepicker.inc' %] |
28 |
[% INCLUDE 'timepicker.inc' %] |
|
Lines 84-89
function toggle_onsite_checkout(){
Link Here
|
| 84 |
function Dopop(link) { |
87 |
function Dopop(link) { |
| 85 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
88 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
| 86 |
} |
89 |
} |
|
|
90 |
|
| 91 |
[% IF noissues && !forceallow %] KOHA.Checkouts.DisallowIssue = true; [% END %] |
| 92 |
[% IF Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') %] KOHA.Checkouts.ForceOnSiteCheckouts = true; [% END %] |
| 87 |
$(document).ready(function() { |
93 |
$(document).ready(function() { |
| 88 |
$('#mainform').on('submit',function() { |
94 |
$('#mainform').on('submit',function() { |
| 89 |
if ($("#barcode") && $("#barcode").val()) { |
95 |
if ($("#barcode") && $("#barcode").val()) { |
|
Lines 405-413
$(document).ready(function() {
Link Here
|
| 405 |
</form> |
411 |
</form> |
| 406 |
|
412 |
|
| 407 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
413 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 408 |
[% UNLESS noissues %] |
414 |
<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> |
| 409 |
<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> |
|
|
| 410 |
[% END %] |
| 411 |
[% END %] |
415 |
[% END %] |
| 412 |
</div></div> |
416 |
</div></div> |
| 413 |
[% END %] <!-- NEEDSCONFIRMATION --> |
417 |
[% END %] <!-- NEEDSCONFIRMATION --> |
|
Lines 574-580
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 574 |
<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 |
<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> |
| 575 |
[% END %] |
579 |
[% END %] |
| 576 |
|
580 |
|
| 577 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
| 578 |
<div class="yui-u first"> |
581 |
<div class="yui-u first"> |
| 579 |
|
582 |
|
| 580 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
583 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
|
Lines 611-617
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 611 |
|
614 |
|
| 612 |
<div class="checkout-settings"> |
615 |
<div class="checkout-settings"> |
| 613 |
|
616 |
|
| 614 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
| 615 |
[% IF ( SpecifyDueDate ) %] |
617 |
[% IF ( SpecifyDueDate ) %] |
| 616 |
<div id="specify-due-date" class="checkout-setting"> |
618 |
<div id="specify-due-date" class="checkout-setting"> |
| 617 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
619 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
|
Lines 629-638
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 629 |
<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> |
631 |
<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> |
| 630 |
</div> |
632 |
</div> |
| 631 |
[% END %] |
633 |
[% END %] |
| 632 |
[% END %] |
|
|
| 633 |
|
634 |
|
| 634 |
[% UNLESS ( noissues ) %] |
635 |
<div id="set-automatic-renewal" class="checkout-setting issue-allow"> |
| 635 |
<div id="set-automatic-renewal" class="checkout-setting"> |
|
|
| 636 |
[% IF NEEDSCONFIRMATION %] |
636 |
[% IF NEEDSCONFIRMATION %] |
| 637 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
637 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 638 |
[% ELSE %] |
638 |
[% ELSE %] |
|
Lines 659-677
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 659 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
659 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 660 |
</div> |
660 |
</div> |
| 661 |
[% END %] |
661 |
[% END %] |
| 662 |
[% END %] |
|
|
| 663 |
|
662 |
|
| 664 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
663 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 665 |
<div id="onsite_checkout-select" class="checkout-setting"> |
664 |
<div id="onsite_checkout-select" class="checkout-setting"> |
| 666 |
[% IF noissues %] |
665 |
<div class="onsite-checkout-only issue-disallow"> |
| 667 |
<div class="onsite-checkout-only"> |
|
|
| 668 |
<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> |
666 |
<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> |
| 669 |
<input type="text" name="duedatespec" id="duedatespec" /> |
667 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 670 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
668 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 671 |
</div> |
669 |
</div> |
| 672 |
[% ELSE %] |
670 |
<div class="issue-allow"> |
| 673 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
671 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label> |
| 674 |
[% END %] |
672 |
</div> |
| 675 |
</div> |
673 |
</div> |
| 676 |
[% END %] |
674 |
[% END %] |
| 677 |
|
675 |
|
|
Lines 693-727
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 693 |
[% END %] |
691 |
[% END %] |
| 694 |
</form></div> |
692 |
</form></div> |
| 695 |
|
693 |
|
| 696 |
[% END %]<!-- /unless noissues --> |
|
|
| 697 |
|
| 698 |
[% IF ( noissues ) %] |
| 699 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 700 |
<div class="yui-u"> |
| 701 |
[% ELSE %] |
| 702 |
<div> |
| 703 |
[% END %] |
| 704 |
[% ELSE %] |
| 705 |
<div class="yui-u"> |
694 |
<div class="yui-u"> |
| 706 |
[% END %] |
695 |
<div id="circmessages" class="circmessage attention"> |
| 707 |
|
696 |
<h3>Attention:</h3> |
| 708 |
[% IF ( noissues ) %] |
697 |
<div class="issue-disallow"> |
| 709 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
698 |
[% IF !( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 710 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 711 |
[% ELSE %] |
| 712 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
699 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 713 |
<div id="circmessages" class="circmessage warning"> |
|
|
| 714 |
[% END %] |
700 |
[% END %] |
| 715 |
<h3> |
701 |
<h3> |
| 716 |
Cannot check out! |
702 |
Cannot check out! |
| 717 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
703 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 718 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
704 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 719 |
[% END %] |
705 |
[% END %] |
| 720 |
</h3> |
706 |
</h3> |
| 721 |
[% ELSE %] |
707 |
</div> |
| 722 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 723 |
<h3>Attention:</h3> |
| 724 |
[% END %] |
| 725 |
|
708 |
|
| 726 |
<ul> |
709 |
<ul> |
| 727 |
|
710 |
|
|
Lines 780-787
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 780 |
[% END %] |
763 |
[% END %] |
| 781 |
<br/> |
764 |
<br/> |
| 782 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
765 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 783 |
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %] |
766 |
[% IF (borrowernumber && CAN_user_circulate_force_checkout) %] |
| 784 |
<span class="override_debarment"> |
767 |
<span class="override_debarment issue-disallow"> |
| 785 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
768 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 786 |
</span> |
769 |
</span> |
| 787 |
[% END %] |
770 |
[% END %] |
|
Lines 881-891
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 881 |
|
864 |
|
| 882 |
<ul> |
865 |
<ul> |
| 883 |
<li> |
866 |
<li> |
| 884 |
[% IF ( issuecount ) %] |
867 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
| 885 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
|
|
| 886 |
[% ELSE %] |
| 887 |
<a href="#checkouts">0 Checkouts</a> |
| 888 |
[% END %] |
| 889 |
</li> |
868 |
</li> |
| 890 |
|
869 |
|
| 891 |
[% IF relatives_issues_count %] |
870 |
[% IF relatives_issues_count %] |