Browse Source

Bug 19482: (follow-up) Fix select and adjust export of new field

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Nick Clemens 1 year ago
committed by Jonathan Druart
parent
commit
52be44f406
  1. 1
      Koha/SearchEngine/Elasticsearch.pm
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt

1
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;

2
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>
@ -242,7 +243,6 @@ a.add, a.delete {
<option value="stdno">Std. Number</option>
[% END %]
</select>
[% END %]
</td>
<td>
<select name="search_field_staff_client">

Loading…
Cancel
Save