X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=248115a43bf25352cda7b2488186d3f81424e99e;hb=0aa8e547996dc0adb27cc1e10c25c472585f63cb;hp=483b83805a264c888018e54f1e02680f3fcfc3b4;hpb=bb182c49a5a8b379b8a021eed572d070307333a9;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 483b838..248115a 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.40 1996-08-29 14:19:34 quinn + * Revision 1.42 1996-10-08 10:44:57 quinn + * Resolved conflicts. + * + * Revision 1.41 1996/10/07 15:29:03 quinn + * Work + * + * Revision 1.40 1996/08/29 14:19:34 quinn * Fixed conflict (CVS) * * Revision 1.39 1996/08/27 10:43:22 quinn @@ -485,7 +491,9 @@ static void display_record(Z_DatabaseRecord *p) r->which = type->what; } } - if (r->which == Z_External_octet && p->u.octet_aligned->len) + if (ent->value == VAL_SOIF) + printf("%.*s", r->u.octet_aligned->len, r->u.octet_aligned->buf); + else if (r->which == Z_External_octet && p->u.octet_aligned->len) marc_display ((char*)p->u.octet_aligned->buf, stdout); else if (ent->value == VAL_SUTRS) { @@ -1007,6 +1015,12 @@ int cmd_format(char *arg) recordsyntax = VAL_GRS1; return 1; } + else if (!strcmp(arg, "soif")) + { + printf("Preferred format is SOIF\n"); + recordsyntax = VAL_SOIF; + return 1; + } else if (!strcmp(arg, "summary")) { printf("Preferred format is Summary\n");