Bugzilla – Attachment 104377 Details for
Bug 25325
ElasticSearch mapping export lacks staff_client/opac fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25325: ElasticSearch mapping export lacks staff_client/opac fields
Bug-25325-ElasticSearch-mapping-export-lacks-staff.patch (text/plain), 1.55 KB, created by
Frédéric Demians
on 2020-05-05 17:26:28 UTC
(
hide
)
Description:
Bug 25325: ElasticSearch mapping export lacks staff_client/opac fields
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2020-05-05 17:26:28 UTC
Size:
1.55 KB
patch
obsolete
>From f0017d8f70096b852266036bcb5d001b5286c995 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Tue, 5 May 2020 19:21:15 +0200 >Subject: [PATCH] Bug 25325: ElasticSearch mapping export lacks > staff_client/opac fields > >Run test: >prove t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t > >Or: > >Run export_elasticsearch_mappings.pl script. See that opac/staff_client fields >are exorted. >--- > Koha/SearchEngine/Elasticsearch.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index 6616671325..202ef7e858 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -282,6 +282,8 @@ sub raw_elasticsearch_mappings { > $mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; > $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; >+ $mappings->{ $marc_map->index_name }{ $search_field->name }{staff_client} = $search_field->staff_client if defined $search_field->staff_client; > > push (@{ $mappings->{ $marc_map->index_name }{ $search_field->name }{mappings} }, > { >-- >2.17.1
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 25325
:
104004
|
104063
|
104376
|
104377
|
104451
|
104452
|
104482
|
104483