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>
Tue, 7 Apr 2015 15:23:11 +0000 (11:23 -0400)
commit08899638bda74facecdde85610af1f5e37adb42a
tree8ee0765aa6d0ed33b2fca04c4e004b14638f6532
parentf10ca8470b540466053ecb7bf05c81b687949fae
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