From 7463b7ac3cc81edb20eb1d4008d22019d6ef8c50 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 27 Nov 2019 11:26:45 +0000 Subject: [PATCH] Bug 24128: Add alias for biblionumber search To test: 1 - In staff or OPAC using ES, search for "biblionumber:3" or any existing biblionumber 2 - No results 3 - Apply patch, restart all the things 4 - Search again 5 - You go to the biblionumber Signed-off-by: Bob Bennhoff Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 588f67a26da3c649e6ef966004b76e0c46fa2431) Signed-off-by: Lucas Gass --- Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm index a556e4ec38..e744961df4 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -552,6 +552,7 @@ our %index_field_convert = ( 'mus' => 'rtype', 'lc-card' => 'lc-card-number', 'sn' => 'local-number', + 'biblionumber' => 'local-number', 'yr' => 'date-of-publication', 'pubdate' => 'date-of-publication', 'acqdate' => 'date-of-acquisition', -- 2.39.5