|
Lines 556-566
$PATRON, 0 otherwise.
Link Here
|
| 556 |
sub do_check_for_previous_checkout { |
556 |
sub do_check_for_previous_checkout { |
| 557 |
my ( $self, $item ) = @_; |
557 |
my ( $self, $item ) = @_; |
| 558 |
|
558 |
|
| 559 |
# Find all items for bib and extract item numbers. |
|
|
| 560 |
my @items = Koha::Items->search({biblionumber => $item->{biblionumber}}); |
| 561 |
my @item_nos; |
559 |
my @item_nos; |
| 562 |
foreach my $item (@items) { |
560 |
my $biblio = Koha::Biblios->find( $item->{biblionumber} ); |
| 563 |
push @item_nos, $item->itemnumber; |
561 |
if ( $biblio->serial ) { |
|
|
562 |
push @item_nos, $item->{itemnumber}; |
| 563 |
} else { |
| 564 |
# Get all itemnumbers for given bibliographic record. |
| 565 |
@item_nos = $biblio->items->get_column( 'itemnumber' ); |
| 564 |
} |
566 |
} |
| 565 |
|
567 |
|
| 566 |
# Create (old)issues search criteria |
568 |
# Create (old)issues search criteria |
| 567 |
- |
|
|