# FIXME: populate fine_items recall_items
$ilspatron{unavail_holds} = _get_outstanding_holds($kp->{borrowernumber});
+
my $pending_checkouts = $patron->pending_checkouts;
- my @items_infos;
+ my @barcodes;
while ( my $c = $pending_checkouts->next ) {
- push @items_infos, $c->unblessed_all_relateds;
+ push @barcodes, { barcode => $c->item->barcode };
}
- $ilspatron{items} = \@items_infos;
+ $ilspatron{items} = \@barcodes;
$self = \%ilspatron;
$debug and warn Dumper($self);
if ( $self->{fines} ) {
return $self->{fines};
}
- return;
+ return 0;
}
sub fines_amount {
| contactname | mediumtext | YES | | NULL | |
| contactfirstname | text | YES | | NULL | |
| contacttitle | text | YES | | NULL | |
-| guarantorid | int(11) | YES | MUL | NULL | |
| borrowernotes | mediumtext | YES | | NULL | |
| relationship | varchar(100) | YES | | NULL | |
| ethnicity | varchar(50) | YES | | NULL | |