From 0fc114eee3f649abea88a62502211c595c2867b8 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 18 Dec 2013 14:44:53 -0500 Subject: [PATCH] Bug 11419: display Z39.50 search errors more completely When a z39.50 server isn't able to be searched successfully, the yellow error box came up empty. This patch fixes the problem. Test Plan: 1) Go to Administration/z39.50 servers 2) Create a fake z39.50 server with a made up address 3) Go to cataloging, search only that server 4) Note the empty yellow alert box 5) Apply this patch 6) Re-run the search, not the alert box has a message in it now Signed-off-by: Nora Blake Signed-off-by: Katrin Fischer Passes all tests and QA script. Works according to test plan. When one of the selected servers gives result no dialog box is shown before and after applying the patch. Signed-off-by: Galen Charlton --- C4/Breeding.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Breeding.pm b/C4/Breeding.pm index 8e01d412fd..69adcf42e0 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -349,7 +349,7 @@ sub Z3950Search { my ($error)= $oConnection[$k]->error_x(); #ignores errmsg, addinfo, diagset if ($error) { if ($error =~ m/^(10000|10007)$/ ) { - push(@errconn, { 'server' => $serverinfo[$k]->{host} } ); + push(@errconn, { server => $serverinfo[$k]->{host}, error => $error } ); } } else { -- 2.39.5