Bug 17642: Add and use get_descriptions_by_koha_field
[koha.git] / basket / basket.pl
index 83cb180..62a37ab 100755 (executable)
@@ -77,7 +77,7 @@ foreach my $biblionumber ( @bibs ) {
     }
        
     my $shelflocations =
-      { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => $dat->{frameworkcode}, kohafield => 'items.location' } ) };
+      { map { $_->{authorised_value} => $_->{lib} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => $dat->{frameworkcode}, kohafield => 'items.location' } ) };
 
        for my $itm (@items) {
            if ($itm->{'location'}){