projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de623c
)
zoom: throw diagnostic for records for some udb
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 4 Aug 2011 08:57:41 +0000
(10:57 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 4 Aug 2011 08:57:41 +0000
(10:57 +0200)
src/filter_zoom.cpp
patch
|
blob
|
history
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
e8863ff
..
3aae72c
100644
(file)
--- 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;
}
}
}