From cdb16de21076d813934c494cd941f83b381182c4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 20 Apr 2012 10:54:41 +0200 Subject: [PATCH] zoom: Init rejected wo diagnostics maps to Bib-1:1014 Bib-1 1014, "Init/AC: Authentication System error", seems pretty generic. We don't know why the init would fail; IP, user, block IP, etc. sru_z3950 filter maps this to SRU diagnostic 3: "Authentication error". --- src/filter_zoom.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 34b3084..b27ce0b 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -301,6 +301,13 @@ void yf::Zoom::Backend::get_zoom_error(int *error, char **addinfo, *error = yaz_diag_srw_to_bib1(error0); else if (!strcmp(dset, "Bib-1")) *error = error0; + else if (!strcmp(dset, "ZOOM")) + { + if (error0 == ZOOM_ERROR_INIT) + *error = YAZ_BIB1_INIT_AC_AUTHENTICATION_SYSTEM_ERROR; + else + *error = YAZ_BIB1_TEMPORARY_SYSTEM_ERROR; + } else *error = YAZ_BIB1_TEMPORARY_SYSTEM_ERROR; -- 1.7.10.4