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:
dcb3c31
)
zoom: Do not include ZOOM C's fake surrogate diag recs MP-547
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 21 May 2014 11:56:43 +0000
(13:56 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 21 May 2014 11:56:43 +0000
(13:56 +0200)
src/filter_zoom.cpp
patch
|
blob
|
history
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
e2145a5
..
db3719a
100644
(file)
--- a/
src/filter_zoom.cpp
+++ b/
src/filter_zoom.cpp
@@
-1732,8
+1732,19
@@
Z_Records *yf::Zoom::Frontend::get_records(mp::Package &package,
if (!*error)
{
for (i = 0; i < number_to_present; i++)
+ {
if (!recs[i])
break;
+
+ const char *addinfo;
+ int sur_error = ZOOM_record_error(recs[i], 0 /* msg */,
+ &addinfo, 0 /* diagset */);
+ if (sur_error ==
+ YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS && addinfo &&
+ !strcmp(addinfo,
+ "ZOOM C generated. Present phase and no records"))
+ break;
+ }
}
if (i > 0)
{ // only return records if no error and at least one record