Lines 96-102
if ( $op eq 'form' ) {
Link Here
|
96 |
my $record = &GetMarcBiblio({ biblionumber => $record_id }); |
96 |
my $record = &GetMarcBiblio({ biblionumber => $record_id }); |
97 |
$biblio->{itemnumbers} = [Koha::Items->search({ biblionumber => $record_id })->get_column('itemnumber')]; |
97 |
$biblio->{itemnumbers} = [Koha::Items->search({ biblionumber => $record_id })->get_column('itemnumber')]; |
98 |
$biblio->{holds_count} = $holds_count; |
98 |
$biblio->{holds_count} = $holds_count; |
99 |
$biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id ); |
99 |
$biblio->{issues_count} = C4::Biblio::CountItemsIssued({ biblionumber => $record_id, count_on_order => 1 }); |
100 |
push @records, $biblio; |
100 |
push @records, $biblio; |
101 |
} else { |
101 |
} else { |
102 |
# Retrieve authority information |
102 |
# Retrieve authority information |
Lines 145-151
if ( $op eq 'form' ) {
Link Here
|
145 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
145 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
146 |
|
146 |
|
147 |
# TODO Replace with $biblio->get_issues->count |
147 |
# TODO Replace with $biblio->get_issues->count |
148 |
if ( C4::Biblio::CountItemsIssued( $biblionumber ) ) { |
148 |
if ( C4::Biblio::CountItemsIssued({ biblionumber => $biblionumber, count_on_order => 1 }) ) { |
149 |
push @messages, { |
149 |
push @messages, { |
150 |
type => 'warning', |
150 |
type => 'warning', |
151 |
code => 'item_issued', |
151 |
code => 'item_issued', |
152 |
- |
|
|