From 52be44f406e108544f21e6d45055a9ea9e86c075 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 18 Aug 2020 11:32:51 +0000 Subject: [PATCH] Bug 19482: (follow-up) Fix select and adjust export of new field Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- Koha/SearchEngine/Elasticsearch.pm | 1 + .../en/modules/admin/searchengine/elasticsearch/mappings.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 7aff9e8394..4a2d75d03d 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -274,6 +274,7 @@ sub raw_elasticsearch_mappings { $mappings->{ $marc_map->index_name }{ $search_field->name }{label} = $search_field->label; $mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; + $mappings->{ $marc_map->index_name }{ $search_field->name }{mandatory} = $search_field->mandatory; $mappings->{ $marc_map->index_name }{ $search_field->name }{facet_order} = $search_field->facet_order if defined $search_field->facet_order; $mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight if defined $search_field->weight; $mappings->{ $marc_map->index_name }{ $search_field->name }{opac} = $search_field->opac if defined $search_field->opac; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt index d7a8a88203..1b1d8fc95c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt @@ -200,6 +200,7 @@ a.add, a.delete { + [% END %] [% IF search_field.type == "string" %] @@ -242,7 +243,6 @@ a.add, a.delete { [% END %] - [% END %]