From 03a9487db98a9e9cdf41f22a0cdae3fcaae8fc74 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Aug 2011 10:57:41 +0200 Subject: [PATCH] zoom: throw diagnostic for records for some udb --- src/filter_zoom.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index e8863ff..3aae72c 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -661,8 +661,17 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( if (ptr->type == XML_ELEMENT_NODE && !strcmp((const char *) ptr->name, "record")) { + if (sptr) + { + *error = YAZ_BIB1_UNSPECIFIED_ERROR; + *addinfo = (char*) odr_malloc(odr, 40 + database.length()), + sprintf(*addinfo, "multiple records for udb=%s", + database.c_str()); + xmlFreeDoc(doc); + BackendPtr b; + return b; + } sptr = m_p->parse_torus_record(ptr); - break; } } } -- 1.7.10.4