X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-c.c;h=6b43ad6e59d162f64c23db843a6e2625e576ecea;hp=cc671a8ebd59e6310692dfabe538eec12658f933;hb=4c176312acdc3444c9afc820f76a393e64668e52;hpb=f4c095a042b1bcccb78136be87944e46412386aa diff --git a/src/zoom-c.c b/src/zoom-c.c index cc671a8..6b43ad6 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 2000-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.33 2004-12-13 14:21:56 heikki Exp $ + * $Id: zoom-c.c,v 1.35 2005-01-15 19:47:15 adam Exp $ */ /** * \file zoom-c.c @@ -1037,7 +1037,7 @@ static zoom_ret ZOOM_connection_send_init (ZOOM_connection c) ZOOM_options_get(c->options, "implementationName"), odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.33 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.35 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = odr_prepend(c->odr_out, @@ -1987,13 +1987,21 @@ static void handle_records (ZOOM_connection c, Z_Records *sr, if (present_phase && p->num_records == 0) { /* present response and we didn't get any records! */ - set_ZOOM_error(c, ZOOM_ERROR_DECODE, 0); + Z_NamePlusRecord *myrec = + zget_surrogateDiagRec(resultset->odr, 0, 14, 0); + record_cache_add(resultset, myrec, resultset->start); + yaz_log(YLOG_LOG, "pseudo record 1, at pos %d", + resultset->start); } } else if (present_phase) { /* present response and we didn't get any records! */ - set_ZOOM_error(c, ZOOM_ERROR_DECODE, 0); + Z_NamePlusRecord *myrec = + zget_surrogateDiagRec(resultset->odr, 0, 14, 0); + record_cache_add(resultset, myrec, resultset->start); + yaz_log(YLOG_LOG, "pseudo record 1, at pos %d", + resultset->start); } } }