]> git.koha-community.org Git - koha.git/commit
Bug 26528: Z39.50/SRU ignore invalid replies
authorDidier Gautheron <didier.gautheron@biblibre.com>
Thu, 24 Sep 2020 08:13:08 +0000 (10:13 +0200)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 25 Apr 2021 16:48:32 +0000 (16:48 +0000)
commitec140944be7e23f7eece19d83911b45dde9d85a5
tree47652ddadd89d8e2bfeb899b94f3825f05da0581
parenta363413a4e49cf80136a806fac424a7c8e9ebe3a
Bug 26528: Z39.50/SRU ignore invalid replies

When searching for authorities if an authorities server reply has invalid records
none are displayed.

At least french BNF SRU server doesn't fully follow norm and can return an error
confusing Koha protocol handler which then returns an empty MARC record.

This patch silently removed bogus records.

To Test:
1- Add BNF SRU server
2- Go to authorities page
3- Add an authority
4- Search for keyword(any) droits de l'homme
5- No result (Internal Server Error)
6- Apply patch
7- restart starman
8- redo 4
9- Many records are displayed

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d8f34430d17fd70e65318532c27dceed184eb7bc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit cefb8bcf0c58ca31f48b45a693c831a1bf28d0bf)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/Breeding.pm