} else {
$circ->do_checkout();
if ($circ->ok){
- warn "circ is ok";
+ $debug and warn "circ is ok";
# If the item is already associated with this patron, then
# we're renewing it.
$circ->renew_ok($item->{patron} && ($item->{patron} eq $patron_id));
$patron_id, join(', ', @{$patron->{items}}));
}
else {
- syslog("LOG_DEBUG", "ILS::Checkout Issue failed");
+ syslog("LOG_ERR", "ILS::Checkout Issue failed");
}
}
# END TRANSACTION
$item->{patron} = $borrower->{'cardnumber'};
my @reserves = (@{ GetReservesFromBiblionumber($item->{biblionumber}) });
$item->{hold_queue} = [ sort priority_sort @reserves ];
- $item->{joetest} = 111;
+ # $item->{joetest} = 111;
$self = $item;
bless $self, $type;
sub available {
my ($self, $for_patron) = @_;
my $count = (defined $self->{hold_queue}) ? scalar @{$self->{hold_queue}} : 0;
- print STDERR "availability check: hold_queue size $count\n";
+ $debug and print STDERR "availability check: hold_queue size $count\n";
if (defined($self->{patron_id})) {
($self->{patron_id} eq $for_patron) or return 0;
return ($count ? 0 : 1);