Dennis Schafroth [Mon, 11 Jul 2011 11:37:57 +0000 (13:37 +0200)]
Spell fix in comment
Dennis Schafroth [Mon, 11 Jul 2011 11:36:38 +0000 (13:36 +0200)]
Escaping :
Mike Taylor [Tue, 5 Jul 2011 22:51:06 +0000 (23:51 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Mike Taylor [Tue, 5 Jul 2011 22:42:31 +0000 (23:42 +0100)]
The static function bool(), which is part of cql_to_ccl_r(), now makes
some attempt to recognise and deal with proximity. Right now, all it
does it recognise the CQL operator name "prox" and map it to the CCL
operator "!" rather than the unrecognised plain word "prox" -- this
suffices to get SOME indication of proximity into the resulting CCL,
which is a big step forward for bug #4407. We ought to check for a an
/ordered=0 relation modifier and emit "%" instead in that case.
Adam Dickmeiss [Tue, 5 Jul 2011 21:49:51 +0000 (23:49 +0200)]
GFS: properly initialise scan stepSixze
Adam Dickmeiss [Wed, 29 Jun 2011 14:47:33 +0000 (16:47 +0200)]
Debian control: split long lines
Adam Dickmeiss [Tue, 21 Jun 2011 13:10:11 +0000 (15:10 +0200)]
Version 4.2.4
Adam Dickmeiss [Tue, 21 Jun 2011 10:39:12 +0000 (12:39 +0200)]
Fix uninit-memory for sru/solr databaseRecord
Adam Dickmeiss [Tue, 21 Jun 2011 10:38:27 +0000 (12:38 +0200)]
Another fix for ccl_qual_dup
Adam Dickmeiss [Mon, 20 Jun 2011 09:34:03 +0000 (11:34 +0200)]
cql2cql: convert mask char '*'=>'?'
Adam Dickmeiss [Fri, 17 Jun 2011 10:48:34 +0000 (12:48 +0200)]
Version 4.2.3
Adam Dickmeiss [Fri, 17 Jun 2011 10:15:55 +0000 (12:15 +0200)]
ccl_qual_dup fixes; previous version totally broken
Adam Dickmeiss [Fri, 17 Jun 2011 09:08:27 +0000 (11:08 +0200)]
CCL: new utility ccl_qual_dup
Function ccl_qual_dup makes a copy of a CCL_bibset.
Adam Dickmeiss [Fri, 10 Jun 2011 12:36:21 +0000 (14:36 +0200)]
Version 4.2.2
Adam Dickmeiss [Fri, 10 Jun 2011 12:33:08 +0000 (14:33 +0200)]
Update for new source ccl2ccl
Adam Dickmeiss [Fri, 10 Jun 2011 12:30:32 +0000 (14:30 +0200)]
Fix return values for cql_to_ccl_buf
Adam Dickmeiss [Fri, 10 Jun 2011 12:01:26 +0000 (14:01 +0200)]
Add cql_to_ccl_buf
Adam Dickmeiss [Fri, 10 Jun 2011 11:41:43 +0000 (13:41 +0200)]
cql2xcql: option -c makes conversion to CCL.
By default cql2xcql converts to XCQL (XML).
Adam Dickmeiss [Fri, 10 Jun 2011 11:40:39 +0000 (13:40 +0200)]
Add cql_to_ccl and cql_to_ccl_stdio.
These utilities makes a rough conversion from CQL parse tree (cql_node)
to a CCL string.
Adam Dickmeiss [Fri, 10 Jun 2011 09:06:31 +0000 (11:06 +0200)]
Ignore test programs
Adam Dickmeiss [Thu, 9 Jun 2011 13:25:17 +0000 (15:25 +0200)]
Work around a bug in ucol_getSortKey
The problem seen is that ucol_getSortkey writes one byte at the
capacity position. This in turn, results in malloc heap corruption.
Adam Dickmeiss [Tue, 7 Jun 2011 07:40:56 +0000 (09:40 +0200)]
Version 4.2.1
Adam Dickmeiss [Mon, 30 May 2011 09:22:56 +0000 (11:22 +0200)]
No need for ExternalToolBuilder
Adam Dickmeiss [Mon, 30 May 2011 09:15:12 +0000 (11:15 +0200)]
Eclispse CDT: Use external Makefile
Use External Builder and Makefile as produced by configure.
Adam Dickmeiss [Fri, 27 May 2011 10:50:07 +0000 (12:50 +0200)]
test_xml_include: no test wo Libxml2
Adam Dickmeiss [Fri, 27 May 2011 10:47:25 +0000 (12:47 +0200)]
Reformat
Adam Dickmeiss [Fri, 27 May 2011 10:27:47 +0000 (12:27 +0200)]
Fix compilation without Libxml2 (broke in 4.2.0)
Adam Dickmeiss [Tue, 24 May 2011 10:34:52 +0000 (12:34 +0200)]
yaz-client: no extra blanks for searchResult-1 display
This partly reverts
3c0e13a1. Facets as still indented.
Adam Dickmeiss [Mon, 23 May 2011 20:47:03 +0000 (22:47 +0200)]
Remove redundant comment
Adam Dickmeiss [Wed, 18 May 2011 11:59:04 +0000 (11:59 +0000)]
Version 4.2.0
Adam Dickmeiss [Wed, 18 May 2011 10:23:18 +0000 (12:23 +0200)]
Simplify facet parse
Adam Dickmeiss [Wed, 18 May 2011 08:51:23 +0000 (10:51 +0200)]
Reformat
Adam Dickmeiss [Wed, 18 May 2011 08:44:57 +0000 (10:44 +0200)]
Rename define FACET_DElIMITER->FACET_DELIMITER
Adam Dickmeiss [Wed, 18 May 2011 08:43:21 +0000 (10:43 +0200)]
yaz-client: reformat
Adam Dickmeiss [Wed, 18 May 2011 08:40:29 +0000 (10:40 +0200)]
yaz-client: remove unused define
Adam Dickmeiss [Wed, 18 May 2011 08:39:14 +0000 (10:39 +0200)]
yaz-client: rework facet command; fix leak
Adam Dickmeiss [Tue, 17 May 2011 13:22:15 +0000 (15:22 +0200)]
yaz-ztest: 10 facet entries by default
Adam Dickmeiss [Tue, 17 May 2011 10:25:28 +0000 (12:25 +0200)]
Add yaz_utf8_check
A function that checks whether a string appears to be UTF-8 encoded.
Adam Dickmeiss [Mon, 16 May 2011 13:54:00 +0000 (15:54 +0200)]
SOLR + facets: use Odr_int for counts
For hit counts/occurrences Odr_int is used - not int, that usually has a limit
of 2^31-1. Use also facet_term_create_cstr for creating Z_FacetTerms to
use Odr_int and avoid Z_Term intermediate(s).
Adam Dickmeiss [Mon, 16 May 2011 13:53:10 +0000 (15:53 +0200)]
Add z_Term_create for creating Z_Term things
Adam Dickmeiss [Mon, 16 May 2011 11:38:20 +0000 (13:38 +0200)]
yaz-icu: fix compilation without ICU (disabled)
Move declaration inside YAZ_HAVE_ICU section.
Adam Dickmeiss [Mon, 16 May 2011 11:34:03 +0000 (13:34 +0200)]
buildconf.sh: update package list for compiling with sources
Adam Dickmeiss [Fri, 13 May 2011 13:18:40 +0000 (15:18 +0200)]
Add new function nmem_strsplitx.
This is like nmem_strsplitx but allows us to specify whether to
collapse delimitors or not. The existing nmem_strsplit do collapse
(collapse parameter = 1).
Adam Dickmeiss [Fri, 13 May 2011 10:18:04 +0000 (12:18 +0200)]
GFS: fail if CQL properties can not be opened
Adam Dickmeiss [Thu, 12 May 2011 13:05:42 +0000 (15:05 +0200)]
SOLR tests: start work on decode tests
Adam Dickmeiss [Thu, 12 May 2011 13:04:16 +0000 (15:04 +0200)]
SOLR decode: avoid creating empty records array
Do not create records array if num_records == 0.
Adam Dickmeiss [Thu, 12 May 2011 11:58:40 +0000 (13:58 +0200)]
SOLR facets: no magic for non-date facets
No longer remove/append _exact for facet names. Facets must be
given from the API with their full names.
Adam Dickmeiss [Thu, 12 May 2011 11:57:51 +0000 (13:57 +0200)]
Reformat; rename fun relationattr -> sortorderattr
Adam Dickmeiss [Thu, 12 May 2011 11:03:58 +0000 (13:03 +0200)]
Add test for SOLR stuff; memory based, no network.
Adam Dickmeiss [Thu, 12 May 2011 11:02:25 +0000 (13:02 +0200)]
Reformat
Adam Dickmeiss [Thu, 12 May 2011 11:02:02 +0000 (13:02 +0200)]
Reformat
Adam Dickmeiss [Thu, 12 May 2011 11:01:45 +0000 (13:01 +0200)]
Reformat
Adam Dickmeiss [Thu, 12 May 2011 11:01:42 +0000 (13:01 +0200)]
Reformat
Adam Dickmeiss [Wed, 11 May 2011 12:47:12 +0000 (14:47 +0200)]
zoomsh: show returned facets (if any).
Adam Dickmeiss [Tue, 10 May 2011 10:09:53 +0000 (12:09 +0200)]
CQL: ajd is a CQL 2.0 relation
Adam Dickmeiss [Tue, 10 May 2011 10:08:55 +0000 (12:08 +0200)]
CQL grammar: rename two terminals
Adam Dickmeiss [Tue, 10 May 2011 09:25:22 +0000 (11:25 +0200)]
Update to CQL 2.0 as of Feb 2011
Add all remaining relation symbols. Get rid of QUOTED_URI_STRING and
make it a terminal instead based on QUITED_STRING. If not, the grammar
is seriously broken, ie, search terms like "http://www.indexdata.com/"
would be forbidden. Note that the search_term now (as for CQL 1.X)
allows terms like 'and', 'or', 'sortby' .
Adam Dickmeiss [Tue, 10 May 2011 08:43:36 +0000 (10:43 +0200)]
CQL grammar: simplify a bit WRT relations
Adam Dickmeiss [Mon, 9 May 2011 13:45:54 +0000 (15:45 +0200)]
Fix yacc grammar WRT prefix_assignment
Adam Dickmeiss [Fri, 6 May 2011 12:57:26 +0000 (14:57 +0200)]
GFS: convert to CQL sortkeys if CQL to PQF is used
If CQL to PQF is in use by GFS, then it will also parse CQL sortby
material and convert it to srw_sortkeys.
Adam Dickmeiss [Fri, 6 May 2011 12:56:51 +0000 (14:56 +0200)]
cql_sortby_to_sortkeys: handle modifiers.
And add cql_sortby_to_sortkeys_buf.
Adam Dickmeiss [Wed, 4 May 2011 15:22:23 +0000 (17:22 +0200)]
CQL: start work on cql_sortby_to_sortkeys
Adam Dickmeiss [Wed, 4 May 2011 14:09:29 +0000 (16:09 +0200)]
Reformat a bit
Adam Dickmeiss [Wed, 4 May 2011 14:05:05 +0000 (16:05 +0200)]
CQL: handle SORT node in a few places
In particular, CQL to PQF transform was broken after introduction
of the SORT node.
Adam Dickmeiss [Wed, 4 May 2011 13:15:32 +0000 (15:15 +0200)]
Add two CQL sortby tests
Adam Dickmeiss [Wed, 4 May 2011 13:09:33 +0000 (15:09 +0200)]
Renamed sh-based tests
Adam Dickmeiss [Tue, 3 May 2011 14:04:00 +0000 (16:04 +0200)]
CQL sortby; conversion to XML done.
The cql_node struct has not changed size but a new type of node
CQL_NODE_SORT is new. Strictly speaking this breaks binary compatibility
so perhaps this has to be enabled "actively", by API. Bug #608.
Adam Dickmeiss [Tue, 3 May 2011 12:28:20 +0000 (14:28 +0200)]
Add emacs/vim local variables
Adam Dickmeiss [Fri, 29 Apr 2011 11:21:55 +0000 (11:21 +0000)]
Add Debian wheezy, Ubuntu natty
Adam Dickmeiss [Fri, 29 Apr 2011 08:18:39 +0000 (10:18 +0200)]
Omit redundant include of yaz/yconfig.h.
Adam Dickmeiss [Wed, 27 Apr 2011 13:33:17 +0000 (15:33 +0200)]
Avoid printf %.*s for arbitrary strings
Use wrbuf_write instead of wrbuf_printf in a few places for fixed
length buffers. Use wrbuf_puts instead of wrbuf_printf when printf
is not needed. There is a problem with printf("%.*", len, buf)
when buf is in different encoding from what is given by LANG
variable.. At least when readline is in use.
Adam Dickmeiss [Tue, 26 Apr 2011 12:33:23 +0000 (14:33 +0200)]
Avoid ctype.h .
The ctype.h-functions depend on the LANG environment which might be set
to something totally different than a server application assumes. We also
do not need anything but ASCII based checks (HTTP protocol for one).
isxxx functions also require an unsigned int and a cast. These casts can
be avoided now.
Adam Dickmeiss [Mon, 11 Apr 2011 11:05:17 +0000 (13:05 +0200)]
Rename internal func yaz_use_attribute_create
Adam Dickmeiss [Mon, 11 Apr 2011 10:14:41 +0000 (12:14 +0200)]
Log SRU auth params in GFS
Adam Dickmeiss [Mon, 11 Apr 2011 10:12:38 +0000 (12:12 +0200)]
SRU SOAP decoding: handle HTTP basic auth as well
Call yaz_srw_decodeauth in the SRU SOAP decoder function yaz_srw_decode.
Adam Dickmeiss [Mon, 11 Apr 2011 09:20:10 +0000 (11:20 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Mon, 11 Apr 2011 09:18:18 +0000 (11:18 +0200)]
Handle password=0 for z_HTTP_header_add_basic_auth
Avoid 0-ptr reference for z_HTTP_header_add_basic_auth . If NULL
password is passed that is treated as treated as empty string.
Dennis Schafroth [Thu, 7 Apr 2011 12:13:59 +0000 (14:13 +0200)]
Remove empty lines and out-commented irrelevant test
Dennis Schafroth [Thu, 7 Apr 2011 12:07:35 +0000 (14:07 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Thu, 7 Apr 2011 12:07:03 +0000 (14:07 +0200)]
Remove symbolic tests. Works only for ccl
Dennis Schafroth [Thu, 7 Apr 2011 12:06:14 +0000 (14:06 +0200)]
Add truncation tests
Dennis Schafroth [Thu, 7 Apr 2011 12:05:32 +0000 (14:05 +0200)]
Fix left-right truncation fix
Adam Dickmeiss [Thu, 7 Apr 2011 11:58:13 +0000 (13:58 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
Adam Dickmeiss [Thu, 7 Apr 2011 11:57:27 +0000 (13:57 +0200)]
NSIS: Set InstallDir depending on x86/x64
Adam Dickmeiss [Thu, 7 Apr 2011 11:57:05 +0000 (13:57 +0200)]
nmake: add make64 target
Dennis Schafroth [Thu, 7 Apr 2011 11:42:50 +0000 (13:42 +0200)]
Test for truncation. Not sure how CQL handles it
Dennis Schafroth [Thu, 7 Apr 2011 11:41:40 +0000 (13:41 +0200)]
Test that would have caught the truncation flags switch
Dennis Schafroth [Thu, 7 Apr 2011 11:39:08 +0000 (13:39 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Thu, 7 Apr 2011 11:35:05 +0000 (13:35 +0200)]
Fix left/right switch of truncation flag
Adam Dickmeiss [Tue, 5 Apr 2011 11:50:08 +0000 (13:50 +0200)]
Mods to tests to avoid clang warnings
Adam Dickmeiss [Tue, 5 Apr 2011 11:32:22 +0000 (13:32 +0200)]
Adjust code a little to avoid clang warnings
Adam Dickmeiss [Fri, 1 Apr 2011 12:03:21 +0000 (14:03 +0200)]
test_icu uses sortkey. Calls ICU cleanup.
Adam Dickmeiss [Thu, 31 Mar 2011 12:34:44 +0000 (14:34 +0200)]
Reformatting
Adam Dickmeiss [Thu, 31 Mar 2011 12:23:38 +0000 (14:23 +0200)]
Reformatting
Adam Dickmeiss [Thu, 31 Mar 2011 12:21:44 +0000 (14:21 +0200)]
Make element_name_append_attribute_value static
This, strictly speaking, changes binary compatibility but since
this function was never declared in a public header we can get
by ..
Adam Dickmeiss [Wed, 30 Mar 2011 14:03:04 +0000 (16:03 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
Adam Dickmeiss [Wed, 30 Mar 2011 14:01:45 +0000 (16:01 +0200)]
Build 64-bit YAZ with Libxml2, libxslt and ICU
Make variable ICU_DIR replaced with ICU_LIB, ICU_INCLUDE and ICU_BIN.
Adam Dickmeiss [Wed, 30 Mar 2011 11:50:20 +0000 (13:50 +0200)]
yaz-icu.c refactor and cleanup
Use config parameter consistently. Call u_cleanup during exit to
better cheak for leaks in ICU usage.
Adam Dickmeiss [Wed, 30 Mar 2011 11:41:42 +0000 (13:41 +0200)]
yaz-icu: input file may be given.
As an alternative to stdin.. Needed it for a gdb run and it seems
useful.
Adam Dickmeiss [Wed, 30 Mar 2011 11:41:12 +0000 (13:41 +0200)]
Remove redundant utf-16 buffer term