Lines 288-293
sub raw_elasticsearch_mappings {
Link Here
|
288 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; |
288 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; |
289 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{mandatory} = $search_field->mandatory; |
289 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{mandatory} = $search_field->mandatory; |
290 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{facet_order} = $search_field->facet_order if defined $search_field->facet_order; |
290 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{facet_order} = $search_field->facet_order if defined $search_field->facet_order; |
|
|
291 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{authorised_value_category} = |
292 |
$search_field->authorised_value_category |
293 |
if defined $search_field->authorised_value_category; |
291 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight if defined $search_field->weight; |
294 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight if defined $search_field->weight; |
292 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{opac} = $search_field->opac if defined $search_field->opac; |
295 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{opac} = $search_field->opac if defined $search_field->opac; |
293 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{staff_client} = $search_field->staff_client if defined $search_field->staff_client; |
296 |
$mappings->{ $marc_map->index_name }{ $search_field->name }{staff_client} = $search_field->staff_client if defined $search_field->staff_client; |
Lines 368-374
sub reset_elasticsearch_mappings {
Link Here
|
368 |
while ( my ( $index_name, $fields ) = each %$indexes ) { |
371 |
while ( my ( $index_name, $fields ) = each %$indexes ) { |
369 |
while ( my ( $field_name, $data ) = each %$fields ) { |
372 |
while ( my ( $field_name, $data ) = each %$fields ) { |
370 |
|
373 |
|
371 |
my %sf_params = map { $_ => $data->{$_} } grep { exists $data->{$_} } qw/ type label weight staff_client opac facet_order mandatory/; |
374 |
my %sf_params = map { $_ => $data->{$_} } grep { exists $data->{$_} } qw/ type label weight staff_client opac facet_order authorised_value_category mandatory/; |
372 |
|
375 |
|
373 |
# Set default values |
376 |
# Set default values |
374 |
$sf_params{staff_client} //= 1; |
377 |
$sf_params{staff_client} //= 1; |
375 |
- |
|
|