For example: 1. Enable SCO and go to the SCO module 2. Attempt to checkout a non-existent barcode. 3. See the error that appears, nothing else. 4. Attempt to checkout something that is already checked out. 5. The error is much the same but you still see all parts of the SCO module. This is a problem for some libraries attempting smooth user experience for SCO users.
sco-main.pl passes a hide_main template variable when issuing is impossible. ( Determined by CanBookBeIssued ) Other problems get needsconfirm ( see CanBookBeIssued for a list ) sco-main.pl should also pass the 'hide_main' variable when the issue is needsconfirm.
Created attachment 172236 [details] [review] Bug 38041: Pass hide_main for all needsconfirm warnings in SCO To test: 1. APPLY PATCH and restart_all 2. Make sure the following errors when issuing in SCO show just the error, no other info. on screen: DEBT RENEW_ISSUE ISSUED_TO_ANOTHER RESERVED TRANSFERRED INVALID_DATE ( cant test in SCO ) TOO_MANY RECALLED
Created attachment 172531 [details] [review] Bug 38041: Pass hide_main for all needsconfirm warnings in SCO To test: 1. APPLY PATCH and restart_all 2. Make sure the following errors when issuing in SCO show just the error, no other info. on screen: DEBT RENEW_ISSUE ISSUED_TO_ANOTHER RESERVED TRANSFERRED INVALID_DATE ( cant test in SCO ) TOO_MANY RECALLED Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org>
Patch works great, tested the various listed situations and all show just the error, no other info.