X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=1bff1d4a2ed93f7e7e22c419c30fa9338ec3c318;hp=4954a92f4b84c7a76108e86af574996be62ca9dd;hb=131f137354647cefe2e3494bdb946d77b8c2e959;hpb=1d20ff81983715581b6a2cbed74878dd40895985 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 4954a92..1bff1d4 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -173,7 +173,7 @@ static void cmd_close(ZOOM_connection *c, ZOOM_resultset *r, static void display_records(ZOOM_connection c, ZOOM_resultset r, - int start, int count) + int start, int count, const char *type) { int i; for (i = 0; i= 0) ZOOM_options_set(options, "start", start_str); - if (next_token_copy(args, count_str, sizeof(count_str)) >= 0) - ZOOM_options_set(options, "count", count_str); + if (next_token_copy(args, count_str, sizeof(count_str)) <= 0) + strcpy(count_str, "1"); + ZOOM_options_set(options, "count", count_str); + + if (next_token_copy(args, render_str, sizeof(render_str)) >= 0) + type = render_str; for (i = 0; i