yaz-moved-to-github.git
9 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).

9 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

9 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

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

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

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

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

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

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

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

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

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

9 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

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

9 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' .

9 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

9 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

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

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

9 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

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

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

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

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

9 years agoCQL sortby; conversion to XML done.
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.

9 years agoAdd emacs/vim local variables
Adam Dickmeiss [Tue, 3 May 2011 12:28:20 +0000 (14:28 +0200)]
Add emacs/vim local variables

9 years agoAdd Debian wheezy, Ubuntu natty
Adam Dickmeiss [Fri, 29 Apr 2011 11:21:55 +0000 (11:21 +0000)]
Add Debian wheezy, Ubuntu natty

9 years agoOmit redundant include of yaz/yconfig.h.
Adam Dickmeiss [Fri, 29 Apr 2011 08:18:39 +0000 (10:18 +0200)]
Omit redundant include of yaz/yconfig.h.

9 years agoAvoid printf %.*s for arbitrary strings
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.

9 years agoAvoid ctype.h .
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.

9 years agoRename internal func yaz_use_attribute_create
Adam Dickmeiss [Mon, 11 Apr 2011 11:05:17 +0000 (13:05 +0200)]
Rename internal func yaz_use_attribute_create

9 years agoLog SRU auth params in GFS
Adam Dickmeiss [Mon, 11 Apr 2011 10:14:41 +0000 (12:14 +0200)]
Log SRU auth params in GFS

9 years agoSRU SOAP decoding: handle HTTP basic auth as well
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.

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

9 years agoHandle password=0 for z_HTTP_header_add_basic_auth
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.

9 years agoRemove empty lines and out-commented irrelevant test
Dennis Schafroth [Thu, 7 Apr 2011 12:13:59 +0000 (14:13 +0200)]
Remove empty lines and out-commented irrelevant test

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

9 years agoRemove symbolic tests. Works only for ccl
Dennis Schafroth [Thu, 7 Apr 2011 12:07:03 +0000 (14:07 +0200)]
Remove symbolic tests. Works only for ccl

9 years agoAdd truncation tests
Dennis Schafroth [Thu, 7 Apr 2011 12:06:14 +0000 (14:06 +0200)]
Add truncation tests

9 years agoFix left-right truncation fix
Dennis Schafroth [Thu, 7 Apr 2011 12:05:32 +0000 (14:05 +0200)]
Fix left-right truncation fix

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

9 years agoNSIS: Set InstallDir depending on x86/x64
Adam Dickmeiss [Thu, 7 Apr 2011 11:57:27 +0000 (13:57 +0200)]
NSIS: Set InstallDir depending on x86/x64

9 years agonmake: add make64 target
Adam Dickmeiss [Thu, 7 Apr 2011 11:57:05 +0000 (13:57 +0200)]
nmake: add make64 target

9 years agoTest for truncation. Not sure how CQL handles it
Dennis Schafroth [Thu, 7 Apr 2011 11:42:50 +0000 (13:42 +0200)]
Test for truncation. Not sure how CQL handles it

9 years agoTest that would have caught the truncation flags switch
Dennis Schafroth [Thu, 7 Apr 2011 11:41:40 +0000 (13:41 +0200)]
Test that would have caught the truncation flags switch

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

9 years agoFix left/right switch of truncation flag
Dennis Schafroth [Thu, 7 Apr 2011 11:35:05 +0000 (13:35 +0200)]
Fix left/right switch of truncation flag

9 years agoMods to tests to avoid clang warnings
Adam Dickmeiss [Tue, 5 Apr 2011 11:50:08 +0000 (13:50 +0200)]
Mods to tests to avoid clang warnings

9 years agoAdjust code a little 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

9 years agotest_icu uses sortkey. Calls ICU cleanup.
Adam Dickmeiss [Fri, 1 Apr 2011 12:03:21 +0000 (14:03 +0200)]
test_icu uses sortkey. Calls ICU cleanup.

9 years agoReformatting
Adam Dickmeiss [Thu, 31 Mar 2011 12:34:44 +0000 (14:34 +0200)]
Reformatting

9 years agoReformatting
Adam Dickmeiss [Thu, 31 Mar 2011 12:23:38 +0000 (14:23 +0200)]
Reformatting

9 years agoMake element_name_append_attribute_value static
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 ..

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

9 years agoBuild 64-bit YAZ with Libxml2, libxslt and ICU
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.

9 years agoyaz-icu.c refactor and cleanup
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.

9 years agoyaz-icu: input file may be given.
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.

9 years agoRemove redundant utf-16 buffer term
Adam Dickmeiss [Wed, 30 Mar 2011 11:41:12 +0000 (13:41 +0200)]
Remove redundant utf-16 buffer term

9 years agoZOOM: diagnostics for invalid ES usage, bug #3893.
Adam Dickmeiss [Thu, 24 Mar 2011 09:33:34 +0000 (10:33 +0100)]
ZOOM: diagnostics for invalid ES usage, bug #3893.

9 years agoGFS: make statserv_main return for one-shot mode.
Adam Dickmeiss [Thu, 17 Mar 2011 08:19:22 +0000 (09:19 +0100)]
GFS: make statserv_main return for one-shot mode.

Bug #4064.

9 years agoRemove extensive debug logging
Dennis Schafroth [Wed, 16 Mar 2011 13:54:09 +0000 (14:54 +0100)]
Remove extensive debug logging

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 15 Mar 2011 13:19:48 +0000 (14:19 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

Conflicts:
win/yaz.nsi

9 years agoVersion 4.1.7 v4.1.7
Adam Dickmeiss [Tue, 15 Mar 2011 13:11:09 +0000 (14:11 +0100)]
Version 4.1.7

9 years agoNSIS: add configure.ac
Adam Dickmeiss [Tue, 15 Mar 2011 13:10:46 +0000 (14:10 +0100)]
NSIS: add configure.ac

A nmake rule depends on it so we need it be part of the
'YAZ Source' component.

9 years agoNSIS: add configure.ac
Adam Dickmeiss [Tue, 15 Mar 2011 12:56:50 +0000 (13:56 +0100)]
NSIS: add configure.ac

A nmake rule depends on it so we need it be part of the
'YAZ Source' component.

9 years agoUpdate WIN32 makefile for stemmer
Adam Dickmeiss [Tue, 15 Mar 2011 12:28:13 +0000 (13:28 +0100)]
Update WIN32 makefile for stemmer

9 years agoUpdate m4
Adam Dickmeiss [Tue, 15 Mar 2011 10:23:59 +0000 (11:23 +0100)]
Update m4

9 years agoMulti iconv conversions for yaz_opac_decode_wrbuf2
Adam Dickmeiss [Tue, 15 Mar 2011 08:44:26 +0000 (09:44 +0100)]
Multi iconv conversions for yaz_opac_decode_wrbuf2

This function uses iconv handle for MARC first; failing that uses iconv
handle supplied to function yaz_opac_decode_wrbuf. Bug #4048.

9 years agoAdd new function wrbuf_iconv_write_x
Adam Dickmeiss [Tue, 15 Mar 2011 08:43:18 +0000 (09:43 +0100)]
Add new function wrbuf_iconv_write_x

Is a generic WRBUF writer for iconv+cdata as an option . Returns
if writing was successful or not.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Fri, 11 Mar 2011 12:36:52 +0000 (13:36 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

9 years agoout-defined logging of stemming
Dennis Schafroth [Fri, 11 Mar 2011 12:36:39 +0000 (13:36 +0100)]
out-defined logging of stemming

9 years agoVersion 4.1.6 v4.1.6
Adam Dickmeiss [Thu, 10 Mar 2011 09:27:53 +0000 (10:27 +0100)]
Version 4.1.6

9 years agoAvoid empty strings for yaz_iconv_open
Adam Dickmeiss [Thu, 10 Mar 2011 09:22:53 +0000 (10:22 +0100)]
Avoid empty strings for yaz_iconv_open

yaz_iconv_open apparently returns a non-null handle in case of
to=(null) and from="" .. Avoid we call it this way. This resulted
in bad records for Pazpar2 and was introduced in YAZ 4.1.5.

9 years agoFix date for NEWS
Adam Dickmeiss [Tue, 8 Mar 2011 13:22:10 +0000 (14:22 +0100)]
Fix date for NEWS

9 years agoVersion 4.1.5 v4.1.5
Adam Dickmeiss [Tue, 8 Mar 2011 12:54:07 +0000 (13:54 +0100)]
Version 4.1.5

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 8 Mar 2011 12:30:55 +0000 (13:30 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

9 years agoSeparate OPAC record character set for ZOOM_record
Adam Dickmeiss [Tue, 8 Mar 2011 12:28:34 +0000 (13:28 +0100)]
Separate OPAC record character set for ZOOM_record

yaz_record_render allows a character set given as charset=from/opacfrom,to
where 'from' is the character set of a bibliographic record, 'opacfrom'
is character set of OPAC record and 'to' is the target character set.

9 years agoImplement yaz_opac_decode_wrbuf2
Adam Dickmeiss [Tue, 8 Mar 2011 12:28:10 +0000 (13:28 +0100)]
Implement yaz_opac_decode_wrbuf2

This function behaves likes yaz_opac_decode_wrbuf but takes yaz_iconv_t
to allow character set conversion different from yaz_iconv_t part of
yaz_marc_t. This is because OPAC record ASN.1 fields may have different
encoding from the bibliographic MARC record.

10 years agoFix: import header so we dont return a int and seg.fault on that.
Dennis Schafroth [Fri, 4 Mar 2011 12:16:36 +0000 (13:16 +0100)]
Fix: import header so we dont return a int and seg.fault on that.

10 years agomethods for handling DADS SRU-proxy facets
Dennis Schafroth [Fri, 4 Mar 2011 11:26:55 +0000 (12:26 +0100)]
methods for handling DADS SRU-proxy facets

10 years agoRefactor location of utility methods
Dennis Schafroth [Fri, 4 Mar 2011 11:25:55 +0000 (12:25 +0100)]
Refactor location of utility methods

10 years agoAdd yaz_use_atttribute_create to private API
Dennis Schafroth [Fri, 4 Mar 2011 10:26:35 +0000 (11:26 +0100)]
Add yaz_use_atttribute_create to private API

10 years agoMoved yaz_solr_use_atttribute_create to srwutil. Support for null attribute name...
Dennis Schafroth [Fri, 4 Mar 2011 10:25:37 +0000 (11:25 +0100)]
Moved yaz_solr_use_atttribute_create to srwutil. Support for null attribute name in match_xml_node_attribute

10 years agoNew non-public resultsets_count
Dennis Schafroth [Thu, 24 Feb 2011 11:23:07 +0000 (12:23 +0100)]
New non-public resultsets_count

10 years agoVersion 4.1.4 v4.1.4
Adam Dickmeiss [Mon, 21 Feb 2011 11:52:35 +0000 (12:52 +0100)]
Version 4.1.4

10 years agoyaz-client: show may XML format records
Adam Dickmeiss [Mon, 21 Feb 2011 11:42:36 +0000 (12:42 +0100)]
yaz-client: show may XML format records

Command show followed by 'format' will format XML records retrieved
using Libxml2's xmlDocDumpFormatMemory function.

10 years agodocument icu4 for FreeBSD
Wolfram Schneider [Sat, 19 Feb 2011 11:52:50 +0000 (12:52 +0100)]
document icu4 for FreeBSD

10 years agoupdate help message for FreeBSD
Wolfram Schneider [Sat, 19 Feb 2011 11:43:51 +0000 (12:43 +0100)]
update help message for FreeBSD

10 years agorun on FreeBSD 8.1 Release
Wolfram Schneider [Sat, 19 Feb 2011 11:37:50 +0000 (12:37 +0100)]
run on FreeBSD 8.1 Release

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Fri, 18 Feb 2011 12:48:18 +0000 (13:48 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

10 years agoRemove unnessesary union
Dennis Schafroth [Fri, 18 Feb 2011 12:47:59 +0000 (13:47 +0100)]
Remove unnessesary union

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Wed, 2 Feb 2011 08:20:24 +0000 (09:20 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

10 years agoFor phpyaz: set YAZVERSION, not YAZ_VERSION
Adam Dickmeiss [Wed, 2 Feb 2011 08:19:35 +0000 (09:19 +0100)]
For phpyaz: set YAZVERSION, not YAZ_VERSION

Thanks to Dave Burgess for pointing that out.

10 years agoFix compilation for case of unavailable ICU
Adam Dickmeiss [Sat, 29 Jan 2011 14:35:07 +0000 (15:35 +0100)]
Fix compilation for case of unavailable ICU

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Thu, 27 Jan 2011 13:44:47 +0000 (14:44 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Thu, 27 Jan 2011 13:32:25 +0000 (14:32 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

10 years agoNew libstemmer test
Dennis Schafroth [Thu, 27 Jan 2011 13:32:20 +0000 (14:32 +0100)]
New libstemmer test

10 years agoVersion 4.1.3 v4.1.3
Adam Dickmeiss [Thu, 27 Jan 2011 13:06:06 +0000 (14:06 +0100)]
Version 4.1.3

10 years agoUpdate NEWS
Adam Dickmeiss [Thu, 27 Jan 2011 12:56:42 +0000 (13:56 +0100)]
Update NEWS

10 years agoRPM: Release includes 'indexdata' name
Adam Dickmeiss [Thu, 27 Jan 2011 09:43:39 +0000 (10:43 +0100)]
RPM: Release includes 'indexdata' name

Use indexdata in release name so this package can be distinguished
from other vendors.