From 407a291011ba2743e175f3d2a84d4c6837406f7c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 23 Aug 2007 12:24:38 +0000 Subject: [PATCH] For SRU sarchRetrieve responses option resultSetId is set for result set --- src/zoom-c.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 6ebcc33..742847b 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.141 2007-08-16 10:09:36 adam Exp $ + * $Id: zoom-c.c,v 1.142 2007-08-23 12:24:38 adam Exp $ */ /** * \file zoom-c.c @@ -1346,7 +1346,7 @@ static zoom_ret ZOOM_connection_send_init(ZOOM_connection c) odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.141 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.142 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = @@ -3821,6 +3821,9 @@ static void handle_srw_response(ZOOM_connection c, resultset->size = 0; + if (res->resultSetId) + ZOOM_resultset_option_set(resultset, "resultSetId", res->resultSetId); + yaz_log(log_details, "%p handle_srw_response got SRW response OK", c); if (res->numberOfRecords) -- 1.7.10.4