X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=a786eedbe626cd6517575e6e25af3968296152e1;hb=2c5d2e0851ef4adf500a62f0bd179c775f13b7be;hp=1ff40dad3c3df31e5dde30042f7bc47581fa6fd8;hpb=0d191bf4a0a8f0196e0ba1c42f0070255c04c1b4;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 1ff40da..a786eed 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.64 2005-11-08 15:08:02 adam Exp $ + * $Id: seshigh.c,v 1.66 2006-01-20 10:34:51 adam Exp $ */ /** * \file seshigh.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -1476,8 +1477,8 @@ static void process_http_request(association *assoc, request *req) } else if (sr->which == Z_SRW_update_request) { - yaz_log(YLOG_DEBUG, "handling SRW UpdateRequest"); Z_SRW_PDU *res = yaz_srw_get(o, Z_SRW_update_response); + yaz_log(YLOG_DEBUG, "handling SRW UpdateRequest"); if (num_diagnostic) { res->u.update_response->diagnostics = diagnostic; @@ -1988,7 +1989,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.64 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.66 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -2437,7 +2438,7 @@ static Z_APDU *response_searchRequest(association *assoc, request *reqb, wrbuf_printf(wr, "OK %d", bsrt->hits); wrbuf_printf(wr, " %s 1+%d ", req->resultSetName, returnedrecs); - wrbuf_put_zquery(wr, req->query); + yaz_query_to_wrbuf(wr, req->query); yaz_log(log_request, "Search %s", wrbuf_buf(wr)); wrbuf_free(wr, 1); @@ -2741,9 +2742,8 @@ static Z_APDU *process_scanRequest(association *assoc, request *reqb, int *fd) *req->preferredPositionInResponse : 1), *req->numberOfTermsRequested, (res->stepSize ? *res->stepSize : 0)); - wrbuf_scan_term(wr, req->termListAndStartPoint, - bsrr->attributeset); - + yaz_scan_to_wrbuf(wr, req->termListAndStartPoint, + bsrr->attributeset); yaz_log(log_request, "Scan %s", wrbuf_buf(wr) ); wrbuf_free(wr, 1); }