|
Lines 793-799
sub CanBookBeIssued {
Link Here
|
| 793 |
my $onsite_checkout = $params->{onsite_checkout} || 0; |
793 |
my $onsite_checkout = $params->{onsite_checkout} || 0; |
| 794 |
my $override_high_holds = $params->{override_high_holds} || 0; |
794 |
my $override_high_holds = $params->{override_high_holds} || 0; |
| 795 |
|
795 |
|
| 796 |
my $item_object = !$barcode ? undef : $params->{item} // Koha::Items->find( { barcode => $barcode } ); |
796 |
my $item_object = $params->{item}; |
|
|
797 |
if ( !$item_object and $barcode ) { |
| 798 |
$item_object = Koha::Items->find( { barcode => $barcode } ); |
| 799 |
} |
| 797 |
|
800 |
|
| 798 |
# MANDATORY CHECKS - unless item exists, nothing else matters |
801 |
# MANDATORY CHECKS - unless item exists, nothing else matters |
| 799 |
unless ($item_object) { |
802 |
unless ($item_object) { |
| 800 |
- |
|
|