65646084e67f2c10fa80e9b896f0cdebd8b6ff2d
[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.36 2001-10-23 21:00:19 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.50V3, 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 <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  - CODECS for the Z39.50 protocol. This module does the same job
94         as the old 'asn' module except that the source files are
95         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, 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 zoom    - An implementation of Mike Taylors Z39.50 Object Oriented
110         Model : ZOOM. If you'd like to build Z39.50 client applications
111         in C this may be good start. You'll find example programs in 
112         this directory too.
113
114 server  - This is the implementation of the server frontend. It
115         provides event-handling and server managament functions,
116         and calls the backend primitives (best documentation of these
117         is in the file include/yaz/backend.h).
118
119 client  - A demonstration client for testing the protocol. It's bug'n
120         ugly. But, it supports many features.
121
122 ztest   - A demonstration server that implements a backend.
123
124 include/yaz - The various header files.
125
126 lib     - The libraries. Primarily libyaz.a. The makefile gathers the
127           libraries from previous modules into libyaz.a.
128
129 To get more information or assistance, send mail to yaz-help@indexdata.dk.
130
131 We maintain a mailing-list for the purpose of announcing new versions of
132 the software, bug-reports, discussion etc. You can sign up by sending
133 mail to yaz-request@indexdata.dk and include the following command
134 command in your email:
135     subscribe yaz-l
136