Bug 10863: (follow-up) give limited circ operator way to proceed
authorGalen Charlton <gmc@esilibrary.com>
Tue, 7 Jan 2014 04:33:05 +0000 (04:33 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 7 Jan 2014 04:33:05 +0000 (04:33 +0000)
This patch tweaks the checkout form so that if a circ operator
doesn't have the circulate/force_checkout permission, they are
presented with a button to continue on if they ran into a restriction
on the loan.  Otherwise, there was no clear way to carry on, as the
item barcode field was disabled.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index 7082284..a522236 100644 (file)
@@ -318,18 +318,22 @@ var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
     [% END %]
 </form>
+[% END %]
 
 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
-    [% IF ( RENEW_ISSUE ) %]
-    <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
+    [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
+        [% IF ( RENEW_ISSUE ) %]
+        <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
+        [% ELSE %]
+        <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
+        [% END %]
     [% ELSE %]
-    <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
+        <input type="submit" class="deny" value="Continue" />
     [% END %]
 </form>
-[% END %]
 
 </div></div>
 [% END %] <!-- NEEDSCONFIRMATION -->