From af02cfa68c4071b81d12fa45743849552a83ee55 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 13 Apr 2015 07:42:48 -0400 Subject: [PATCH] A little more defensive programming in NCIP::ILS::Evergreen. If for some reason actor.usr.card does not have the id of a valid barcode and we get nothing from it, we use the barcode that we were given in the LookupUser request. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index d1c957b..1de6737 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -166,7 +166,7 @@ sub lookupuser { # Use the user's main card as the UserId. my $id = NCIP::User::Id->new({ UserIdentifierType => 'Barcode', - UserIdnetifierValue => $user->card->barcode() + UserIdnetifierValue => $user->card->barcode() || $barcode }); $userdata->UserId($id); -- 2.43.2