Bug 15091: Do not allow to use batch checkout if checkout is not allowed
If the noissue param is passed to the template, the batch checkout should not be allowed. This patch globally fixes the problem raised by bug 15091. A generic message "cannot check out" is displayed and some more specific ones could be added later. For now it only trigger the "fine balance is over the limit" message. Test plan: Confirm there is no regression on the original behavior and that the issue raised on bug 15091 is fixed. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
eea1d4043c
commit
3ff0e13a7f
|
|
@ -63,6 +63,13 @@ $(document).ready(function() {
|
|||
|
||||
[% IF NOT batch_allowed %]
|
||||
<div class="dialog message">You are not allowed to use batch checkout for this patron</div>
|
||||
[% ELSIF noissues and not checkout_infos %]
|
||||
<div class="dialog message">
|
||||
Cannot check out!
|
||||
[% IF charges_is_blocker %]
|
||||
Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
|
||||
[% END %]
|
||||
</div>
|
||||
[% ELSIF NOT checkout_infos %]
|
||||
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
|
||||
<fieldset id="circ_circulation_issue">
|
||||
|
|
|
|||
Loading…
Reference in New Issue