Add registration/edit time barcode restrictions user/tsbere/check_barcode_regex
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 31 Jan 2012 21:50:21 +0000 (16:50 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 17 Jul 2012 15:20:13 +0000 (11:20 -0400)
commit8ec0c6d24bbbf48fb1d5308b8011ae3c131b69c9
tree0191964529e41ffddb937e78c5c06ef74b643961
parent50de1a4f5c417c30f891347ddb6516e6ff491214
Add registration/edit time barcode restrictions

In the quest to not let staff put bad data into the system (losing battle,
but hey, gotta keep trying, right?), add a barcode regex specifically for
patron registration.

This intentionally does *not* check the opac "is this a barcode?" value.

Use cases for not checking that value include, but are not limited to:

Special "barcodes" for staff accounts. Specific OUs may have a barcode
regex of ".*" to ensure they can use anything for these accounts.

Different prefixes per library - To prevent libraries from using another
library's prefix, but still detect all of them as barcodes.

Special case "this is a barcode" checks for the opac, like legacy barcodes
that should no longer be assigned to new patrons, or on edits.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.check_barcode_regex.sql [new file with mode: 0644]
Open-ILS/web/js/ui/default/actor/user/register.js