From 7aadaef6adfb255843c1202224b93f840b4db6a1 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Fri, 7 Mar 2025 16:25:39 +0100 Subject: [PATCH] Bug 39273: Ignore diagnostics messages received from BNF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TEST PLAN: 1 - Search on the BNF server (cf configuration hereafter) for title: "Les misérables" -> Notice the internal server error 2 - Apply patch 3 - Repeat the search -> Notice it works The patch simply ignores the diagnosis messages. There is no need to provide any feedback to the user. Configuration fro BNF server: Name : BNF-SRU-BIB Address : catalogue.bnf.fr Port : 80 Database : api/SRU user : password: --- C4/Breeding.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Breeding.pm b/C4/Breeding.pm index 538436d9..56840b45 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -300,6 +300,9 @@ sub _handle_one_result { my ( $zoomrec, $servhref, $seq, $bib, $xslh ) = @_; my $raw = $zoomrec->raw(); + if ( $raw =~ /^{servertype} eq 'sru' ) { $marcrecord = MARC::Record->new_from_xml( -- 2.30.2