]> git.koha-community.org Git - koha.git/commit
Bug 25273: (follow-up) Don't die on unknown authtype
authorNick Clemens <nick@bywatersolutions.com>
Mon, 24 Aug 2020 14:24:39 +0000 (14:24 +0000)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 20 Oct 2020 00:54:37 +0000 (13:54 +1300)
commitde25b00a179e7f627282f609094d71e00909c855
tree5f62f4bad7aab137335933a71f63f780a3b4ab00
parentc2be412adec1e6c142fa55024e2cbc613ef5152e
Bug 25273: (follow-up) Don't die on unknown authtype

We are guessing authtype code and inserting the heading built accorindg to C4::Heading

If we can't identify the auth type, we can format the heading. There is a record in the koha test
data that is missing the heading field so type cannot be idenfitied

This prevents us from dying n a record where we cannot identify the type.

Note: This code will also be triggered for custom authority types, higlighting
that they won't link because of hardcoded mappings in C4::Heading. We must tackle this
on a new bug

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5a87514b2e44d64807422b29f719b29b0c9d1ba4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 401133b5b167708c4942d46d0ed164a2ceefbdfa)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/SearchEngine/Elasticsearch.pm