Lines 85-91
if ( $op eq 'form' ) {
Link Here
|
85 |
$biblio->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $record_id ) ); |
85 |
$biblio->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $record_id ) ); |
86 |
$biblio->{itemnumbers} = C4::Items::GetItemnumbersForBiblio( $record_id ); |
86 |
$biblio->{itemnumbers} = C4::Items::GetItemnumbersForBiblio( $record_id ); |
87 |
$biblio->{holds_count} = $holds_count; |
87 |
$biblio->{holds_count} = $holds_count; |
88 |
$biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id ); |
88 |
$biblio->{issues_count} = C4::Biblio::CountItemsIssued({ biblionumber => $record_id, count_on_order => 1 }); |
89 |
push @records, $biblio; |
89 |
push @records, $biblio; |
90 |
} else { |
90 |
} else { |
91 |
# Retrieve authority information |
91 |
# Retrieve authority information |
Lines 134-140
if ( $op eq 'form' ) {
Link Here
|
134 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
134 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
135 |
|
135 |
|
136 |
# TODO Replace with $biblio->get_issues->count |
136 |
# TODO Replace with $biblio->get_issues->count |
137 |
if ( C4::Biblio::CountItemsIssued( $biblionumber ) ) { |
137 |
if ( C4::Biblio::CountItemsIssued({ biblionumber => $biblionumber, count_on_order => 1 }) ) { |
138 |
push @messages, { |
138 |
push @messages, { |
139 |
type => 'warning', |
139 |
type => 'warning', |
140 |
code => 'item_issued', |
140 |
code => 'item_issued', |
141 |
- |
|
|