From 588f67a26da3c649e6ef966004b76e0c46fa2431 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 --- 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 4a7cede380..05804e3640 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -632,6 +632,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