projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Explain record syntax to the format command.
[yaz-moved-to-github.git]
/
client
/
client.c
diff --git
a/client/client.c
b/client/client.c
index
219f78c
..
9f24bd4
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
- * Revision 1.26 1995-12-12 14:11:00 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
* Minimal.
*
* Revision 1.25 1995/11/13 09:27:22 quinn
@@
-181,6
+187,8
@@
static void send_initRequest()
ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_2);
ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_3);
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);
req->idAuthentication = auth;
send_apdu(apdu);
@@
-886,6
+894,12
@@
int cmd_format(char *arg)
recordsyntax = VAL_GRS1;
return 1;
}
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");
else
{
printf("Specify one of {sutrs,usmarc,danmarc,grs1}.\n");