|
Lines 9-14
Link Here
|
| 9 |
[% USE Price %] |
9 |
[% USE Price %] |
| 10 |
[% USE AuthorisedValues %] |
10 |
[% USE AuthorisedValues %] |
| 11 |
[% SET footerjs = 1 %] |
11 |
[% SET footerjs = 1 %] |
|
|
12 |
[% SET show_barcode_input = (Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce')) || !noissues || forceallow %] |
| 12 |
[% INCLUDE 'doc-head-open.inc' %] |
13 |
[% INCLUDE 'doc-head-open.inc' %] |
| 13 |
[% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %] |
14 |
[% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %] |
| 14 |
[% SET destination = "circ" %] |
15 |
[% SET destination = "circ" %] |
|
Lines 19-24
Link Here
|
| 19 |
[% END %] |
20 |
[% END %] |
| 20 |
</title> |
21 |
</title> |
| 21 |
[% INCLUDE 'doc-head-close.inc' %] |
22 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
23 |
<style> |
| 24 |
.issue-allow, .issue-disallow {display: none;} |
| 25 |
[% IF !show_barcode_input %]#mainform {display: none;}[% END %] |
| 26 |
</style> |
| 22 |
</head> |
27 |
</head> |
| 23 |
|
28 |
|
| 24 |
<body id="circ_circulation" class="circ"> |
29 |
<body id="circ_circulation" class="circ"> |
|
Lines 295-303
Link Here
|
| 295 |
</form> |
300 |
</form> |
| 296 |
|
301 |
|
| 297 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
302 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 298 |
[% UNLESS noissues %] |
|
|
| 299 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
303 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
| 300 |
[% END %] |
|
|
| 301 |
[% END %] |
304 |
[% END %] |
| 302 |
</div> <!-- /#circ_needsconfirmation --> |
305 |
</div> <!-- /#circ_needsconfirmation --> |
| 303 |
[% END # /NEEDSCONFIRMATION %] |
306 |
[% END # /NEEDSCONFIRMATION %] |
|
Lines 504-510
Link Here
|
| 504 |
[% END %] |
507 |
[% END %] |
| 505 |
|
508 |
|
| 506 |
<div class="row"> |
509 |
<div class="row"> |
| 507 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
|
|
| 508 |
<div class="col-sm-6"> |
510 |
<div class="col-sm-6"> |
| 509 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
511 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
| 510 |
<input type="hidden" name="restoreduedatespec" /> |
512 |
<input type="hidden" name="restoreduedatespec" /> |
|
Lines 543-549
Link Here
|
| 543 |
|
545 |
|
| 544 |
<div class="circ-settings"> |
546 |
<div class="circ-settings"> |
| 545 |
|
547 |
|
| 546 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
|
|
| 547 |
[% IF ( SpecifyDueDate ) %] |
548 |
[% IF ( SpecifyDueDate ) %] |
| 548 |
<div id="specify-due-date" class="circ-setting"> |
549 |
<div id="specify-due-date" class="circ-setting"> |
| 549 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
550 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
|
Lines 561-570
Link Here
|
| 561 |
<button class="btn btn-default btn-xs 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> |
562 |
<button class="btn btn-default btn-xs 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> |
| 562 |
</div> |
563 |
</div> |
| 563 |
[% END %] |
564 |
[% END %] |
| 564 |
[% END %] |
|
|
| 565 |
|
565 |
|
| 566 |
[% UNLESS ( noissues ) %] |
566 |
<div id="set-automatic-renewal" class="circ-setting issue-allow"> |
| 567 |
<div id="set-automatic-renewal" class="circ-setting"> |
|
|
| 568 |
[% IF NEEDSCONFIRMATION %] |
567 |
[% IF NEEDSCONFIRMATION %] |
| 569 |
[% IF auto_renew %] |
568 |
[% IF auto_renew %] |
| 570 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" /> |
569 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" /> |
|
Lines 599-621
Link Here
|
| 599 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
598 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 600 |
</div> |
599 |
</div> |
| 601 |
[% END %] |
600 |
[% END %] |
| 602 |
[% END %] |
|
|
| 603 |
|
601 |
|
| 604 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
602 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 605 |
<div id="onsite_checkout-select" class="circ-setting"> |
603 |
<div id="onsite_checkout-select" class="circ-setting"> |
| 606 |
[% IF noissues %] |
604 |
<div class="onsite-checkout-only issue-disallow"> |
| 607 |
<div class="onsite-checkout-only"> |
|
|
| 608 |
<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> |
605 |
<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> |
| 609 |
<input type="text" name="duedatespec" id="duedatespec" /> |
606 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 610 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
607 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 611 |
</div> |
608 |
</div> |
| 612 |
[% ELSE %] |
609 |
<div class="issue-allow"> |
| 613 |
[% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %] |
610 |
[% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %] |
| 614 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label> |
611 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label> |
| 615 |
[% ELSE %] |
612 |
[% ELSE %] |
| 616 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label> |
613 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label> |
| 617 |
[% END %] |
614 |
[% END %] |
| 618 |
[% END %] |
615 |
</div> |
| 619 |
</div> |
616 |
</div> |
| 620 |
[% END %] |
617 |
[% END %] |
| 621 |
|
618 |
|
|
Lines 638-661
Link Here
|
| 638 |
</form> <!-- /#mainform --> |
635 |
</form> <!-- /#mainform --> |
| 639 |
</div> <!-- /.col-sm-6 --> |
636 |
</div> <!-- /.col-sm-6 --> |
| 640 |
|
637 |
|
| 641 |
[% END #/IF !noissues %] |
|
|
| 642 |
|
| 643 |
[% IF ( noissues ) %] |
| 644 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 645 |
<div class="col-sm-6"> |
| 646 |
[% ELSE %] |
| 647 |
<div> |
| 648 |
[% END %] |
| 649 |
[% ELSE %] |
| 650 |
<div class="col-sm-6"> |
638 |
<div class="col-sm-6"> |
| 651 |
[% END %] |
|
|
| 652 |
|
639 |
|
| 653 |
[% IF ( noissues ) %] |
640 |
<div id="circmessages" class="circmessage attention"> |
|
|
641 |
<h3>Attention:</h3> |
| 642 |
<div class="issue-disallow"> |
| 654 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
643 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 655 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 656 |
[% ELSE %] |
| 657 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
644 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 658 |
<div id="circmessages" class="circmessage warning"> |
|
|
| 659 |
[% END %] |
645 |
[% END %] |
| 660 |
<h3> |
646 |
<h3> |
| 661 |
Cannot check out! |
647 |
Cannot check out! |
|
Lines 663-672
Link Here
|
| 663 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
649 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 664 |
[% END %] |
650 |
[% END %] |
| 665 |
</h3> |
651 |
</h3> |
| 666 |
[% ELSE %] |
652 |
</div> |
| 667 |
<div id="circmessages" class="circmessage attention"> |
|
|
| 668 |
<h3>Attention:</h3> |
| 669 |
[% END %] |
| 670 |
|
653 |
|
| 671 |
<ul> |
654 |
<ul> |
| 672 |
[% IF ( has_modifications ) %] |
655 |
[% IF ( has_modifications ) %] |
|
Lines 730-737
Link Here
|
| 730 |
<br/> |
713 |
<br/> |
| 731 |
<a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
714 |
<a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 732 |
|
715 |
|
| 733 |
[% IF (noissues && patron && CAN_user_circulate_force_checkout) %] |
716 |
[% IF (patron && CAN_user_circulate_force_checkout) %] |
| 734 |
<span class="override_debarment"> |
717 |
<span class="override_debarment issue-disallow"> |
| 735 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a> |
718 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a> |
| 736 |
</span> |
719 |
</span> |
| 737 |
[% END %] |
720 |
[% END %] |
|
Lines 748-756
Link Here
|
| 748 |
<li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span> |
731 |
<li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span> |
| 749 |
[% END %] |
732 |
[% END %] |
| 750 |
|
733 |
|
| 751 |
[% IF ( charges ) %] |
734 |
[% INCLUDE 'blocked-fines.inc' %] |
| 752 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
|
|
| 753 |
[% END %] |
| 754 |
|
735 |
|
| 755 |
[% IF age_limitations %] |
736 |
[% IF age_limitations %] |
| 756 |
[% INCLUDE 'category-out-of-age-limit.inc' %] |
737 |
[% INCLUDE 'category-out-of-age-limit.inc' %] |
|
Lines 836-846
Link Here
|
| 836 |
<div id="patronlists" class="toptabs"> |
817 |
<div id="patronlists" class="toptabs"> |
| 837 |
<ul> |
818 |
<ul> |
| 838 |
<li> |
819 |
<li> |
| 839 |
[% IF ( issuecount ) %] |
820 |
<a href="#checkouts"><span id="issuecount">0</span> Checkout(s)</a> |
| 840 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
|
|
| 841 |
[% ELSE %] |
| 842 |
<a href="#checkouts">0 Checkouts</a> |
| 843 |
[% END %] |
| 844 |
</li> |
821 |
</li> |
| 845 |
|
822 |
|
| 846 |
[% IF relatives_issues_count %] |
823 |
[% IF relatives_issues_count %] |
|
Lines 1051-1057
Link Here
|
| 1051 |
var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %]; |
1028 |
var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %]; |
| 1052 |
</script> |
1029 |
</script> |
| 1053 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
1030 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
| 1054 |
[% Asset.js("js/checkouts.js") | $raw %] |
1031 |
[% INCLUDE 'checkouts.inc' %] |
| 1055 |
[% Asset.js("js/holds.js") | $raw %] |
1032 |
[% Asset.js("js/holds.js") | $raw %] |
| 1056 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
1033 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
| 1057 |
<script> |
1034 |
<script> |