yaz-moved-to-github.git
8 years agoReformat
Adam Dickmeiss [Wed, 28 Sep 2011 09:26:40 +0000 (11:26 +0200)]
Reformat

8 years agoSlightly different format in generated C code
Adam Dickmeiss [Wed, 28 Sep 2011 09:25:31 +0000 (11:25 +0200)]
Slightly different format in generated C code

Avoid space between term and ( except for operators.

8 years agotest nmem_strsplit_escape2
Adam Dickmeiss [Wed, 28 Sep 2011 08:41:35 +0000 (10:41 +0200)]
test nmem_strsplit_escape2

8 years agoNew utility: nmem_strsplit_escape2
Adam Dickmeiss [Tue, 27 Sep 2011 14:09:46 +0000 (16:09 +0200)]
New utility: nmem_strsplit_escape2

8 years agoVersion 4.2.16 v4.2.16
Adam Dickmeiss [Thu, 22 Sep 2011 12:49:38 +0000 (14:49 +0200)]
Version 4.2.16

8 years agoAnother fix for nmem_strsplit_escape
Adam Dickmeiss [Thu, 22 Sep 2011 12:43:22 +0000 (14:43 +0200)]
Another fix for nmem_strsplit_escape

Double-escape was not encoded to escape. Test case in place.

8 years agoFix nmem_strsplit_escape subsitutes escape char away
Adam Dickmeiss [Thu, 22 Sep 2011 12:30:10 +0000 (14:30 +0200)]
Fix nmem_strsplit_escape subsitutes escape char away

8 years agoYAZ options: special -- ends options
Adam Dickmeiss [Wed, 21 Sep 2011 12:34:28 +0000 (14:34 +0200)]
YAZ options: special -- ends options

Add test of YAZ options

8 years agozoomsh: option -e for getting zoomsh to set EXIT code
Adam Dickmeiss [Wed, 21 Sep 2011 12:12:26 +0000 (14:12 +0200)]
zoomsh: option -e for getting zoomsh to set EXIT code

depending on success/failure.

8 years agoRefactor zoomsh to use YAZ options
Adam Dickmeiss [Wed, 21 Sep 2011 11:28:15 +0000 (13:28 +0200)]
Refactor zoomsh to use YAZ options

8 years agoCCL: fix syntax error
Adam Dickmeiss [Tue, 20 Sep 2011 11:13:14 +0000 (13:13 +0200)]
CCL: fix syntax error

8 years agoCCL test: check for white-space preserve
Adam Dickmeiss [Tue, 20 Sep 2011 10:23:35 +0000 (12:23 +0200)]
CCL test: check for white-space preserve

8 years agoCCL: use strxcat rather than strlen+memcpy
Adam Dickmeiss [Tue, 20 Sep 2011 10:23:24 +0000 (12:23 +0200)]
CCL: use strxcat rather than strlen+memcpy

8 years agoReformat
Adam Dickmeiss [Tue, 20 Sep 2011 09:21:19 +0000 (11:21 +0200)]
Reformat

8 years agoCCL test: check for terms more special chars
Adam Dickmeiss [Tue, 20 Sep 2011 09:19:42 +0000 (11:19 +0200)]
CCL test: check for terms more special chars

8 years agoCQL/CCL to RPN. Checks for leading @
Adam Dickmeiss [Tue, 20 Sep 2011 09:13:52 +0000 (11:13 +0200)]
CQL/CCL to RPN. Checks for leading @

Special case, since @ precedes PQF operators.

8 years agoVersion 4.2.15 v4.2.15
Adam Dickmeiss [Fri, 16 Sep 2011 08:59:23 +0000 (10:59 +0200)]
Version 4.2.15

8 years agoComments on return values
Adam Dickmeiss [Fri, 16 Sep 2011 08:58:09 +0000 (10:58 +0200)]
Comments on return values

8 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Thu, 8 Sep 2011 06:46:01 +0000 (08:46 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

8 years agoyaz_filepath_resolve: path search for abs fname
Adam Dickmeiss [Thu, 8 Sep 2011 06:43:31 +0000 (08:43 +0200)]
yaz_filepath_resolve: path search for abs fname

If fname is absolute, the path is not searched.

8 years agoFix conv_xslt() error-reporting when stylesheet is not found.
Mike Taylor [Wed, 7 Sep 2011 16:46:01 +0000 (17:46 +0100)]
Fix conv_xslt() error-reporting when stylesheet is not found.
(The value of fullpath is meaningless in this situation.)

8 years agoVersion 4.2.14 v4.2.14
Adam Dickmeiss [Wed, 7 Sep 2011 10:22:03 +0000 (12:22 +0200)]
Version 4.2.14

8 years agoCQL node: un-init memory
Adam Dickmeiss [Wed, 7 Sep 2011 09:00:02 +0000 (11:00 +0200)]
CQL node: un-init memory

8 years agoNew function yaz_srw_sortkeys_to_sort_spec
Adam Dickmeiss [Tue, 6 Sep 2011 18:54:04 +0000 (20:54 +0200)]
New function yaz_srw_sortkeys_to_sort_spec

8 years agoSRU 1.1 sorting for ZOOM_query_sortby2
Adam Dickmeiss [Tue, 6 Sep 2011 14:26:59 +0000 (16:26 +0200)]
SRU 1.1 sorting for ZOOM_query_sortby2

8 years agoNew ZOOM utility ZOOM_query_sortby2
Adam Dickmeiss [Tue, 6 Sep 2011 11:14:44 +0000 (13:14 +0200)]
New ZOOM utility ZOOM_query_sortby2

That takes a strategy parameter: one of "z3950", "type7", "cql", "sru11"
or "embed". The "embed" chooses type-7 or CQL sortby depending on whether
Type-1 or CQL is actually sent to the target. "sru11" not implemented
yet.

8 years agoNew functions yaz_sort_spec_to_{cql,type7}
Adam Dickmeiss [Tue, 6 Sep 2011 11:11:30 +0000 (13:11 +0200)]
New functions yaz_sort_spec_to_{cql,type7}

These two new functions convert a Z39.50 SortKeySpecList to CQL
SORTBY and Type-1/RPN with type-7 sorting. Tests in test_sortspec.c.

8 years agorpn2solr supports Z39.58 truncation (104)
Adam Dickmeiss [Mon, 5 Sep 2011 08:34:14 +0000 (10:34 +0200)]
rpn2solr supports Z39.58 truncation (104)

Thus, CCL truncation mode t=z will make it possible to use both
single-character mask (#) and wildcard (?) in CCL . Throw diagnostic
for left truncation because that is not supported by SOLR.

8 years agoVersion 4.2.13 v4.2.13
Adam Dickmeiss [Thu, 1 Sep 2011 13:01:12 +0000 (15:01 +0200)]
Version 4.2.13

8 years agoNotes on changes
Adam Dickmeiss [Thu, 1 Sep 2011 12:59:40 +0000 (14:59 +0200)]
Notes on changes

8 years agoUpdate m4 for improved ICU check fixes
Adam Dickmeiss [Thu, 1 Sep 2011 12:47:46 +0000 (14:47 +0200)]
Update m4 for improved ICU check fixes

8 years agoyaz-client: allow scanpos of "none"
Adam Dickmeiss [Thu, 1 Sep 2011 12:46:58 +0000 (14:46 +0200)]
yaz-client: allow scanpos of "none"

For special value scanpos "none", yaz-client omits preferred position
in response for scan.

8 years agocql2pqf: refactor truncation handling and fix Z39.58 mode
Adam Dickmeiss [Tue, 30 Aug 2011 10:26:29 +0000 (12:26 +0200)]
cql2pqf: refactor truncation handling and fix Z39.58 mode

Refactor the CQL to PQF term code in cqltransform.c. Characters that
don't need escaping aren't and characters that do need escaping are.
For example CQL query a#a? must be handled as a Z39.58 mode query
because the trailing ? (single-character mask in CQL). But since the
generated term includes #, it must be escaped and survive the PQF parse,
thus the result is "\\#a#" (was "a#a# before). Also the CQL term a*3 now
produces "a?\\3" rather than "a?3" . This is becauase a?n has special
meaning in Z39.58. Characters that do need escaping are the PQF specials
" and \\. Rest are preseved and \-sequence in CQL are otherwise removed.

8 years agoCQL/CCL/PQF conversion fixes. CCL support for Z39.58 trunc
Adam Dickmeiss [Mon, 29 Aug 2011 13:57:05 +0000 (15:57 +0200)]
CQL/CCL/PQF conversion fixes. CCL support for Z39.58 trunc

Lots of fixes for the conversions from CQL to CCL; CCL to RPN;
RPN to CQL. yaz_encode_pqf_term's term parameter properly
escaped into PQF term. CCL truncation configuration t=z
enables Z39.58 truncation which is in fact CCL truncation, but there's
more to it than one might think anyway. The RPN to CCL conversion
handles Z39.58 truncation as well (5=104).

8 years agocql2ccl: term code for all/any sequences as well
Adam Dickmeiss [Mon, 29 Aug 2011 11:04:57 +0000 (13:04 +0200)]
cql2ccl: term code for all/any sequences as well

8 years agocql2ccl: fix handling of \\
Adam Dickmeiss [Mon, 29 Aug 2011 10:33:30 +0000 (12:33 +0200)]
cql2ccl: fix handling of \\

8 years agoAdd test of cql_to_ccl
Adam Dickmeiss [Mon, 29 Aug 2011 10:24:08 +0000 (12:24 +0200)]
Add test of cql_to_ccl

8 years agoTrunc 104 is Z39.58
Adam Dickmeiss [Mon, 29 Aug 2011 10:21:59 +0000 (12:21 +0200)]
Trunc 104 is Z39.58

8 years agocql2ccl: handle CQL \-sequences differently
Adam Dickmeiss [Mon, 29 Aug 2011 10:06:18 +0000 (12:06 +0200)]
cql2ccl: handle CQL \-sequences differently

For most CQL \-sequences do not produce \-sequence in resulting
CCL term. Only \" and \\ are special

8 years agobin-1 ref: mention Index Data's extensions
Adam Dickmeiss [Mon, 29 Aug 2011 08:29:22 +0000 (10:29 +0200)]
bin-1 ref: mention Index Data's extensions

8 years agoccl2rpn: more characters to escape (regexp-1).
Adam Dickmeiss [Sat, 27 Aug 2011 22:09:45 +0000 (00:09 +0200)]
ccl2rpn: more characters to escape (regexp-1).

8 years agorpn2cql: handle \\ sequence
Adam Dickmeiss [Sat, 27 Aug 2011 22:09:38 +0000 (00:09 +0200)]
rpn2cql: handle \\ sequence

8 years agoPQF parsing: handle \\\0 sequence
Adam Dickmeiss [Sat, 27 Aug 2011 22:07:48 +0000 (00:07 +0200)]
PQF parsing: handle \\\0 sequence

A truncated PQF term, backslash as last character, would resolve in
read one byte beyond end of string.

8 years agoVersion 4.2.12 v4.2.12
Adam Dickmeiss [Sat, 27 Aug 2011 14:03:18 +0000 (16:03 +0200)]
Version 4.2.12

8 years agocql2ccl: quote term characters, except operators
Adam Dickmeiss [Sat, 27 Aug 2011 13:38:59 +0000 (15:38 +0200)]
cql2ccl: quote term characters, except operators

Fixes #4584.

8 years agoVersion 4.2.11 v4.2.11
Adam Dickmeiss [Thu, 25 Aug 2011 12:40:02 +0000 (14:40 +0200)]
Version 4.2.11

8 years agoChanges
Adam Dickmeiss [Thu, 25 Aug 2011 12:36:14 +0000 (14:36 +0200)]
Changes

8 years agoccl2rpn: Conversion to regexp-1 terms (trunc=102).
Adam Dickmeiss [Thu, 25 Aug 2011 12:06:40 +0000 (14:06 +0200)]
ccl2rpn: Conversion to regexp-1 terms (trunc=102).

For mode t=x, the CCL parser will map both # and ? to their regular
expression equivalents (. and .*).

8 years agorpn2cql: deal with truncation=102 (regexp-1)
Adam Dickmeiss [Thu, 25 Aug 2011 12:05:41 +0000 (14:05 +0200)]
rpn2cql: deal with truncation=102 (regexp-1)

And ensure proper quoting of reserved CQL characters.

8 years agocql2ccl: deal with both * and ? in conversion
Adam Dickmeiss [Thu, 25 Aug 2011 11:56:20 +0000 (13:56 +0200)]
cql2ccl: deal with both * and ? in conversion

Also leave escaped ones as is, so that they are pass-through.

8 years agoCCL: retain ? for CCL terms
Adam Dickmeiss [Wed, 24 Aug 2011 19:45:53 +0000 (21:45 +0200)]
CCL: retain ? for CCL terms

8 years agoVersion 4.2.10 v4.2.10
Adam Dickmeiss [Wed, 24 Aug 2011 17:58:07 +0000 (17:58 +0000)]
Version 4.2.10

8 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Mike Taylor [Wed, 24 Aug 2011 14:03:17 +0000 (15:03 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

8 years agoDescribe recent changes.
Mike Taylor [Wed, 24 Aug 2011 14:02:59 +0000 (15:02 +0100)]
Describe recent changes.

8 years agorpn2cql_structure() supports proximity nodes (except that the Type-1
Mike Taylor [Wed, 24 Aug 2011 14:01:06 +0000 (15:01 +0100)]
rpn2cql_structure() supports proximity nodes (except that the Type-1
proximity node's "exclusion" binary is ignored, as there is no way to
express that in CQL).  Fixes bug #4564.

8 years agoIgnore generated script yaz-url
Mike Taylor [Wed, 24 Aug 2011 13:59:50 +0000 (14:59 +0100)]
Ignore generated script yaz-url

8 years agoPublic declaration for yaz_prox_unit_name()
Mike Taylor [Wed, 24 Aug 2011 13:49:47 +0000 (14:49 +0100)]
Public declaration for yaz_prox_unit_name()

8 years agoZOOM: HTTP prepare for reconnect if server don't say so
Adam Dickmeiss [Wed, 24 Aug 2011 13:35:00 +0000 (15:35 +0200)]
ZOOM: HTTP prepare for reconnect if server don't say so

In case the server HTTP/1.1 says Keep-Alive, we set the reconnect_ok
to 1, if it closes anyway. Fixes #4555.

8 years agostatic prox_unit_name() renamed to yaz_prox_unit_name(), made external.
Mike Taylor [Wed, 24 Aug 2011 13:34:51 +0000 (14:34 +0100)]
static prox_unit_name() renamed to yaz_prox_unit_name(), made external.

8 years agoGFS: mention -K in usage
Adam Dickmeiss [Wed, 24 Aug 2011 13:14:56 +0000 (15:14 +0200)]
GFS: mention -K in usage

8 years agoLint-clean: void out an unused return value.
Mike Taylor [Wed, 24 Aug 2011 11:44:53 +0000 (12:44 +0100)]
Lint-clean: void out an unused return value.

8 years agozoomtst3: setting option step=5
Adam Dickmeiss [Tue, 23 Aug 2011 16:27:41 +0000 (18:27 +0200)]
zoomtst3: setting option step=5

This is to illustrate the step option and to check that it actually
works.

8 years agoVersion 4.2.9 v4.2.9
Adam Dickmeiss [Thu, 18 Aug 2011 08:28:51 +0000 (10:28 +0200)]
Version 4.2.9

8 years agozoomsh: fix SEGV for set command wo value
Adam Dickmeiss [Wed, 17 Aug 2011 13:50:11 +0000 (15:50 +0200)]
zoomsh: fix SEGV for set command wo value

8 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 16 Aug 2011 08:30:10 +0000 (10:30 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

8 years agoCheck for invalid COMSTACK addresses
Adam Dickmeiss [Tue, 16 Aug 2011 08:27:20 +0000 (10:27 +0200)]
Check for invalid COMSTACK addresses

Check return value of cs_parse_host in cs_create_host_proxy. For
example, yaz-url would SEGV if ssl/https was given and SSL was
not enabled in the built (as it happens on Windows).

8 years agonmake: build yaz_url
Adam Dickmeiss [Fri, 12 Aug 2011 07:57:14 +0000 (09:57 +0200)]
nmake: build yaz_url

8 years agoVersion 2.4.8 v4.2.8
Adam Dickmeiss [Thu, 11 Aug 2011 10:56:06 +0000 (12:56 +0200)]
Version 2.4.8

8 years agoyaz-url + man page installed and part of packages
Adam Dickmeiss [Thu, 11 Aug 2011 09:23:54 +0000 (11:23 +0200)]
yaz-url + man page installed and part of packages

8 years agoUpdate other version of tcpip_straddr for https too
Adam Dickmeiss [Thu, 11 Aug 2011 08:45:16 +0000 (10:45 +0200)]
Update other version of tcpip_straddr for https too

8 years agoyaz-url: Opt -O writes output to file instead of stdout
Adam Dickmeiss [Thu, 11 Aug 2011 08:43:06 +0000 (10:43 +0200)]
yaz-url: Opt -O writes output to file instead of stdout

8 years agotcpip_straddr: Use port 443 for https
Adam Dickmeiss [Thu, 11 Aug 2011 08:42:11 +0000 (10:42 +0200)]
tcpip_straddr: Use port 443 for https

8 years agoGFS: close connection immediately if EOF is received.
Adam Dickmeiss [Thu, 11 Aug 2011 08:33:38 +0000 (10:33 +0200)]
GFS: close connection immediately if EOF is received.

Previously the assocation was marked DEAD and that could lead to
a few seconds hang on SSL connections.

8 years agoSSL: Handle EOF case in ssl_get
Adam Dickmeiss [Thu, 11 Aug 2011 08:31:25 +0000 (10:31 +0200)]
SSL: Handle EOF case in ssl_get

If gnutls was in use and gnutls_record_recv returned 0 (EOF)
the ssl_get function would never terminate.

8 years agosockets: fix for whether poll is available
Adam Dickmeiss [Thu, 11 Aug 2011 08:26:48 +0000 (10:26 +0200)]
sockets: fix for whether poll is available

The select(2) wrapper was in use even though poll(2) was available.

8 years agoyaz-url: HTTP method may be given. Change header (-H) option.
Adam Dickmeiss [Thu, 11 Aug 2011 06:33:50 +0000 (08:33 +0200)]
yaz-url: HTTP method may be given. Change header (-H) option.

Argument for -H is now name:value rather than name=value - it just
seems more natural for Web hackers that way.

8 years agoyaz-url: display usage if no ULRs are given
Adam Dickmeiss [Thu, 11 Aug 2011 06:21:08 +0000 (08:21 +0200)]
yaz-url: display usage if no ULRs are given

8 years agoNew utility yaz_url: fetches HTTP content
Adam Dickmeiss [Wed, 10 Aug 2011 13:03:53 +0000 (15:03 +0200)]
New utility yaz_url: fetches HTTP content

This is a simple wrapper around COMSTACK and HTTP utilities; deals
with proxy'ing.

8 years agozoomsh: fix set command to use remaning args for value
Adam Dickmeiss [Wed, 10 Aug 2011 09:23:19 +0000 (11:23 +0200)]
zoomsh: fix set command to use remaning args for value

Before, only one token was taken as value for set (or one would have to
quote if a token contained space).

8 years agoyaz_pqf_parse_facet_list returns FAIL (0) for bad facet spec
Adam Dickmeiss [Wed, 10 Aug 2011 09:22:56 +0000 (11:22 +0200)]
yaz_pqf_parse_facet_list returns FAIL (0) for bad facet spec

8 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 9 Aug 2011 16:42:49 +0000 (18:42 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

8 years agoyaz_pqf_parser_facet_list also reads term list
Adam Dickmeiss [Tue, 9 Aug 2011 16:41:27 +0000 (18:41 +0200)]
yaz_pqf_parser_facet_list also reads term list

Thus yaz_pqf_parser_facet_list might also be used to create a facet
response.

8 years agoNew utility: nmem_strsplit_escape
Adam Dickmeiss [Fri, 5 Aug 2011 14:24:08 +0000 (16:24 +0200)]
New utility: nmem_strsplit_escape

8 years agoTestin wrbuf_insert
Adam Dickmeiss [Fri, 5 Aug 2011 12:55:32 +0000 (14:55 +0200)]
Testin wrbuf_insert

8 years agoNew WRBUF utility: wrbuf_insert
Adam Dickmeiss [Fri, 5 Aug 2011 12:35:20 +0000 (14:35 +0200)]
New WRBUF utility: wrbuf_insert

8 years agoRemove unused code
Adam Dickmeiss [Thu, 4 Aug 2011 12:14:22 +0000 (14:14 +0200)]
Remove unused code

8 years agoBase64 utilities public
Adam Dickmeiss [Thu, 4 Aug 2011 11:32:15 +0000 (13:32 +0200)]
Base64 utilities public

8 years agoRemove variables and assignments with no effect
Adam Dickmeiss [Thu, 4 Aug 2011 11:00:25 +0000 (13:00 +0200)]
Remove variables and assignments with no effect

As warned by newer GCC.

8 years agozoomsh: remove unused code for cmd facets
Adam Dickmeiss [Thu, 4 Aug 2011 11:00:02 +0000 (13:00 +0200)]
zoomsh: remove unused code for cmd facets

8 years agovoid mixed stmt/var declare
Adam Dickmeiss [Thu, 4 Aug 2011 10:59:22 +0000 (12:59 +0200)]
void mixed stmt/var declare

8 years agoclient: proper recid passing
Adam Dickmeiss [Thu, 4 Aug 2011 10:58:40 +0000 (12:58 +0200)]
client: proper recid passing

8 years agoVersion 4.2.7 v4.2.7
Adam Dickmeiss [Wed, 3 Aug 2011 11:39:47 +0000 (13:39 +0200)]
Version 4.2.7

8 years agoZOOM: addinfo includes HTTP content when SRU decode fails
Adam Dickmeiss [Wed, 3 Aug 2011 09:40:33 +0000 (11:40 +0200)]
ZOOM: addinfo includes HTTP content when SRU decode fails

When ZOOM C sees an SRU responst that it cannot decode it
returns "meta" diagnostic ZOOM_ERROR_DECODE/10003 . The additional
info now contains the HTTP content.

8 years agoMake json_write_wrbuf available
Adam Dickmeiss [Tue, 2 Aug 2011 12:14:29 +0000 (14:14 +0200)]
Make json_write_wrbuf available

8 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Fri, 29 Jul 2011 15:59:48 +0000 (17:59 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

8 years agoVersion 4.2.6 v4.2.6
Adam Dickmeiss [Thu, 28 Jul 2011 12:18:54 +0000 (14:18 +0200)]
Version 4.2.6

8 years agoAdd YAZ_EXPORT for wrbuf_vp_puts
Adam Dickmeiss [Thu, 28 Jul 2011 12:18:46 +0000 (14:18 +0200)]
Add YAZ_EXPORT for wrbuf_vp_puts

8 years agoZOOM: throw diagnostic for invalid sru value
Adam Dickmeiss [Thu, 28 Jul 2011 09:32:13 +0000 (11:32 +0200)]
ZOOM: throw diagnostic for invalid sru value

8 years agorpn2cql: check for proper truncation attributes
Adam Dickmeiss [Wed, 27 Jul 2011 14:20:06 +0000 (16:20 +0200)]
rpn2cql: check for proper truncation attributes

8 years agoReformat
Adam Dickmeiss [Wed, 27 Jul 2011 13:41:41 +0000 (15:41 +0200)]
Reformat