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>
Thu, 26 Dec 2013 19:10:18 +0000 (14:10 -0500)
commitbb42cf41812af871c267f93ef096fbb20fea80cf
treee8be51f1fa392b6cbe2c5c692841c8c9e8e9e08a
parentaaecd05f29ad273e8b39c1c5dbeb186482bbe842
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