{
no warnings; # any of these $kp->{fields} being concat'd could be undef
%ilspatron = (
- getmemberdetails_object => $kp,
name => $kp->{firstname} . " " . $kp->{surname},
id => $kp->{cardnumber}, # to SIP, the id is the BARCODE, not userid
password => $pw,
recall_overdue => 0, # for patron_status[12]
too_many_billed => 0, # for patron_status[13]
inet => 0, # EnvisionWare extension
- getmemberdetails_object => 0,
);
our $AUTOLOAD;
my $patron_barcode = $self->{patron}->id;
my $overridden_duedate; # usually passed as undef to AddIssue
$debug and warn "do_checkout: patron (" . $patron_barcode . ")";
- my $borrower = $self->{patron}->getmemberdetails_object();
+ my $patron = Koha::Patrons->find( { cardnumber => $patron_barcode } );
+ my $borrower = $patron->unblessed;
$debug and warn "do_checkout borrower: . " . Dumper $borrower;
- my ($issuingimpossible, $needsconfirmation) = _can_we_issue($borrower, $barcode,
+ my ($issuingimpossible, $needsconfirmation) = _can_we_issue($patron, $barcode,
C4::Context->preference("AllowItemsOnHoldCheckout")
);
}
sub _can_we_issue {
- my ( $borrower, $barcode, $pref ) = @_;
+ my ( $patron, $barcode, $pref ) = @_;
my ( $issuingimpossible, $needsconfirmation, $alerts ) =
- CanBookBeIssued( $borrower, $barcode, undef, 0, $pref );
+ CanBookBeIssued( $patron, $barcode, undef, 0, $pref );
for my $href ( $issuingimpossible, $needsconfirmation ) {
# some data is returned using lc keys we only