Lines 151-162
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
151 |
GetRenewCount( $c->{borrowernumber}, $c->{itemnumber} ); |
151 |
GetRenewCount( $c->{borrowernumber}, $c->{itemnumber} ); |
152 |
|
152 |
|
153 |
my $itemtype = Koha::ItemTypes->find( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
153 |
my $itemtype = Koha::ItemTypes->find( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
154 |
my $location; |
154 |
my $location = ""; |
155 |
if ( $c->{location} ) { |
155 |
if ( $c->{location} ) { |
156 |
my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} }); |
156 |
my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} }); |
157 |
$location = $av->count ? $av->next->lib : ''; |
157 |
$location = $av->count ? $av->next->lib : ''; |
158 |
} |
158 |
} |
159 |
my $collection; |
159 |
my $collection = ""; |
160 |
if ( $c->{collection} ) { |
160 |
if ( $c->{collection} ) { |
161 |
my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $c->{collection} }); |
161 |
my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $c->{collection} }); |
162 |
$collection = $av->count ? $av->next->lib : ''; |
162 |
$collection = $av->count ? $av->next->lib : ''; |
163 |
- |
|
|