X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-sru.c;h=c6d11e7db9c7f52ea478ff1338473cc37b658a13;hb=31c5e5fa92f5980deac3c042b765e4148329cd1b;hp=0dc27453731f34d506c6adbde55bf3818a158bdd;hpb=540b8919836aede9f2fe7f7a20978fc290e8972c;p=yaz-moved-to-github.git diff --git a/src/zoom-sru.c b/src/zoom-sru.c index 0dc2745..c6d11e7 100644 --- a/src/zoom-sru.c +++ b/src/zoom-sru.c @@ -261,8 +261,9 @@ static zoom_ret handle_srw_response(ZOOM_connection c, syntax = c->tasks->u.search.syntax; elementSetName = c->tasks->u.search.elementSetName; - if (!c->tasks->u.search.recv_search_fired) - { + /* Required not for reporting client hit count multiple times into session */ + if (!c->tasks->u.search.recv_search_fired) { + yaz_log(YLOG_DEBUG, "posting ZOOM_EVENT_RECV_SEARCH"); event = ZOOM_Event_create(ZOOM_EVENT_RECV_SEARCH); ZOOM_connection_put_event(c, event); c->tasks->u.search.recv_search_fired = 1; @@ -391,6 +392,7 @@ static void handle_srw_scan_response(ZOOM_connection c, int ZOOM_handle_sru(ZOOM_connection c, Z_HTTP_Response *hres, zoom_ret *cret) { +#if YAZ_HAVE_XML2 int ret = 0; const char *addinfo = 0; @@ -445,6 +447,9 @@ int ZOOM_handle_sru(ZOOM_connection c, Z_HTTP_Response *hres, ret = -1; } return ret; +#else + return -1; +#endif } /*