Bugzilla – Attachment 136526 Details for
Bug 30879
Add option to sort components by biblionumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30879: Allow biblionumber as sort option in Elasticsearch
Bug-30879-Allow-biblionumber-as-sort-option-in-Ela.patch (text/plain), 2.19 KB, created by
Martin Renvoize (ashimema)
on 2022-06-24 15:35:47 UTC
(
hide
)
Description:
Bug 30879: Allow biblionumber as sort option in Elasticsearch
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-06-24 15:35:47 UTC
Size:
2.19 KB
patch
obsolete
>From 1ded6fb2f9a61dc59dc9f0233575afcb0445d38e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 22 Jun 2022 14:42:17 +0000 >Subject: [PATCH] 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> >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + > admin/searchengine/elasticsearch/mappings.yaml | 12 ++++++------ > 2 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index 7250ea6048..9b06a3e77a 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -694,6 +694,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 ) ); >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index 28429878f9..5efeccef21 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -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 >-- >2.20.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 30879
:
136255
|
136425
|
136426
|
136427
|
136428
|
136525
|
136526
|
136527
|
136528
|
136545
|
136546
|
136547
|
136548