]> git.koha-community.org Git - koha.git/commit
Bug 33406: Handle ES search errors for authorities
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 11 May 2023 10:38:53 +0000 (12:38 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 18 Sep 2023 08:49:50 +0000 (22:49 -1000)
commitb4187cf2abb7007d528585f59b723c10dc3b4480
treeb522acb4a6e3526f72591e5545823e49e2706ff1
parentf36647c32a7224146ff2a8420b4c3243562f094c
Bug 33406: Handle ES search errors for authorities

We are dealing ok with ES exceptions for biblio records search,
catching them and raising them to the end user. But we don't for
authorities, where we explode with an ugly 500.

Test plan:
Search for "(term_1*) AND (-) AND (term_2*)" in the authority search and
notice that you don't get a 500 but an error instead saying that you
should try again

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 09b29d06da5fac2bd1315d849f1b9bf924576700)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
authorities/authorities-home.pl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt