yaz-moved-to-github.git
12 years agoAdd some tests for CCL for new proximity behavior
Adam Dickmeiss [Thu, 5 Jan 2012 15:13:22 +0000 (16:13 +0100)]
Add some tests for CCL for new proximity behavior

12 years agoCCL: allow parantheses for prox operands
Adam Dickmeiss [Thu, 5 Jan 2012 15:11:08 +0000 (16:11 +0100)]
CCL: allow parantheses for prox operands

For example, (a) % (b) is now allowed. The parsing code was
actually reduced by this.

12 years agoGFS: fix bend_assoc_is_alive
Adam Dickmeiss [Fri, 30 Dec 2011 13:36:47 +0000 (14:36 +0100)]
GFS: fix bend_assoc_is_alive

When cs_get returns 0 the association is marked dead, rather then
being destroyed. If not, the session memory is being free'd before
the search/scan handler is finished. Also destroy request memory
in request_release rather than in various places, which resulted in
leaks from time to time.

12 years agoVersion 4.2.24 v4.2.24
Adam Dickmeiss [Wed, 21 Dec 2011 13:52:19 +0000 (14:52 +0100)]
Version 4.2.24

12 years agoChanges
Adam Dickmeiss [Wed, 21 Dec 2011 13:49:57 +0000 (14:49 +0100)]
Changes

12 years agoAdd test case for cql_sortby_to_sortkeys (sort prefix)
Adam Dickmeiss [Wed, 21 Dec 2011 09:30:33 +0000 (10:30 +0100)]
Add test case for cql_sortby_to_sortkeys (sort prefix)

12 years agocql_sortby_to_sortkeys: honor sort prefix
Adam Dickmeiss [Wed, 21 Dec 2011 09:29:56 +0000 (10:29 +0100)]
cql_sortby_to_sortkeys: honor sort prefix

12 years agoRPN to CQL: always quote resulting terms
Adam Dickmeiss [Tue, 20 Dec 2011 13:49:34 +0000 (14:49 +0100)]
RPN to CQL: always quote resulting terms

For bizarre reasons, JSTOR's SRU server returns 0 hits on ISSN
searches unless a CQL term is quoted. The rpn2cql family of
functions now always returns quoted CQL terms.

12 years agoFix CQL to CCL conversion for multiple terms
Adam Dickmeiss [Tue, 20 Dec 2011 11:56:08 +0000 (12:56 +0100)]
Fix CQL to CCL conversion for multiple terms

Add two test cases as well.

12 years agoVersion 4.2.23 v4.2.23
Adam Dickmeiss [Thu, 15 Dec 2011 09:40:28 +0000 (10:40 +0100)]
Version 4.2.23

12 years agoMore consisten look of NEWS
Adam Dickmeiss [Thu, 15 Dec 2011 09:40:17 +0000 (10:40 +0100)]
More consisten look of NEWS

12 years agoUpdate dependency version
Adam Dickmeiss [Thu, 15 Dec 2011 09:38:59 +0000 (10:38 +0100)]
Update dependency version

due to new function ZOOM_connection_save_apdu_wrbuf. This should have
been done for the 4.2.22 release.

12 years agoUpdate news
Adam Dickmeiss [Thu, 15 Dec 2011 09:30:51 +0000 (10:30 +0100)]
Update news

12 years agoconfigure.ac not needed for Windows package
Adam Dickmeiss [Thu, 15 Dec 2011 09:27:56 +0000 (10:27 +0100)]
configure.ac not needed for Windows package

12 years agoIDMETA part of Windows package
Adam Dickmeiss [Thu, 15 Dec 2011 09:24:35 +0000 (10:24 +0100)]
IDMETA part of Windows package

12 years agoPass IDMETA to mk_version.tcl
Adam Dickmeiss [Thu, 15 Dec 2011 09:20:08 +0000 (10:20 +0100)]
Pass IDMETA to mk_version.tcl

12 years agomk_version.tcl gets version from IDMETA
Adam Dickmeiss [Thu, 15 Dec 2011 09:17:21 +0000 (10:17 +0100)]
mk_version.tcl gets version from IDMETA

It's a month ago we moved version from configure.ac to IDMETA, but
mk_version.tcl is only used on Windows.

12 years agoAdd tests for yaz_uri_to_array and yaz_array_to_uri
Adam Dickmeiss [Thu, 15 Dec 2011 08:39:34 +0000 (09:39 +0100)]
Add tests for yaz_uri_to_array and yaz_array_to_uri

12 years agoAllow =val to be omitted for yaz_uri_to_array
Adam Dickmeiss [Thu, 15 Dec 2011 08:37:11 +0000 (09:37 +0100)]
Allow =val to be omitted for yaz_uri_to_array

Also, multiple &'s in sequence is treated as one. For example,
&&a=b&&&c& is identical to a=b&c= .

12 years agoFix Doxygen filename
Adam Dickmeiss [Wed, 7 Dec 2011 13:38:40 +0000 (14:38 +0100)]
Fix Doxygen filename

12 years agoRefactor SRU/Z39.50 diag map utils to diag_map.c
Adam Dickmeiss [Wed, 7 Dec 2011 13:37:23 +0000 (14:37 +0100)]
Refactor SRU/Z39.50 diag map utils to diag_map.c

12 years agoVersion 4.2.22 v4.2.22
Adam Dickmeiss [Mon, 5 Dec 2011 10:53:19 +0000 (10:53 +0000)]
Version 4.2.22

12 years agoAdd ZOOM_connection_save_apdu_wrbuf
Adam Dickmeiss [Mon, 5 Dec 2011 10:28:08 +0000 (11:28 +0100)]
Add ZOOM_connection_save_apdu_wrbuf

This function may be used to save APDUs for a connection to a WRBUF.

12 years agobuildconf removes autom4te.cache
Adam Dickmeiss [Fri, 25 Nov 2011 13:31:19 +0000 (14:31 +0100)]
buildconf removes autom4te.cache

This is to ensure that software version is not cached but taken
from IDMETA as it should.

12 years agoAdd tests of CQL to CCL+sortkeys conversion
Adam Dickmeiss [Thu, 24 Nov 2011 13:17:07 +0000 (14:17 +0100)]
Add tests of CQL to CCL+sortkeys conversion

12 years agoCQL to CCL: add ()s for boolean sub terms
Adam Dickmeiss [Thu, 24 Nov 2011 10:00:10 +0000 (11:00 +0100)]
CQL to CCL: add ()s for boolean sub terms

For boolean operation, a op b, make CCL (a) op (b) rather than
(a op b), to ensure that proximity operator within a or be is only
applied there. This is to ensure that field assigment in a is
never applied to b in the resulting CQL. In CCL proximity has
higher precedence than field assignment, unlike CQL.

12 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Thu, 24 Nov 2011 09:37:52 +0000 (10:37 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

12 years agoRemove Ubuntu karmic from build
Adam Dickmeiss [Wed, 23 Nov 2011 20:32:41 +0000 (21:32 +0100)]
Remove Ubuntu karmic from build

12 years agoVersion 4.2.21 v4.2.21
Adam Dickmeiss [Wed, 23 Nov 2011 16:08:33 +0000 (16:08 +0000)]
Version 4.2.21

12 years agocql_sortby_to_sortkeys - fix pr_n
Adam Dickmeiss [Wed, 23 Nov 2011 16:05:34 +0000 (17:05 +0100)]
cql_sortby_to_sortkeys - fix pr_n

It was so broken I wonder how it ever would work.

12 years agotest_ccl: add special qualifier tests
Adam Dickmeiss [Wed, 23 Nov 2011 13:05:25 +0000 (14:05 +0100)]
test_ccl: add special qualifier tests

Such as @truncation, @and, @or, @not.

12 years agoccl: honor @truncation again
Adam Dickmeiss [Wed, 23 Nov 2011 13:04:25 +0000 (14:04 +0100)]
ccl: honor @truncation again

13 years agoDiagnostic mapping: tweak 10, 108 mappings
Adam Dickmeiss [Fri, 18 Nov 2011 12:09:04 +0000 (13:09 +0100)]
Diagnostic mapping: tweak 10, 108 mappings

The bib-1 to SRU are kept in order again, and 10->108 reverse
is in the reverse mapping.

13 years agoChange diagnostic code mapping for Bib-1: "Unsupported search"
Adam Dickmeiss [Fri, 18 Nov 2011 11:54:28 +0000 (12:54 +0100)]
Change diagnostic code mapping for Bib-1: "Unsupported search"

Bib-1: "Unsupported search" now maps to SRU diagnostic : "Query feature
unsupported".

13 years agoRefactor icu_chain_create
Adam Dickmeiss [Tue, 15 Nov 2011 13:03:08 +0000 (14:03 +0100)]
Refactor icu_chain_create

And ensure proper clean up if UCollator can not be created.

13 years agoReformat, remove a few redundant type casts
Adam Dickmeiss [Tue, 15 Nov 2011 12:55:45 +0000 (13:55 +0100)]
Reformat, remove a few redundant type casts

13 years agoMinor refactor of ICU casemap
Adam Dickmeiss [Tue, 15 Nov 2011 12:45:48 +0000 (13:45 +0100)]
Minor refactor of ICU casemap

13 years agoIgnore test_options program
Adam Dickmeiss [Tue, 15 Nov 2011 12:45:41 +0000 (13:45 +0100)]
Ignore test_options program

13 years agoRPM: get version from IDMETA
Adam Dickmeiss [Mon, 14 Nov 2011 15:29:20 +0000 (16:29 +0100)]
RPM: get version from IDMETA

So we don't need to update the spec file for each release anymore.

13 years agoIDMETA part of dist
Adam Dickmeiss [Mon, 14 Nov 2011 15:28:53 +0000 (16:28 +0100)]
IDMETA part of dist

13 years agoRead version from IDMETA rather than configure.ac.
Adam Dickmeiss [Mon, 14 Nov 2011 15:10:48 +0000 (16:10 +0100)]
Read version from IDMETA rather than configure.ac.

In other words, configure.ac gets its version from IDMETA.

13 years agoUpdate m4
Adam Dickmeiss [Thu, 10 Nov 2011 11:47:54 +0000 (12:47 +0100)]
Update m4

13 years agoVersion 4.2.20, really v4.2.20
Adam Dickmeiss [Wed, 9 Nov 2011 15:02:55 +0000 (16:02 +0100)]
Version 4.2.20, really

13 years agoNew ZOOM connection setting: tproxy
Adam Dickmeiss [Wed, 9 Nov 2011 14:56:04 +0000 (15:56 +0100)]
New ZOOM connection setting: tproxy

It's like proxy, but does not set Z39.50 proxy OID or change HTTP
for proxy behavior. Can be used to set resolved address + port
for a connection outside ZOOM itself.

13 years agoFix atoi_n_check digit test
Adam Dickmeiss [Wed, 9 Nov 2011 11:31:23 +0000 (12:31 +0100)]
Fix atoi_n_check digit test

Thanks to Giannis Kosmas for spotting it.

13 years agoVersion 4.2.20 v4.2.19
Adam Dickmeiss [Mon, 7 Nov 2011 09:31:15 +0000 (10:31 +0100)]
Version 4.2.20

13 years agoDescribe changes
Adam Dickmeiss [Mon, 7 Nov 2011 09:13:59 +0000 (10:13 +0100)]
Describe changes

13 years agoInitializing suggestions.
Dennis Schafroth [Fri, 4 Nov 2011 14:40:40 +0000 (15:40 +0100)]
Initializing suggestions.

13 years agoDescribe recent changes.
Mike Taylor [Wed, 2 Nov 2011 12:30:07 +0000 (12:30 +0000)]
Describe recent changes.

13 years agoWhen ZOOM_set_dset_error() is passed an addinfo2 as well as addinfo,
Mike Taylor [Wed, 2 Nov 2011 12:29:54 +0000 (12:29 +0000)]
When ZOOM_set_dset_error() is passed an addinfo2 as well as addinfo,
they are separated by a colon and a space rather than simply
concatenated.

13 years agoError handling for Z_APDU_close uses ZOOM_set_dset_error() to pass
Mike Taylor [Wed, 2 Nov 2011 12:28:51 +0000 (12:28 +0000)]
Error handling for Z_APDU_close uses ZOOM_set_dset_error() to pass
back-end's addinfo through into the ZOOM response addinfo.

13 years agoVersion 4.2.18 v4.2.18
Adam Dickmeiss [Fri, 28 Oct 2011 12:19:51 +0000 (14:19 +0200)]
Version 4.2.18

13 years agoMay use libreadline-dev
Adam Dickmeiss [Fri, 28 Oct 2011 12:19:01 +0000 (14:19 +0200)]
May use libreadline-dev

Because libreadline5-dev is gone in Debian wheezy.

13 years agoFix compilation wo libxml2
Adam Dickmeiss [Fri, 28 Oct 2011 12:13:30 +0000 (14:13 +0200)]
Fix compilation wo libxml2

13 years agoInfo about Solr spell-checking/suggestions. New command suggestions to show result
Dennis Schafroth [Fri, 28 Oct 2011 12:06:04 +0000 (14:06 +0200)]
Info about Solr spell-checking/suggestions. New command suggestions to show result

13 years agoFix: usage of wrong xml node. Fix string compare. Cosmetic: add newline after xml...
Dennis Schafroth [Fri, 28 Oct 2011 11:57:07 +0000 (13:57 +0200)]
Fix: usage of wrong xml node. Fix string compare. Cosmetic: add newline after xml element misspelled

13 years agoImplement display of suggestions
Dennis Schafroth [Fri, 28 Oct 2011 10:47:37 +0000 (12:47 +0200)]
Implement display of suggestions

13 years agoImpl. display of suggestions
Dennis Schafroth [Fri, 28 Oct 2011 10:46:39 +0000 (12:46 +0200)]
Impl. display of suggestions

13 years agoInit new suggestions pointer
Dennis Schafroth [Fri, 28 Oct 2011 08:45:24 +0000 (10:45 +0200)]
Init new suggestions pointer

13 years agoAdd setting of suggestions options on resultset
Dennis Schafroth [Fri, 28 Oct 2011 08:32:42 +0000 (10:32 +0200)]
Add setting of suggestions options on resultset

13 years agoFix missing return type. Fix function name
Dennis Schafroth [Fri, 28 Oct 2011 08:32:00 +0000 (10:32 +0200)]
Fix missing return type. Fix function name

13 years agoparsing of optional mispelled/suggestions
Dennis Schafroth [Thu, 27 Oct 2011 14:53:17 +0000 (16:53 +0200)]
parsing of optional mispelled/suggestions

13 years agoNew suggestions result
Dennis Schafroth [Thu, 27 Oct 2011 14:49:43 +0000 (16:49 +0200)]
New suggestions result

13 years agofacet display: avoid printing 0-string
Adam Dickmeiss [Fri, 14 Oct 2011 12:34:24 +0000 (14:34 +0200)]
facet display: avoid printing 0-string

13 years agoVersion 4.2.17 v4.2.17
Adam Dickmeiss [Wed, 28 Sep 2011 10:25:28 +0000 (12:25 +0200)]
Version 4.2.17

13 years agoReformat
Adam Dickmeiss [Wed, 28 Sep 2011 09:26:40 +0000 (11:26 +0200)]
Reformat

13 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.

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

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

13 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

13 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.

13 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

13 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

13 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.

13 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

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

13 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

13 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

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

13 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

13 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.

13 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

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

13 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

13 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.

13 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.)

13 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

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

13 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

13 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

13 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.

13 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.

13 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.

13 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

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

13 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

13 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.

13 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.

13 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).

13 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