X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=ee7f97fb3ae1a8fd832385adfbfe78a74bd8ce83;hb=567ab40a74611002aef26af8db8986d24b1c4bd5;hp=75e7cbc66abdd8eb42d5675747167d3f886acb2f;hpb=52b081f8851742ade8c349aa54b80a3998aee957;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 75e7cbc..ee7f97f 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.34 1996-05-09 07:26:49 quinn + * Revision 1.36 1996-06-10 08:53:47 quinn + * Added Summary + * + * Revision 1.35 1996/06/03 09:45:50 quinn + * Added display of OIDs in the GRS routine. + * + * Revision 1.34 1996/05/09 07:26:49 quinn * *** empty log message *** * * Revision 1.33 1996/05/09 07:25:22 quinn @@ -384,6 +390,21 @@ static void display_grs1(Z_GenericRecord *r, int level) printf("%s\n", t->content->u.string); else if (t->content->which == Z_ElementData_numeric) printf("%d\n", *t->content->u.numeric); + else if (t->content->which == Z_ElementData_oid) + { + int *ip = t->content->u.oid; + oident *oent; + + if ((oent = oid_getentbyoid(t->content->u.oid))) + printf("OID: %s\n", oent->desc); + else + { + printf("{"); + while (ip && *ip >= 0) + printf(" %d", *(ip++)); + printf(" }\n"); + } + } else if (t->content->which == Z_ElementData_noDataRequested) printf("[No data requested]\n"); else if (t->content->which == Z_ElementData_elementEmpty) @@ -957,6 +978,12 @@ int cmd_format(char *arg) recordsyntax = VAL_GRS1; return 1; } + else if (!strcmp(arg, "summary")) + { + printf("Preferred format is Summary\n"); + recordsyntax = VAL_SUMMARY; + return 1; + } else if (!strcmp(arg, "explain")) { printf("Preferred format is Explain\n");