|
Lines 660-665
sub HoldTitle {
Link Here
|
| 660 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
660 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
| 661 |
return { code => 'RecordNotFound' } unless $biblio; |
661 |
return { code => 'RecordNotFound' } unless $biblio; |
| 662 |
|
662 |
|
|
|
663 |
my @hostitems = get_hostitemnumbers_of($biblionumber); |
| 664 |
my @itemnumbers; |
| 665 |
if (@hostitems){ |
| 666 |
push(@itemnumbers, @hostitems); |
| 667 |
} |
| 668 |
|
| 669 |
my $items = Koha::Items->search({ -or => { biblionumber => $biblionumber, itemnumber => { in => \@itemnumbers } } }); |
| 670 |
|
| 671 |
unless ( $items->count ) { |
| 672 |
return { code => 'NoItems' }; |
| 673 |
} |
| 674 |
|
| 663 |
my $title = $biblio ? $biblio->title : ''; |
675 |
my $title = $biblio ? $biblio->title : ''; |
| 664 |
|
676 |
|
| 665 |
# Check if the biblio can be reserved |
677 |
# Check if the biblio can be reserved |
| 666 |
- |
|
|