From 37a7a1bb5042e839151185aa40449cad9c6260b6 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Oct 2020 14:30:00 +0000 Subject: [PATCH] Bug 19482: (follow-up) Add missing filters and boolean switch to schema Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- Koha/Schema/Result/SearchField.pm | 4 ++++ .../en/modules/admin/searchengine/elasticsearch/mappings.tt | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 540d984274..81fc076287 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -152,6 +152,10 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-02 12:47:22 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EbUa4eprgxeUkoOUiXO/Cg +__PACKAGE__->add_columns( + '+mandatory' => { is_boolean => 1 }, +); + __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); 1; 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 1b1d8fc95c..ed2e5229a1 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 @@ -190,10 +190,10 @@ a.add, a.delete { [% END %] - + - + [% IF is_readonly %] @@ -385,7 +385,7 @@ a.add, a.delete { [% IF mapping.search_field_mandatory %] - Delete + Delete [% ELSE %] Delete [% END %] -- 2.39.5