X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=223239febecc2dc2ed7821663ad8eafefb476b9f;hp=5a6a26f4c44344a4662e62c741b9590caf42f95c;hb=dbc40ad16aa82379d2884e106d79c7d83312667a;hpb=36d8976c55a2681d0057a0c200356a283e897b91 diff --git a/src/seshigh.c b/src/seshigh.c index 5a6a26f..223239f 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -896,6 +896,8 @@ static void srw_bend_search(association *assoc, rr.query->u.type_1 = 0; rr.extra_args = sr->extra_args; rr.extra_response_data = 0; + rr.present_number = srw_req->maximumRecords ? + *srw_req->maximumRecords : 0; if (srw_req->query_type == Z_SRW_query_type_cql) { @@ -2650,6 +2652,7 @@ static Z_APDU *process_searchRequest(association *assoc, request *reqb) bsrr->errstring = NULL; bsrr->search_info = NULL; bsrr->search_input = req->otherInfo; + bsrr->present_number = *req->mediumSetPresentNumber; if (assoc->server && assoc->server->cql_transform && req->query->which == Z_Query_type_104