X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FXSLT.pm;h=a8294020edfeb80824246a5bf46347807d9b25a8;hb=a16a75018063477cf13fdbdad60152bbb27a7616;hp=50ab8e68ca118c1eb6ce723bf4b85993144dab1e;hpb=6585bfc28480d969eeff2289208f775d920ff19c;p=koha.git diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 50ab8e68ca..a8294020ed 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -274,9 +274,9 @@ sub buildKohaItemsNamespace { } my $shelflocations = - { map { $_->authorised_value => $_->opac_description } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => GetFrameworkCode($biblionumber), kohafield => 'items.location' } ) }; + { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => GetFrameworkCode($biblionumber), kohafield => 'items.location' } ) }; my $ccodes = - { map { $_->authorised_value => $_->opac_description } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => GetFrameworkCode($biblionumber), kohafield => 'items.ccode' } ) }; + { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => GetFrameworkCode($biblionumber), kohafield => 'items.ccode' } ) }; my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' });