Bug 30879: Allow biblionumber as sort option in Elasticsearch

Repeat previous tests with Elasticsearch engine
You will need to reindex and reset mappings to pickup the changes form the file

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-06-22 14:42:17 +00:00 committed by Tomas Cohen Arazi
parent 230bae0b02
commit c8c51867c4
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 7 additions and 6 deletions

View file

@ -700,6 +700,7 @@ sub _convert_sort_fields {
relevance => undef, # default
title => 'title',
pubdate => 'date-of-publication',
biblionumber => 'local-number',
);
my %sort_order_convert =
( qw( desc desc ), qw( dsc desc ), qw( asc asc ), qw( az asc ), qw( za desc ) );

View file

@ -768,14 +768,14 @@ authorities:
- facet: ''
marc_field: 001
marc_type: marc21
sort: ~
sort: 1
suggestible: ''
- facet: ''
marc_field: 001
marc_type: unimarc
sort: ~
sort: 1
suggestible: ''
type: string
type: number
personal-name:
label: personal-name
mappings:
@ -2158,14 +2158,14 @@ biblios:
- facet: ''
marc_field: 999c
marc_type: marc21
sort: 0
sort: 1
suggestible: ''
- facet: ''
marc_field: 001
marc_type: unimarc
sort: 0
sort: 1
suggestible: ''
type: string
type: number
location:
facet_order: 3
label: location