]> git.evergreen-ils.org Git - evergreen/tadl.git/commit
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>
Wed, 25 Jul 2012 23:37:05 +0000 (19:37 -0400)
commit400adfe7f1e3f4d9e57b751a8c545ca9734788cc
tree31f71fa4b3d09850a1bb44952c258b04627c3499
parent6fa5042945672ac49a92f8fea6e3d8f9976a916d
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