Lines 153-159
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
153 |
my ( $renewals_count, $renewals_allowed, $renewals_remaining ) = |
153 |
my ( $renewals_count, $renewals_allowed, $renewals_remaining ) = |
154 |
GetRenewCount( $c->{borrowernumber}, $c->{itemnumber} ); |
154 |
GetRenewCount( $c->{borrowernumber}, $c->{itemnumber} ); |
155 |
|
155 |
|
156 |
my $itemtype = Koha::ItemTypes->find( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
156 |
my $type_for_stat = Koha::ItemTypes->find( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
|
|
157 |
my $itemtype = Koha::ItemTypes->find( $c->{itype} ); |
158 |
my $recordtype = Koha::ItemTypes->find( $c->{itemtype} ); |
157 |
my $location; |
159 |
my $location; |
158 |
if ( $c->{location} ) { |
160 |
if ( $c->{location} ) { |
159 |
my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} }); |
161 |
my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} }); |
Lines 184-191
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
184 |
part_name => $c->{part_name} // '', |
186 |
part_name => $c->{part_name} // '', |
185 |
author => $c->{author}, |
187 |
author => $c->{author}, |
186 |
barcode => $c->{barcode}, |
188 |
barcode => $c->{barcode}, |
187 |
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype}, |
189 |
type_for_stat => $type_for_stat ? $type_for_stat->translated_description : q{}, |
188 |
itemtype_description => $itemtype ? $itemtype->translated_description : q{}, |
190 |
itemtype_description => $itemtype ? $itemtype->translated_description : q{}, |
|
|
191 |
recordtype_description => $recordtype ? $recordtype->translated_description : q{}, |
189 |
collection => $collection, |
192 |
collection => $collection, |
190 |
location => $location, |
193 |
location => $location, |
191 |
homebranch => $c->{homebranch}, |
194 |
homebranch => $c->{homebranch}, |
192 |
- |
|
|