X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=client%2Fclient.c;h=9f24bd4c38ee4c3daa6ccd6a0bb3d1793aa4509c;hb=53c17d9dc2f7c8355bbac800ed02862eb5780d4f;hp=4ecfff2cfde6079272db946d25330324dca35bee;hpb=a309d6ece06c0ab732d98c59f2718efaebd01ec6;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 4ecfff2..9f24bd4 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.25 1995-11-13 09:27:22 quinn + * Revision 1.28 1995-12-14 11:09:31 quinn + * Added Explain record syntax to the format command. + * + * Revision 1.27 1995/12/12 16:37:02 quinn + * Added destroy element to data1_node. + * + * Revision 1.26 1995/12/12 14:11:00 quinn + * Minimal. + * + * Revision 1.25 1995/11/13 09:27:22 quinn * Fiddling with the variant stuff. * * Revision 1.24 1995/10/30 12:41:13 quinn @@ -178,6 +187,8 @@ static void send_initRequest() ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_2); ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_3); + *req->maximumRecordSize = 1024*1024; + req->idAuthentication = auth; send_apdu(apdu); @@ -883,6 +894,12 @@ int cmd_format(char *arg) recordsyntax = VAL_GRS1; return 1; } + else if (!strcmp(arg, "explain")) + { + printf("Preferred format is Explain\n"); + recordsyntax = VAL_EXPLAIN; + return 1; + } else { printf("Specify one of {sutrs,usmarc,danmarc,grs1}.\n"); @@ -1088,7 +1105,7 @@ static int client(void) apdu->which); exit(1); } - printf("Z> "); + printf(C_PROMPT); fflush(stdout); } while (cs_more(conn));