Lines 28-34
use Koha::SearchEngine::Elasticsearch::QueryBuilder;
Link Here
|
28 |
use Koha::SearchMarcMaps; |
28 |
use Koha::SearchMarcMaps; |
29 |
use Koha::SearchFields; |
29 |
use Koha::SearchFields; |
30 |
use Koha::Caches; |
30 |
use Koha::Caches; |
31 |
use Koha::AuthorisedValueCategories; |
31 |
use Koha::AuthorisedValues; |
32 |
|
32 |
|
33 |
use Try::Tiny qw( catch try ); |
33 |
use Try::Tiny qw( catch try ); |
34 |
use Module::Load::Conditional qw( can_load ); |
34 |
use Module::Load::Conditional qw( can_load ); |
Lines 119-125
if ( $op eq 'cud-edit' ) {
Link Here
|
119 |
my $field_weight = $field_weight[$i]; |
119 |
my $field_weight = $field_weight[$i]; |
120 |
my $field_staff_client = $field_staff_client[$i]; |
120 |
my $field_staff_client = $field_staff_client[$i]; |
121 |
my $field_opac = $field_opac[$i]; |
121 |
my $field_opac = $field_opac[$i]; |
122 |
my $av_category = $input->param('facet_av_cat_' . $field_name); |
122 |
my $av_category = $input->param( 'facet_av_cat_' . $field_name ); |
123 |
|
123 |
|
124 |
my $search_field = Koha::SearchFields->find_or_create( |
124 |
my $search_field = Koha::SearchFields->find_or_create( |
125 |
{ |
125 |
{ |
Lines 300-312
while ( my $search_field = $search_fields->next ) {
Link Here
|
300 |
push @all_search_fields, $search_field_unblessed; |
300 |
push @all_search_fields, $search_field_unblessed; |
301 |
} |
301 |
} |
302 |
|
302 |
|
303 |
my @authorised_value_categories = Koha::AuthorisedValueCategories->search->get_column('category_name'); |
303 |
my @authorised_value_categories = Koha::AuthorisedValues->new->categories; |
304 |
push @messages, @errors; |
304 |
push @messages, @errors; |
305 |
$template->param( |
305 |
$template->param( |
306 |
indexes => \@indexes, |
306 |
indexes => \@indexes, |
307 |
all_search_fields => \@all_search_fields, |
307 |
all_search_fields => \@all_search_fields, |
308 |
facetable_fields => \@facetable_fields, |
308 |
facetable_fields => \@facetable_fields, |
309 |
messages => \@messages, |
309 |
messages => \@messages, |
310 |
authorised_value_categories => \@authorised_value_categories, |
310 |
authorised_value_categories => \@authorised_value_categories, |
311 |
); |
311 |
); |
312 |
|
312 |
|