Lines 84-91
$template->param(do_it => $do_it,
Link Here
|
84 |
my $itemtypes = GetItemTypes(); |
84 |
my $itemtypes = GetItemTypes(); |
85 |
my @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); |
85 |
my @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); |
86 |
|
86 |
|
87 |
my $locations = { map { ( $_->authorised_value => $_->lib ) } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
87 |
my $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
88 |
my $ccodes = { map { ( $_->authorised_value => $_->lib ) } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
88 |
my $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
89 |
|
89 |
|
90 |
my $Bsort1 = GetAuthorisedValues("Bsort1"); |
90 |
my $Bsort1 = GetAuthorisedValues("Bsort1"); |
91 |
my $Bsort2 = GetAuthorisedValues("Bsort2"); |
91 |
my $Bsort2 = GetAuthorisedValues("Bsort2"); |
Lines 330-337
sub null_to_zzempty ($) {
Link Here
|
330 |
} |
330 |
} |
331 |
sub display_value { |
331 |
sub display_value { |
332 |
my ( $crit, $value ) = @_; |
332 |
my ( $crit, $value ) = @_; |
333 |
my $locations = { map { ( $_->authorised_value => $_->lib ) } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
333 |
my $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
334 |
my $ccodes = { map { ( $_->authorised_value => $_->lib ) } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
334 |
my $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
335 |
my $itemtypes = GetItemTypes(); |
335 |
my $itemtypes = GetItemTypes(); |
336 |
my $Bsort1 = GetAuthorisedValues("Bsort1"); |
336 |
my $Bsort1 = GetAuthorisedValues("Bsort1"); |
337 |
my $Bsort2 = GetAuthorisedValues("Bsort2"); |
337 |
my $Bsort2 = GetAuthorisedValues("Bsort2"); |