]> git.evergreen-ils.org Git - Evergreen.git/commit
Add registration/edit time barcode restrictions
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 31 Jan 2012 21:50:21 +0000 (16:50 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 8 Jul 2013 14:31:24 +0000 (10:31 -0400)
commit47bfda2570939d9560e1c3aac330feb1e2e735d5
tree885857e2bb9edae52f5152803d75a785d63a9ba7
parent19ecb62f9955f720c9cc0de61eaa47b18c2d4037
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>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.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