From ff9c21a4a93db3d49140602e6b8bdc062bde4153 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 8 Jun 2005 11:22:15 +0000 Subject: [PATCH] Describe new yaz-client commands wait_response and set_auto_wait. --- NEWS | 2 + doc/yaz-client-commands.xml | 94 ++++++++++++++++++++++++++++++++----------- 2 files changed, 73 insertions(+), 23 deletions(-) diff --git a/NEWS b/NEWS index 46a7281..0e68a28 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ Possible compatibility problems with earlier versions marked with '*'. +Describe new yaz-client commands wait_response and set_auto_wait. + --- 2.1.8 2005/06/07 Fixed bug in yaz_marc_decode_buf. By mistake the routine appended diff --git a/doc/yaz-client-commands.xml b/doc/yaz-client-commands.xml index 3238353..d96e56c 100644 --- a/doc/yaz-client-commands.xml +++ b/doc/yaz-client-commands.xml @@ -1,10 +1,10 @@ - + open zurl @@ -28,11 +28,12 @@ Quits YAZ client - - f query + + find query Sends a Search Request using the query - given. + given. By default the query is assumed to be PQF. See command + querytype. @@ -76,7 +77,7 @@ Scans database index for a term. The syntax resembles the syntax - for find. + for find. If you want to scan for the word water you could write @@ -157,7 +158,8 @@ Sets up a authentication string if a server requires authentication (v2 OpenStyle). The authentication string is first - sent to the server when the open command is + sent to the server when the + open command is issued and the Z39.50 Initialize Request is sent, so this command must be used before open in order to be effective. A common convention for the authopen string @@ -281,11 +283,12 @@ - + querytype type - Sets the query type as used by command find. + Sets the query type as used by command + find. The following is supported: prefix for Prefix Query Notation (Type-1 Query); @@ -364,7 +367,7 @@ - push_commande + push_command command @@ -383,8 +386,8 @@ Sets that APDU should be logged to file - filename. This command does the - thing as option -a. + filename. Another way to achieve + APDU log is by using command-line option -a. @@ -396,18 +399,42 @@ Specifies whether YAZ client automatically reconnect if target closes connection (Z39.50 only). + + flag must be either on or off. + + set_auto_wait + flag + + + Specifies whether YAZ client should wait for + response protocol packages after a request. + By default YAZ client waits (on) for response packages immediately + after a command (find, show) has been issued. If off + is used, YAZ client does not attempt to receive packages automatically. + These will have to be manually received when command + + wait_response + is used. + + + flag must be either + on or off. + + + + set_marcdump filename - Specifies that all retrieved records should be appended ot + Specifies that all retrieved records should be appended to file filename. This command does the thing as option -m. @@ -426,7 +453,7 @@ - + charset negotiationcharset [displaycharset] @@ -461,7 +488,8 @@ Since character set negotation takes effect in the Z39.50 Initialize Request you should issue this command before - command open is used. + command open + is used. @@ -481,7 +509,7 @@ Specifies character set for negotiation (Z39.50). The argument is the same as second argument for command - charset. + charset. @@ -492,8 +520,8 @@ Specifies character set for output (display). The - argument is the same as second argument for - command charset. + argument is the same as second argument for command + charset. @@ -509,7 +537,8 @@ If auto is given, YAZ will assume that MARC21/USMARC is using MARC8/UTF8 and ISO-8859-1 for all other MARC variants. The charset argument is the - same as third argument for charset command. + same as third argument for command + charset. @@ -587,15 +616,33 @@ - + + + wait_response + [ number] + + + This command makes YAZ client wait for a number of + response packages from target. If number is + omitted, 1 is assumed. + + This command is rarely used and is only useful if command + + set_auto_wait + is set to off. + + + + zversion ver This command sets Z39.50 version for negotiation. - Should be used before open. - By default, 3 (version 3) is used. + Should be used before + open. + By default 3 (version 3) is used. @@ -606,7 +653,8 @@ This command sets Z39.50 options for negotiation. - Should be used before open. + Should be used before + open. The following options are supported: -- 1.7.10.4