X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=d7a1bcc3cafee601bad65ea8f34ce5ec4e7961c7;hb=4b768398f592fe19364a3079d968da2f3a9e724f;hp=3ea046e12cea2b6b91c66fe9465df66b4c1d3a4d;hpb=2ede0bb278b22c8ce1cdd48e9a11a5924d433763;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 3ea046e..d7a1bcc 100644 --- a/client/client.c +++ b/client/client.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2006, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.320 2006-12-06 21:35:57 adam Exp $ + * $Id: client.c,v 1.323 2007-01-16 14:12:37 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -1633,7 +1633,25 @@ static int process_searchResponse(Z_SearchResponse *res) last_hit_count = *res->resultCount; if (setnumber >= 0) printf (", setno %d", setnumber); - printf ("\n"); + putchar('\n'); + if (res->resultSetStatus) + { + printf("Result Set Status: "); + switch(*res->resultSetStatus) + { + case Z_SearchResponse_subset: + printf("subset"); break; + case Z_SearchResponse_interim: + printf("interim"); break; + case Z_SearchResponse_none: + printf("none"); break; + case Z_SearchResponse_estimate: + printf("estimate"); break; + default: + printf("%d", *res->resultSetStatus); + } + putchar('\n'); + } display_searchResult (res->additionalSearchInfo); printf("records returned: %d\n", *res->numberOfRecordsReturned); @@ -2167,12 +2185,14 @@ static int cmd_update_common(const char *arg, int version) if (parse_cmd_doc(&arg, out, &rec_buf, &rec_len, 1) == 0) return 0; +#if YAZ_HAVE_XML2 if (protocol == PROTO_HTTP) return cmd_update_SRW(action_no, recid, rec_buf, rec_len); - else - return cmd_update_Z3950(version, action_no, recid, rec_buf, rec_len); +#endif + return cmd_update_Z3950(version, action_no, recid, rec_buf, rec_len); } +#if YAZ_HAVE_XML2 static int cmd_update_SRW(int action_no, const char *recid, char *rec_buf, int rec_len) { @@ -2209,6 +2229,7 @@ static int cmd_update_SRW(int action_no, const char *recid, return send_srw(srw); } } +#endif static int cmd_update_Z3950(int version, int action_no, const char *recid, char *rec_buf, int rec_len)