Bugzilla – Attachment 179083 Details for
Bug 39273
Search does not handle the diagnosis messages properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39273: Ignore diagnostics messages received from BNF
Bug-39273-Ignore-diagnostics-messages-received-fro.patch (text/plain), 1.25 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-03-07 15:32:57 UTC
(
hide
)
Description:
Bug 39273: Ignore diagnostics messages received from BNF
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-03-07 15:32:57 UTC
Size:
1.25 KB
patch
obsolete
>From 7aadaef6adfb255843c1202224b93f840b4db6a1 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >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 : <empty> >password: <empty> >--- > 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 =~ /^<srw:diagnostics/ ) { >+ return; >+ } > my $marcrecord; > if ( $servhref->{servertype} eq 'sru' ) { > $marcrecord = MARC::Record->new_from_xml( >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39273
: 179083