yaz-moved-to-github.git
13 years agoBase64 utilities public
Adam Dickmeiss [Thu, 4 Aug 2011 11:32:15 +0000 (13:32 +0200)]
Base64 utilities public

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

13 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

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

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

13 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

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

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

13 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

13 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

13 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

13 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

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

13 years agocql2xcql: option -s deals with CQL sortkeys
Adam Dickmeiss [Wed, 27 Jul 2011 13:07:05 +0000 (15:07 +0200)]
cql2xcql: option -s deals with CQL sortkeys

13 years agoAdding new utility wrbuf_vp_puts
Adam Dickmeiss [Wed, 27 Jul 2011 13:06:35 +0000 (15:06 +0200)]
Adding new utility wrbuf_vp_puts

13 years agoHeader updates
Adam Dickmeiss [Wed, 27 Jul 2011 13:04:31 +0000 (15:04 +0200)]
Header updates

13 years agoRemove assignment to variables not in use.
Adam Dickmeiss [Tue, 26 Jul 2011 07:38:07 +0000 (09:38 +0200)]
Remove assignment to variables not in use.

Fixes warnings produced by GCC 4.6.1.

13 years agoAdd cclxmlconfig.obj
Adam Dickmeiss [Mon, 25 Jul 2011 11:50:34 +0000 (13:50 +0200)]
Add cclxmlconfig.obj

13 years agoyaz_is_abspath: drive letter test NOT using isalpha
Adam Dickmeiss [Mon, 25 Jul 2011 10:55:02 +0000 (12:55 +0200)]
yaz_is_abspath: drive letter test NOT using isalpha

isalpha is problematic for signed chars and we assume drive letters are
[a-zA-Z] only; also isalpha depends locale.

13 years agoReformat
Adam Dickmeiss [Mon, 25 Jul 2011 10:52:48 +0000 (12:52 +0200)]
Reformat

13 years agoChange yaz_filepath_resolve for path="" (empty)
Adam Dickmeiss [Mon, 25 Jul 2011 10:44:03 +0000 (12:44 +0200)]
Change yaz_filepath_resolve for path="" (empty)

Applying empty path is equivalent to not passing a path at all or
passing just the path ".".

13 years agoVersion 4.2.5 v4.2.5
Adam Dickmeiss [Thu, 21 Jul 2011 08:16:21 +0000 (10:16 +0200)]
Version 4.2.5

13 years agoZOOM HTTP: refactor and simplify redirect/proxy code
Adam Dickmeiss [Wed, 20 Jul 2011 12:16:35 +0000 (14:16 +0200)]
ZOOM HTTP: refactor and simplify redirect/proxy code

13 years agoZOOM C: fix un-init var for cookie buffer
Adam Dickmeiss [Wed, 20 Jul 2011 09:02:13 +0000 (11:02 +0200)]
ZOOM C: fix un-init var for cookie buffer

13 years agoZOOM HTTP: proxy uses full URI in HTTP header
Adam Dickmeiss [Tue, 19 Jul 2011 14:04:39 +0000 (16:04 +0200)]
ZOOM HTTP: proxy uses full URI in HTTP header

Squid don't seem to like
 GET /?operation.. HTTP/1.1
but rather
 GET http://host/?operation HTTP/1.1
When HTTP proxy is in effect. When proxying the new function
cs_create_host_proxy is used to so comstack type is determined from
logical URL rather than proxy host. Proxy just needs host:port type of
spec. Note: this change might break HTTP redirect.

13 years agoAdd cs_create_host_proxy
Adam Dickmeiss [Tue, 19 Jul 2011 14:03:32 +0000 (16:03 +0200)]
Add cs_create_host_proxy

This is similar to cs_create_host but allows a proxy to be given.
Comstack type is still taken from vhost (logical host).

13 years agoMARC line decoding: be less picky about length given
Adam Dickmeiss [Tue, 19 Jul 2011 12:13:24 +0000 (14:13 +0200)]
MARC line decoding: be less picky about length given

Still, the MARC record must have 5 leading digits so we can
distinguish this from header and other lines.

13 years agocql_to_ccl deals with proximity , bug #4407
Adam Dickmeiss [Tue, 19 Jul 2011 11:02:29 +0000 (13:02 +0200)]
cql_to_ccl deals with proximity , bug #4407

The CQL proximity modifiers are supported: unordered (CCL %),
ordered (CCL !), distance with relation <= and < , unit with value
word. Anything but those throws an error.

13 years agoReformat
Adam Dickmeiss [Tue, 19 Jul 2011 09:12:05 +0000 (11:12 +0200)]
Reformat

13 years agoFix up SRU recordData with pseudo root
Adam Dickmeiss [Tue, 19 Jul 2011 09:06:00 +0000 (11:06 +0200)]
Fix up SRU recordData with pseudo root

This is to make recordData XML parseable (document) in case it is an
XML fragment. The inserted root is <yaz-record>. Fixes #4453.

13 years agoSpell fix
Adam Dickmeiss [Mon, 18 Jul 2011 11:27:59 +0000 (13:27 +0200)]
Spell fix

13 years agoCreate constant for SRW max parameters
Dennis Schafroth [Fri, 15 Jul 2011 13:48:29 +0000 (15:48 +0200)]
Create constant for SRW max parameters

13 years agoEncode special characters in term
Dennis Schafroth [Fri, 15 Jul 2011 13:47:55 +0000 (15:47 +0200)]
Encode special characters in term

13 years agoAdd support for extra parameters
Dennis Schafroth [Fri, 15 Jul 2011 13:47:03 +0000 (15:47 +0200)]
Add support for extra parameters

13 years agoSpell fix in comment
Dennis Schafroth [Mon, 11 Jul 2011 11:37:57 +0000 (13:37 +0200)]
Spell fix in comment

13 years agoEscaping :
Dennis Schafroth [Mon, 11 Jul 2011 11:36:38 +0000 (13:36 +0200)]
Escaping :

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
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

13 years agoThe static function bool(), which is part of cql_to_ccl_r(), now makes
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.

13 years agoGFS: properly initialise scan stepSixze
Adam Dickmeiss [Tue, 5 Jul 2011 21:49:51 +0000 (23:49 +0200)]
GFS: properly initialise scan stepSixze

13 years agoDebian control: split long lines
Adam Dickmeiss [Wed, 29 Jun 2011 14:47:33 +0000 (16:47 +0200)]
Debian control: split long lines

13 years agoVersion 4.2.4 v4.2.4
Adam Dickmeiss [Tue, 21 Jun 2011 13:10:11 +0000 (15:10 +0200)]
Version 4.2.4

13 years agoFix uninit-memory for sru/solr databaseRecord
Adam Dickmeiss [Tue, 21 Jun 2011 10:39:12 +0000 (12:39 +0200)]
Fix uninit-memory for sru/solr databaseRecord

13 years agoAnother fix for ccl_qual_dup
Adam Dickmeiss [Tue, 21 Jun 2011 10:38:27 +0000 (12:38 +0200)]
Another fix for ccl_qual_dup

13 years agocql2cql: convert mask char '*'=>'?'
Adam Dickmeiss [Mon, 20 Jun 2011 09:34:03 +0000 (11:34 +0200)]
cql2cql: convert mask char '*'=>'?'

13 years agoVersion 4.2.3 v4.2.3
Adam Dickmeiss [Fri, 17 Jun 2011 10:48:34 +0000 (12:48 +0200)]
Version 4.2.3

13 years agoccl_qual_dup fixes; previous version totally broken
Adam Dickmeiss [Fri, 17 Jun 2011 10:15:55 +0000 (12:15 +0200)]
ccl_qual_dup fixes; previous version totally broken

13 years agoCCL: new utility ccl_qual_dup
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.

13 years agoVersion 4.2.2 v4.2.2
Adam Dickmeiss [Fri, 10 Jun 2011 12:36:21 +0000 (14:36 +0200)]
Version 4.2.2

13 years agoUpdate for new source ccl2ccl
Adam Dickmeiss [Fri, 10 Jun 2011 12:33:08 +0000 (14:33 +0200)]
Update for new source ccl2ccl

13 years agoFix return values for cql_to_ccl_buf
Adam Dickmeiss [Fri, 10 Jun 2011 12:30:32 +0000 (14:30 +0200)]
Fix return values for cql_to_ccl_buf

13 years agoAdd cql_to_ccl_buf
Adam Dickmeiss [Fri, 10 Jun 2011 12:01:26 +0000 (14:01 +0200)]
Add cql_to_ccl_buf

13 years agocql2xcql: option -c makes conversion to CCL.
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).

13 years agoAdd cql_to_ccl and cql_to_ccl_stdio.
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.

13 years agoIgnore test programs
Adam Dickmeiss [Fri, 10 Jun 2011 09:06:31 +0000 (11:06 +0200)]
Ignore test programs

13 years agoWork around a bug in ucol_getSortKey
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.

13 years agoVersion 4.2.1 v4.2.1
Adam Dickmeiss [Tue, 7 Jun 2011 07:40:56 +0000 (09:40 +0200)]
Version 4.2.1

13 years agoNo need for ExternalToolBuilder
Adam Dickmeiss [Mon, 30 May 2011 09:22:56 +0000 (11:22 +0200)]
No need for ExternalToolBuilder

13 years agoEclispse CDT: Use external Makefile
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.

13 years agotest_xml_include: no test wo Libxml2
Adam Dickmeiss [Fri, 27 May 2011 10:50:07 +0000 (12:50 +0200)]
test_xml_include: no test wo Libxml2

13 years agoReformat
Adam Dickmeiss [Fri, 27 May 2011 10:47:25 +0000 (12:47 +0200)]
Reformat

13 years agoFix compilation without Libxml2 (broke in 4.2.0)
Adam Dickmeiss [Fri, 27 May 2011 10:27:47 +0000 (12:27 +0200)]
Fix compilation without Libxml2 (broke in 4.2.0)

13 years agoyaz-client: no extra blanks for searchResult-1 display
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.

13 years agoRemove redundant comment
Adam Dickmeiss [Mon, 23 May 2011 20:47:03 +0000 (22:47 +0200)]
Remove redundant comment

13 years agoVersion 4.2.0 v4.2.0
Adam Dickmeiss [Wed, 18 May 2011 11:59:04 +0000 (11:59 +0000)]
Version 4.2.0

13 years agoSimplify facet parse
Adam Dickmeiss [Wed, 18 May 2011 10:23:18 +0000 (12:23 +0200)]
Simplify facet parse

13 years agoReformat
Adam Dickmeiss [Wed, 18 May 2011 08:51:23 +0000 (10:51 +0200)]
Reformat

13 years agoRename define FACET_DElIMITER->FACET_DELIMITER
Adam Dickmeiss [Wed, 18 May 2011 08:44:57 +0000 (10:44 +0200)]
Rename define FACET_DElIMITER->FACET_DELIMITER

13 years agoyaz-client: reformat
Adam Dickmeiss [Wed, 18 May 2011 08:43:21 +0000 (10:43 +0200)]
yaz-client: reformat

13 years agoyaz-client: remove unused define
Adam Dickmeiss [Wed, 18 May 2011 08:40:29 +0000 (10:40 +0200)]
yaz-client: remove unused define

13 years agoyaz-client: rework facet command; fix leak
Adam Dickmeiss [Wed, 18 May 2011 08:39:14 +0000 (10:39 +0200)]
yaz-client: rework facet command; fix leak

13 years agoyaz-ztest: 10 facet entries by default
Adam Dickmeiss [Tue, 17 May 2011 13:22:15 +0000 (15:22 +0200)]
yaz-ztest: 10 facet entries by default

13 years agoAdd yaz_utf8_check
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.

13 years agoSOLR + facets: use Odr_int for counts
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).

13 years agoAdd z_Term_create for creating Z_Term things
Adam Dickmeiss [Mon, 16 May 2011 13:53:10 +0000 (15:53 +0200)]
Add z_Term_create for creating Z_Term things

13 years agoyaz-icu: fix compilation without ICU (disabled)
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.

13 years agobuildconf.sh: update package list for compiling with sources
Adam Dickmeiss [Mon, 16 May 2011 11:34:03 +0000 (13:34 +0200)]
buildconf.sh: update package list for compiling with sources

13 years agoAdd new function nmem_strsplitx.
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).

13 years agoGFS: fail if CQL properties can not be opened
Adam Dickmeiss [Fri, 13 May 2011 10:18:04 +0000 (12:18 +0200)]
GFS: fail if CQL properties can not be opened

13 years agoSOLR tests: start work on decode tests
Adam Dickmeiss [Thu, 12 May 2011 13:05:42 +0000 (15:05 +0200)]
SOLR tests: start work on decode tests

13 years agoSOLR decode: avoid creating empty records array
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.

13 years agoSOLR facets: no magic for non-date facets
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.

13 years agoReformat; rename fun relationattr -> sortorderattr
Adam Dickmeiss [Thu, 12 May 2011 11:57:51 +0000 (13:57 +0200)]
Reformat; rename fun relationattr -> sortorderattr

13 years agoAdd test for SOLR stuff; memory based, no network.
Adam Dickmeiss [Thu, 12 May 2011 11:03:58 +0000 (13:03 +0200)]
Add test for SOLR stuff; memory based, no network.

13 years agoReformat
Adam Dickmeiss [Thu, 12 May 2011 11:02:25 +0000 (13:02 +0200)]
Reformat

13 years agoReformat
Adam Dickmeiss [Thu, 12 May 2011 11:02:02 +0000 (13:02 +0200)]
Reformat

13 years agoReformat
Adam Dickmeiss [Thu, 12 May 2011 11:01:45 +0000 (13:01 +0200)]
Reformat

13 years agoReformat
Adam Dickmeiss [Thu, 12 May 2011 11:01:42 +0000 (13:01 +0200)]
Reformat

13 years agozoomsh: show returned facets (if any).
Adam Dickmeiss [Wed, 11 May 2011 12:47:12 +0000 (14:47 +0200)]
zoomsh: show returned facets (if any).

13 years agoCQL: ajd is a CQL 2.0 relation
Adam Dickmeiss [Tue, 10 May 2011 10:09:53 +0000 (12:09 +0200)]
CQL: ajd is a CQL 2.0 relation

13 years agoCQL grammar: rename two terminals
Adam Dickmeiss [Tue, 10 May 2011 10:08:55 +0000 (12:08 +0200)]
CQL grammar: rename two terminals

13 years agoUpdate to CQL 2.0 as of Feb 2011
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' .

13 years agoCQL grammar: simplify a bit WRT relations
Adam Dickmeiss [Tue, 10 May 2011 08:43:36 +0000 (10:43 +0200)]
CQL grammar: simplify a bit WRT relations

13 years ago Fix yacc grammar WRT prefix_assignment
Adam Dickmeiss [Mon, 9 May 2011 13:45:54 +0000 (15:45 +0200)]
 Fix yacc grammar WRT prefix_assignment

13 years agoGFS: convert to CQL sortkeys if CQL to PQF is used
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.

13 years agocql_sortby_to_sortkeys: handle modifiers.
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.

13 years agoCQL: start work on cql_sortby_to_sortkeys
Adam Dickmeiss [Wed, 4 May 2011 15:22:23 +0000 (17:22 +0200)]
CQL: start work on cql_sortby_to_sortkeys

13 years agoReformat a bit
Adam Dickmeiss [Wed, 4 May 2011 14:09:29 +0000 (16:09 +0200)]
Reformat a bit

13 years agoCQL: handle SORT node in a few places
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.

13 years agoAdd two CQL sortby tests
Adam Dickmeiss [Wed, 4 May 2011 13:15:32 +0000 (15:15 +0200)]
Add two CQL sortby tests

13 years agoRenamed sh-based tests
Adam Dickmeiss [Wed, 4 May 2011 13:09:33 +0000 (15:09 +0200)]
Renamed sh-based tests