View | Details | Raw Unified | Return to bug 36396
Collapse All | Expand All

(-)a/admin/searchengine/elasticsearch/mappings.pl (-2 / +2 lines)
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 297-303 while ( my $search_field = $search_fields->next ) { Link Here
297
    push @all_search_fields, $search_field_unblessed;
297
    push @all_search_fields, $search_field_unblessed;
298
}
298
}
299
299
300
my @authorised_value_categories = Koha::AuthorisedValueCategories->search->get_column('category_name');
300
my @authorised_value_categories = Koha::AuthorisedValues->new->categories;
301
push @messages, @errors;
301
push @messages, @errors;
302
$template->param(
302
$template->param(
303
    indexes           => \@indexes,
303
    indexes           => \@indexes,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-1 / +3 lines)
Lines 522-528 a.add, a.delete { Link Here
522
                                                    <input type="hidden" name="facet_name" value="[% f.name | html %]" />
522
                                                    <input type="hidden" name="facet_name" value="[% f.name | html %]" />
523
                                                </td>
523
                                                </td>
524
                                                <td>
524
                                                <td>
525
                                                    [% IF f.name != 'itype' && f.name != 'location' && f.name != 'holdingbranch' && f.name != 'homebranch' && f.name != 'ln' && f.name != 'ccode' %]
525
                                                    <select name="facet_av_cat_[% f.name | html %]">
526
                                                    <select name="facet_av_cat_[% f.name | html %]">
527
                                                        <option value=""></option>
526
                                                        [% FOR av_cat IN authorised_value_categories %]
528
                                                        [% FOR av_cat IN authorised_value_categories %]
527
                                                            [% IF f.authorised_value_category == av_cat %]
529
                                                            [% IF f.authorised_value_category == av_cat %]
528
                                                                <option value="[% av_cat | html %]" selected="selected">[% av_cat | html %]</option>
530
                                                                <option value="[% av_cat | html %]" selected="selected">[% av_cat | html %]</option>
Lines 531-536 a.add, a.delete { Link Here
531
                                                            [% END %]
533
                                                            [% END %]
532
                                                        [% END %]
534
                                                        [% END %]
533
                                                    </select>
535
                                                    </select>
536
                                                    [% END %]
534
                                                </td>
537
                                                </td>
535
                                                <td>
538
                                                <td>
536
                                                    <a class="btn btn-default btn-xs delete-facet" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a>
539
                                                    <a class="btn btn-default btn-xs delete-facet" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a>
537
- 

Return to bug 36396