Bugzilla – Attachment 112461 Details for
Bug 19482
Elasticsearch - prevent removal / editing of required indexes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19482: (follow-up) Fix select and adjust export of new field
Bug-19482-follow-up-Fix-select-and-adjust-export-o.patch (text/plain), 2.68 KB, created by
Katrin Fischer
on 2020-10-25 02:28:57 UTC
(
hide
)
Description:
Bug 19482: (follow-up) Fix select and adjust export of new field
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-10-25 02:28:57 UTC
Size:
2.68 KB
patch
obsolete
>From b7fa0085efd82457ba6c56cd8c118fe7fa1693b4 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 <katrin.fischer.83@web.de> >--- > Koha/SearchEngine/Elasticsearch.pm | 1 + > .../prog/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 b5d35c8b5d..221abfedc3 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 18416b0753..2fb39d8231 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 >@@ -201,6 +201,7 @@ a.add, a.delete { > <select name="search_field_type" disabled> > [% ELSE %] > <select name="search_field_type"> >+ [% END %] > <option value=""></option> > [% IF search_field.type == "string" %] > <option value="string" selected="selected">String</option> >@@ -243,7 +244,6 @@ a.add, a.delete { > <option value="stdno">Std. Number</option> > [% END %] > </select> >- [% END %] > </td> > <td> > <select name="search_field_staff_client"> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19482
:
68246
|
68247
|
68248
|
69250
|
72846
|
72847
|
72848
|
72878
|
72879
|
72880
|
77007
|
77008
|
77009
|
77010
|
80817
|
80818
|
80819
|
80820
|
93366
|
93367
|
93368
|
93371
|
93372
|
93373
|
97226
|
97227
|
97228
|
101312
|
101313
|
101314
|
108467
|
108468
|
108469
|
108470
|
108471
|
111923
|
111924
|
111925
|
111926
|
111927
|
111929
|
112456
|
112459
|
112460
| 112461 |
112462
|
112463
|
112464
|
112465