X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=1632254356bd31015ac24788751cb44e25447a1d;hp=c7e336aefa17c470f48e5b735c60916871cdc34d;hb=97e81740fd91d912d75ff85fefc61b1d19cbc611;hpb=7a41d7a92859be6ecc255e943e693d0a885c4229 diff --git a/client/client.c b/client/client.c index c7e336a..1632254 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.32 1996-03-15 11:05:33 adam + * 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 + * Small + * + * Revision 1.32 1996/03/15 11:05:33 adam * The user can set the preferred query type (prefix, ccl, ..) with the * querytype command. * @@ -378,6 +387,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) @@ -508,7 +532,7 @@ static void display_diagrec(Z_DiagRec *p) printf("Missing or unknown diagset\n"); printf(" [%d] %s", *r->condition, diagbib1_str(*r->condition)); if (r->addinfo && *r->addinfo) - printf(" -- %s\n", r->addinfo); + printf(" -- '%s'\n", r->addinfo); else printf("\n"); }