Apply TADL-specific SIP patron barcode transforms
authorJeff Godin <jgodin@tadl.org>
Mon, 23 Jul 2012 20:17:05 +0000 (16:17 -0400)
committerJeff Godin <jgodin@tadl.org>
Sun, 22 May 2016 03:43:49 +0000 (23:43 -0400)
commita2b09cb1dcb98f697e5b9c34ca71da93c392c74b
tree0eace535680761f5d6f7a574a385e27e02034acc
parent9c9b9c53eccb83861c301a78b7821c4150c63160
Apply TADL-specific SIP patron barcode transforms

TADL has some SIP clients which are not capable of removing extra characters
from some scanned patron barcodes. Thus, we handle that on the SIP server side.

If no active card is found with the barcode provided in the SIP request, first
see if it starts with an uppercase letter. If so, lowercase it, then determine
if certain length requirements are met, and if so also truncate the value.
Attempt to find an active card via the resulting value, and return the usual
error if not found.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm