Displayng diags in EsResponse, even if they should not be there...
[yaz-moved-to-github.git] / README
1
2 Copyright (C) 1995-2001, Index Data ApS.
3 See the file LICENSE for details.
4
5 Compilation and installation instructions for YAZ 
6   $Id: README,v 1.35 2001-04-06 12:26:45 adam Exp $
7
8 The primary output of the source here is the lib/libyaz.a library,
9 which contains support functions for implementing the server or client
10 role of Z39.50.
11
12 Windows programmers: refer to the file windows.txt which describes how
13 to build the software using Microsoft Visual C++.
14
15 On Unix, GNU configure is used to configure YAZ and generate Makefiles.
16 Type "./configure", then "make" to build YAZ.
17
18 Note: If you are using the CVS snapshot of YAZ you must have autoconf,
19 automake and libtool installed. Before running configure, create
20 support files by running buildconf.sh in the top-level directory of YAZ.  
21
22 Two test-programs of interest are generated when you type 'make' at the
23 top level: ztest/yaz-ztest and client/yaz-client. Ztest is a dummy
24 database server which returns canned responses to all queries. It's good
25 for verifying that the protocol works ok, and ztest.c shows an
26 implementation of a 'backend' interface.
27
28 yaz-client is a linemode Z39.50 client. It supports a fair amount of the
29 functionality of Z39.50v2/SR, but some things you need to enable or
30 disable by recompilation. Its primary purpose is to excersise the
31 package, and verify that the protocol works OK. It can be started by
32 typing
33
34   yaz-client tcp:<hostname>:<port>[/<database>]
35
36 at the UNIX prompt, to connect to a Z39.50 server.
37
38 Use '?' to get a list of the available commands.
39
40 The current query language for the find command is a bit awkward, but
41 functional:
42
43  query     ::= ['@attrset' <attribute-set>] rpn
44  rpn       ::= complex | simple | attr rpn
45  complex   ::= operator rpn rpn
46  operator  ::= '@and' | '@or' | '@not' | '@prox' proximity
47  simple    ::= term | set.
48  term      ::= <word> | '"' <term> ... '"'.
49  set       ::= '@set' <setname>.
50  attr      ::= '@attr' [<attribute-set>] <number> '=' <number>.
51  proximity ::= exclusion distance ordered relation which unit
52  exclusion ::= '1' | '0' | 'void'
53  distance  ::= <number>
54  ordered   ::= '1' | '0'
55  relation  ::= <number>
56  which     ::= 'known' | 'private'
57  unit      ::= <number>
58
59 Eg.:
60
61  Andersen
62
63  "Hans Andersen"
64
65  @and @attr 1=1 andersen @attr 1=4 @attr 4=2 duckling
66
67  @attrset Bib-1 @and @attr GILS 2=2008 Washington @attr 1=21 weather
68
69 The sort command takes a sequence of sort specifications. A sort
70 specification holds a field (sort criteria) and is followed by flags.
71 If the sort critieria includes = it is assumed that the sort SortKey
72 is of type sortAttributes using Bib-1. The integer before the = is
73 the attribute type and the integer following the = is the attribute
74 value. If no = is in the SortKey it is treated as a sortfield-type
75 of type InternationalString. Flags observed are s (sort case
76 sensitive), i (sort case insensitive), < (ascending), > (descending).
77 Eg.:
78    1=4   i<                  (use is title, insensitive, ascending).
79    Title s>                  (String Title, sensitive, descending).
80
81 The directories:
82
83 doc     - Documentation.
84
85 util    - Various little utility functions. Logging, memory debugging,
86         primitive ISO 2709 presentation for the yaz-client, etc. You'll
87         find the ASN.1 Compiler for YAZ here as well (yc.tcl).
88
89 odr     - Open Data Representation. This module implements the BER
90         encoding rules. Documentation is found in the files odr-use.man
91         and odr.txt.
92
93 z39.50  - This module implements the Z39.50 protocol. This module
94         does the same job as the old 'asn' module except that the source
95         files are auto-generated using an YAZ' ASN.1 Compiler (yaz-comp).
96
97 zutil   - This module implements a collection of Z39.50 utilities, such
98         as query parsing, EXTERNAL handling, etc.
99
100 ill     - This module implements the ISO ILL protocol.
101
102 comstack - This module implements the transport transparency
103         stack (COMSTACK). The comstack implements a generic interface
104         for exchanging BER-encoded records over a network. It supports
105         the 'American' mode of exchanging the records straight over
106         TCP/IP, and uses Peter Furniss' XTIMOSI package over RFC1006.
107         Look for documentation in the file comstack.man.
108
109 rfc1006 - Xtimosi requires an implementation of the OSI transport
110         layer with an XTI-based API. Some systems (HP and DEC,
111         notably) provide this. For others, we provide an
112         implementation of the RFC1006 protocol (which is what
113         ISODE-based implementations often use). This module is not
114         needed if you don't use xtimosi, and it's not included in the
115         libyaz.a library.
116
117 server  - This is the implementation of the server frontend. It
118         provides event-handling and server managament functions,
119         and calls the backend primitives (best documentation of these
120         is in the file include/yaz/backend.h).
121
122 client  - A demonstration client. If we come upon a good design for a
123         higher level client API, that will live here.
124
125 ztest   - A demonstration server that implements a backend.
126
127 include/yaz - The various header files.
128
129 lib     - The libraries. Primarily libyaz.a. The makefile gathers the
130           libraries from previous modules into libyaz.a.
131
132 asn     - Obsolete - replaced by the codecs in directory z39.50.
133         This module implements the Z39.50 protocol and is only provided
134         for backwareds compatibility. 
135
136 To get more information or assistance, send mail to yaz-help@indexdata.dk.
137
138 We maintain a mailing-list for the purpose of announcing new versions of
139 the software, bug-reports, discussion etc. You can sign up by sending
140 mail to yaz-request@indexdata.dk and include the following command
141 command in your email:
142     subscribe yaz-l
143