From 897504302dbd7f7f0c90326750ee68f94bcde33f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 9 Dec 2013 15:28:15 -0500 Subject: [PATCH] Bug 11360 - Disable barcode field and submit button when a hold is found At the moment when scanning in returns, it can be easy to miss a hold trap due to the fact that the barcode and submit are still active and the barcode field is focused on. A librarian who is focused on scanning can easily scan another item and pass over the form, which is equivalent to clicking the "ignore" button. Test Plan: 1) Place a hold on an item 2) Scan that item's barcode though returns.pl 3) Note the hold trap 4) Scan another barcode 5) Note you were able to bypass interacting with the trapped hold form 6) Apply this patch 7) Repeat steps 2-4 8) Note you must now click one of the buttons. Clicking ignore will allow you to continue scanning items as before. Signed-off-by: Christopher Brannon --- .../intranet-tmpl/prog/en/modules/circ/returns.tt | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index fb30311..d435d9f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -299,7 +299,7 @@ $(document).ready(function () { [% END %] - + [% FOREACH inputloo IN inputloop %] @@ -384,14 +384,22 @@ $(document).ready(function () {
Check In - [% IF ( exemptfine ) %] - + [% IF found %] + + [% ELSIF ( exemptfine ) %] + [% ELSIF ( dropboxmode ) %] - + [% ELSE %] - + [% END %] - + + [% UNLESS found %] + + [% ELSE %] + + [% END %] + [% FOREACH inputloo IN inputloop %] -- 1.7.2.5