configuration load times and still have the group name as a
reminder to the person that edits the configuration.
-->
+ <!--
+ Uncomment the below to return the patron's database id in
+ LookupUser responses, instead of the barcode. This is an
+ Autographics extension.
+ -->
+ <!-- <lookupuser_send_database_id/> -->
</patrons>
<holds>
<!--
my $userdata = NCIP::User->new();
# Use the user's main card as the UserId.
+ my $idType = ($self->{lookupuser_send_database_id}) ? 'UniqueID' : 'Barcode';
+ my $idValue = ($self->{lookupuser_send_database_id}) ? $user->id()
+ : $user->card->barcode() || $barcode;
my $id = NCIP::User::Id->new({
- UserIdentifierType => 'Barcode',
- UserIdentifierValue => $user->card->barcode() || $barcode
+ UserIdentifierType => $idType,
+ UserIdentifierValue => $idValue
});
$userdata->UserId($id);
}
push(@{$self->{blocked_profiles}}, $pgt) if ($pgt);
}
+ if ($self->{config}->{patrons}->{lookupuser_send_database_id}) {
+ $self->{lookupuser_send_database_id} = 1;
+ } else {
+ $self->{lookupuser_send_database_id} = 0;
+ }
}
# Load the bib source if we're not using precats.