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 <jason@sigio.com>
# 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);