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 <nblake@masslibsystem.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> 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 <gmc@esilibrary.com> (cherry picked from commit0fc114eee3) Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com> (cherry picked from commit0c4e9a0154) Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
66b185db7a
commit
66ae2ee57d
|
|
@ -361,7 +361,7 @@ sub Z3950Search {
|
|||
my ($error, $errmsg, $addinfo, $diagset)= $oConnection[$k]->error_x();
|
||||
if ($error) {
|
||||
if ($error =~ m/^(10000|10007)$/ ) {
|
||||
push(@errconn, {'server' => $serverhost[$k]});
|
||||
push(@errconn, { server => $serverhost[$k], error => $error });
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue