Bugzilla – Attachment 108469 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.62 KB, created by
Nick Clemens (kidclamp)
on 2020-08-18 11:37:43 UTC
(
hide
)
Description:
Bug 19482: (follow-up) Fix select and adjust export of new field
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-08-18 11:37:43 UTC
Size:
2.62 KB
patch
obsolete
>From fd0185b332e2a792b2d7d78920d9f65b5c46e836 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 > >--- > 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 255fe5c1cf..525b59a440 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -276,6 +276,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 a4b1a04e50..60401b240e 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 { > <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> >@@ -237,7 +238,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