projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 17642: Add and use get_descriptions_by_koha_field
[koha.git]
/
C4
/
XSLT.pm
diff --git
a/C4/XSLT.pm
b/C4/XSLT.pm
index
50ab8e6
..
a829402
100644
(file)
--- a/
C4/XSLT.pm
+++ b/
C4/XSLT.pm
@@
-274,9
+274,9
@@
sub buildKohaItemsNamespace {
}
my $shelflocations =
}
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 =
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' });
my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' });