LP2008834 - Option to Hide Strict Barcode
authorScott Angel <scottangel@mobiusconsortium.org>
Fri, 17 Mar 2023 14:46:20 +0000 (09:46 -0500)
committerScott Angel <scottangel@mobiusconsortium.org>
Fri, 17 Mar 2023 14:46:20 +0000 (09:46 -0500)
commit0ef0c3585976a2ffa265c1cd6cc9a524330b99a3
tree27285f1552145fff0ba45bb583211b9ee067814f
parent3c304258b0254f88dc2c66f8d987cd1ea979a672
LP2008834 - Option to Hide Strict Barcode

Added a feature to allow libraries to hide the strict barcode checkbox
using a new org setting. This was requested to eliminate accidental
clicks. If the library decides to hide the checkbox we also set
strict_barcode to false.

This patch also effects the offline mode as well. In order for this to work in offline mode
the workstation will need to have successfully logged in and accessed
one of the pages where the strict barcode checkbox is displayed. We then
cache this setting in the window.localStorage.

The org setting is called 'circ.hide_patron_strict_barcode' located in
the table 'config.org_unit_setting_type'.

Signed-off-by: Scott Angel <scottangel@mobiusconsortium.org>
Open-ILS/src/sql/Pg/upgrade/xxxx.data.option-to-hide-strict-barcode-checkbox.sql [new file with mode: 0644]
Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2
Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2
Open-ILS/src/templates/staff/circ/renew/t_renew.tt2
Open-ILS/src/templates/staff/offline-interface.tt2
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
Open-ILS/web/js/ui/default/staff/circ/renew/app.js
Open-ILS/web/js/ui/default/staff/offline.js