yaz-moved-to-github.git
11 years agoNamespaces more or less in correct place
Adam Dickmeiss [Tue, 3 Sep 2013 13:29:37 +0000 (15:29 +0200)]
Namespaces more or less in correct place

11 years agoRefactor for string based queruType (SRU 2.0)
Adam Dickmeiss [Mon, 2 Sep 2013 13:49:04 +0000 (15:49 +0200)]
Refactor for string based queruType (SRU 2.0)

11 years agoUpdate NEWS
Adam Dickmeiss [Wed, 28 Aug 2013 08:44:52 +0000 (10:44 +0200)]
Update NEWS

11 years agoZOOM: mark record cache with schema as requested
Adam Dickmeiss [Wed, 28 Aug 2013 07:49:59 +0000 (09:49 +0200)]
ZOOM: mark record cache with schema as requested

rather than the one returned in record structure. The problem is that
schema returned by SRU/Solr server may not be present.. So best
assumption is to assume schema as requested. This should fix YAZ-675 .

11 years agoRemove printf
Dennis Schafroth [Fri, 23 Aug 2013 11:34:16 +0000 (13:34 +0200)]
Remove printf

11 years agoAdd tests for newly added >= and <= support
Dennis Schafroth [Fri, 23 Aug 2013 10:49:26 +0000 (12:49 +0200)]
Add tests for newly added >= and <= support

11 years agoRe-arrange. Add "range" test (covered by other tests)
Dennis Schafroth [Fri, 23 Aug 2013 10:47:13 +0000 (12:47 +0200)]
Re-arrange. Add "range" test (covered by other tests)

11 years agoReuse cql.serverChoice is this is what we will get back from pqf properties when...
Dennis Schafroth [Fri, 23 Aug 2013 10:45:40 +0000 (12:45 +0200)]
Reuse cql.serverChoice is this is what we will get back from pqf properties when looking up 1=1016. Support for greater-than-equal and less-than-equal with solr ranges. A range will for now become two ranges and'ed

11 years agoVersion 4.2.65 v4.2.65
Adam Dickmeiss [Thu, 22 Aug 2013 08:36:21 +0000 (10:36 +0200)]
Version 4.2.65

11 years agoFix record caching problem YAZ-673
Adam Dickmeiss [Thu, 22 Aug 2013 08:28:58 +0000 (10:28 +0200)]
Fix record caching problem YAZ-673

Problem introduced in YAZ 4.2.64.

11 years agoVersion 4.2.64 v4.2.64
Adam Dickmeiss [Wed, 21 Aug 2013 12:38:14 +0000 (14:38 +0200)]
Version 4.2.64

11 years agoSolr: fheck for ending "/" and "/select" as part of URI
Adam Dickmeiss [Mon, 19 Aug 2013 14:26:43 +0000 (16:26 +0200)]
Solr: fheck for ending "/" and "/select" as part of URI

11 years agoZOOM: save record schema per request; fix caching
Adam Dickmeiss [Mon, 19 Aug 2013 14:10:47 +0000 (16:10 +0200)]
ZOOM: save record schema per request; fix caching

This also fixes YAZ-671

11 years agoDon't MARC decode XML/HTML
Adam Dickmeiss [Mon, 19 Aug 2013 09:13:36 +0000 (11:13 +0200)]
Don't MARC decode XML/HTML

11 years agoAttempt ISO2709 decoding of any octet aligned record
Adam Dickmeiss [Mon, 19 Aug 2013 08:54:03 +0000 (10:54 +0200)]
Attempt ISO2709 decoding of any octet aligned record

Until this point only certain OIDs would trigger ISO2709 decoding.
With this change all octet aligned records will be run though
the MARC parser. If it's not MARC, an error will only occur if it is
a known MARC OID. If not, all bets are off. It's probably not MARC
if it doesn't parse.

11 years agoVersion 4.2.63 v4.2.63
Adam Dickmeiss [Wed, 17 Jul 2013 12:18:54 +0000 (14:18 +0200)]
Version 4.2.63

11 years agoAdd yaz_strcmp_null
Adam Dickmeiss [Tue, 16 Jul 2013 12:00:10 +0000 (14:00 +0200)]
Add yaz_strcmp_null

11 years agoRemove yaz_log request
Adam Dickmeiss [Fri, 12 Jul 2013 08:54:11 +0000 (10:54 +0200)]
Remove yaz_log request

11 years agoVersion 4.2.62 v4.2.62
Adam Dickmeiss [Thu, 11 Jul 2013 08:04:42 +0000 (10:04 +0200)]
Version 4.2.62

11 years agoUpdate NEWS
Adam Dickmeiss [Thu, 11 Jul 2013 07:45:59 +0000 (09:45 +0200)]
Update NEWS

11 years agoNew utility z_get_HTTP_Response_details
Adam Dickmeiss [Tue, 9 Jul 2013 13:03:19 +0000 (15:03 +0200)]
New utility z_get_HTTP_Response_details

11 years agoNew utility yaz_url_get_error YAZ-669
Adam Dickmeiss [Tue, 9 Jul 2013 13:02:07 +0000 (15:02 +0200)]
New utility yaz_url_get_error YAZ-669

11 years agoUpdate NEWS
Adam Dickmeiss [Tue, 9 Jul 2013 12:12:25 +0000 (14:12 +0200)]
Update NEWS

11 years agoNew functions yaz_file_glob2, yaz_xml_include_glob
Adam Dickmeiss [Mon, 8 Jul 2013 12:09:24 +0000 (14:09 +0200)]
New functions yaz_file_glob2, yaz_xml_include_glob

These functions takes a flags parameter, which, for now only controls
whether to fail inclusion of a non-existing file (without glob
pattern) - flags YAZ_FILE_GLOB_FAIL_NOTEXIST.

11 years agoxml_include fails if file is not found YAZ-668
Adam Dickmeiss [Mon, 8 Jul 2013 11:26:40 +0000 (13:26 +0200)]
xml_include fails if file is not found YAZ-668

Unless glob pattern is used.

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 2 Jul 2013 08:35:27 +0000 (10:35 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

11 years agoAllow max HTTP redirects to be controlled YAZ-667
Adam Dickmeiss [Tue, 2 Jul 2013 08:34:18 +0000 (10:34 +0200)]
Allow max HTTP redirects to be controlled YAZ-667

11 years agoFix change in source repo
Dennis Schafroth [Mon, 1 Jul 2013 11:34:24 +0000 (13:34 +0200)]
Fix change in source repo

11 years agoVersio 4.2.61 v4.2.61
Adam Dickmeiss [Thu, 20 Jun 2013 08:39:23 +0000 (10:39 +0200)]
Versio 4.2.61

11 years agoFix leak in icu_iter_get_org_info YAZ-666
Adam Dickmeiss [Thu, 20 Jun 2013 08:21:01 +0000 (10:21 +0200)]
Fix leak in icu_iter_get_org_info YAZ-666

11 years agoMARC XML parse: insert fake leader if missing YAZ-664
Adam Dickmeiss [Mon, 17 Jun 2013 13:57:08 +0000 (15:57 +0200)]
MARC XML parse: insert fake leader if missing YAZ-664

11 years agoVersion 4.2.60 v4.2.60
Adam Dickmeiss [Fri, 14 Jun 2013 11:42:15 +0000 (13:42 +0200)]
Version 4.2.60

11 years agoFix un-init var in icu_iter_get_org_info YAZ-665
Adam Dickmeiss [Fri, 14 Jun 2013 11:35:19 +0000 (13:35 +0200)]
Fix un-init var in icu_iter_get_org_info YAZ-665

11 years agoNo longer build for Ubuntu natty
Adam Dickmeiss [Wed, 12 Jun 2013 13:42:18 +0000 (15:42 +0200)]
No longer build for Ubuntu natty

11 years agoAvoid statement-not-reached warnings
Adam Dickmeiss [Wed, 12 Jun 2013 13:15:44 +0000 (15:15 +0200)]
Avoid statement-not-reached warnings

11 years agoFix empty declarations
Adam Dickmeiss [Wed, 12 Jun 2013 13:15:03 +0000 (15:15 +0200)]
Fix empty declarations

Issues a warning with some compilers.

11 years agoVersion 4.2.59 v4.2.59
Adam Dickmeiss [Tue, 11 Jun 2013 11:06:05 +0000 (13:06 +0200)]
Version 4.2.59

11 years agoImplement z_HTTP_header_remove
Adam Dickmeiss [Tue, 11 Jun 2013 11:04:30 +0000 (13:04 +0200)]
Implement z_HTTP_header_remove

11 years agoVersion 4.2.58 v4.2.58
Adam Dickmeiss [Tue, 11 Jun 2013 08:58:23 +0000 (10:58 +0200)]
Version 4.2.58

11 years agoMention that @mask requires YAZ 4.2.58
Adam Dickmeiss [Tue, 11 Jun 2013 08:56:19 +0000 (10:56 +0200)]
Mention that @mask requires YAZ 4.2.58

11 years agoMerge branch 'master' into yaz_663
Adam Dickmeiss [Mon, 10 Jun 2013 13:36:32 +0000 (15:36 +0200)]
Merge branch 'master' into yaz_663

11 years agoDisallow 0 ptrs for some ICU string utilities
Adam Dickmeiss [Mon, 3 Jun 2013 13:54:23 +0000 (15:54 +0200)]
Disallow 0 ptrs for some ICU string utilities

11 years agoicu_iter_get_org_info returns size+info in UTF-8
Adam Dickmeiss [Mon, 3 Jun 2013 13:33:56 +0000 (15:33 +0200)]
icu_iter_get_org_info returns size+info in UTF-8

rather than UTF-16.

11 years agoICU: avoid input member
Adam Dickmeiss [Mon, 3 Jun 2013 13:05:52 +0000 (15:05 +0200)]
ICU: avoid input member

11 years agoMerge branch 'master' into yaz_663
Adam Dickmeiss [Fri, 31 May 2013 21:21:46 +0000 (23:21 +0200)]
Merge branch 'master' into yaz_663

11 years agoFix tests for modified internal ICU API
Adam Dickmeiss [Fri, 31 May 2013 21:19:20 +0000 (23:19 +0200)]
Fix tests for modified internal ICU API

11 years agoFirst go at returning start+offset
Adam Dickmeiss [Fri, 31 May 2013 21:05:12 +0000 (23:05 +0200)]
First go at returning start+offset

The offset+size however are based on UChar however.

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Fri, 31 May 2013 14:17:10 +0000 (16:17 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

11 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
Heikki Levanto [Fri, 31 May 2013 13:36:35 +0000 (15:36 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz

11 years agoAdd a flag --test-stop to test programs
Heikki Levanto [Fri, 31 May 2013 13:36:16 +0000 (15:36 +0200)]
Add a flag --test-stop to test programs

11 years agoCCL: avoid z39.58/regex truncation when not needed
Adam Dickmeiss [Wed, 29 May 2013 10:47:43 +0000 (12:47 +0200)]
CCL: avoid z39.58/regex truncation when not needed

Apply only the conversion of those masks, when absolutely necessary.

11 years agoCCL: tests for configurable mask/truncation
Adam Dickmeiss [Wed, 29 May 2013 08:43:24 +0000 (10:43 +0200)]
CCL: tests for configurable mask/truncation

11 years agoCCL: configurable masking character YAZ-661
Adam Dickmeiss [Wed, 29 May 2013 08:42:53 +0000 (10:42 +0200)]
CCL: configurable masking character YAZ-661

11 years agoAdd YAZ_EXPORT to functions in matchstr.h
Adam Dickmeiss [Thu, 16 May 2013 10:37:13 +0000 (12:37 +0200)]
Add YAZ_EXPORT to functions in matchstr.h

11 years agodocument parameter (Doxygen warning)
Adam Dickmeiss [Thu, 16 May 2013 10:36:51 +0000 (12:36 +0200)]
document parameter (Doxygen warning)

11 years agoDefine local strcasecmp funcs
Adam Dickmeiss [Thu, 16 May 2013 10:34:04 +0000 (12:34 +0200)]
Define local strcasecmp funcs

and use them when appropriate.

11 years agoHTTP encode. Remove Transfer-Encoding header
Adam Dickmeiss [Thu, 16 May 2013 08:53:28 +0000 (10:53 +0200)]
HTTP encode. Remove Transfer-Encoding header

YAZ uses content_len and full response anyway, so a Transfer-Encoding
header will obstruct the response.

11 years agoVersion 4.2.57 v4.2.57
Adam Dickmeiss [Wed, 15 May 2013 12:31:59 +0000 (14:31 +0200)]
Version 4.2.57

11 years agoCOMSTACK: @ uses AF_UNSPEC
Adam Dickmeiss [Wed, 15 May 2013 12:11:21 +0000 (14:11 +0200)]
COMSTACK: @ uses AF_UNSPEC

But we prefer AF_INET6 over others when picking a socket. Problem
is that some systems has IPV6 support, but we can't create sockets
for them, so we pick AF_UNSPEC first.

11 years agoAdd check for content_length stuff
Adam Dickmeiss [Wed, 8 May 2013 14:27:21 +0000 (16:27 +0200)]
Add check for content_length stuff

11 years agoHTTP encode. Proper Content-Length YAZ-660
Adam Dickmeiss [Wed, 8 May 2013 09:29:58 +0000 (11:29 +0200)]
HTTP encode. Proper Content-Length YAZ-660

For yaz_encode_http_response use content_len to determine
resulting Content-Length in HTTP response and NOT Content-Length
supplied in headers by user.

11 years agoz_HTTP_header_add_basic_auth uses z_HTTP_header_set
Adam Dickmeiss [Mon, 6 May 2013 10:26:25 +0000 (12:26 +0200)]
z_HTTP_header_add_basic_auth uses z_HTTP_header_set

rather than z_HTTP_header_add, to avoid having two Authorization
headers by mistake.

11 years agoyaz_url_exec: mangle headers HOST/User-Agent
Adam Dickmeiss [Thu, 2 May 2013 11:55:14 +0000 (13:55 +0200)]
yaz_url_exec: mangle headers HOST/User-Agent

Host as returned by z_get_HTTP_Request_uri takes precedence
over user_headers. User-Agent from user_headers takes precedence
over User-Agent YAZ.

11 years agoMake z_HTTP_header_set public and extend z_HTTP_errmsg
Adam Dickmeiss [Thu, 2 May 2013 11:53:51 +0000 (13:53 +0200)]
Make z_HTTP_header_set public and extend z_HTTP_errmsg

Utility z_HTTP_errmsg should now map all HTTP 1.1 diagnostic
codes.

11 years agoTweak trace messages (TRCs) of tcpip.c
Adam Dickmeiss [Wed, 1 May 2013 12:21:04 +0000 (14:21 +0200)]
Tweak trace messages (TRCs) of tcpip.c

11 years agoPrint only first 8K of HTTP pkgs
Adam Dickmeiss [Wed, 1 May 2013 12:18:57 +0000 (14:18 +0200)]
Print only first 8K of HTTP pkgs

and cut off at any zero's - assuming binary content. Also
use odr_write2 in a number of places.

11 years agoAdd odr_write2 (improved odr_write)
Adam Dickmeiss [Wed, 1 May 2013 12:09:39 +0000 (14:09 +0200)]
Add odr_write2 (improved odr_write)

Like odr_write but takes const char*, instead of unsigned char* .

11 years agoyaz_url_exec: only one User-Agent
Adam Dickmeiss [Wed, 1 May 2013 12:05:32 +0000 (14:05 +0200)]
yaz_url_exec: only one User-Agent

User-Agent in headers removes the default User-Agent: YAZ .

11 years agoFix problem with HTTP decoding
Adam Dickmeiss [Wed, 1 May 2013 11:50:31 +0000 (13:50 +0200)]
Fix problem with HTTP decoding

For HTTP 1XX, 204, 304 assume no content-length.

11 years agoFix yaz_base64decode to use proper signed var YAZ-656
Adam Dickmeiss [Tue, 30 Apr 2013 11:37:35 +0000 (13:37 +0200)]
Fix yaz_base64decode to use proper signed var YAZ-656

Problem occurred on platforms with big endian and unsigned char (by
default).

11 years agoNew test: test_zgdu
Adam Dickmeiss [Tue, 30 Apr 2013 09:25:15 +0000 (11:25 +0200)]
New test: test_zgdu

Mostly to demonstrate how to decode HTTP response from a memory
buffer.

11 years agoVersion 4.2.56 v4.2.56
Adam Dickmeiss [Fri, 26 Apr 2013 16:05:46 +0000 (18:05 +0200)]
Version 4.2.56

11 years agoyaz-client: fix crash on connect
Adam Dickmeiss [Fri, 26 Apr 2013 16:02:47 +0000 (18:02 +0200)]
yaz-client: fix crash on connect

Problem introduced by 7e90f2cc9a54 .

11 years agoVersio 4.2.55 v4.2.55
Adam Dickmeiss [Fri, 26 Apr 2013 08:21:00 +0000 (10:21 +0200)]
Versio 4.2.55

11 years agoUpdate NEWS
Adam Dickmeiss [Fri, 26 Apr 2013 07:49:18 +0000 (09:49 +0200)]
Update NEWS

11 years agoyaz-client uses cs_create_host_proxy
Adam Dickmeiss [Tue, 23 Apr 2013 13:00:01 +0000 (15:00 +0200)]
yaz-client uses cs_create_host_proxy

11 years agoFix vhost problem YAZ-654
Adam Dickmeiss [Tue, 23 Apr 2013 12:54:21 +0000 (14:54 +0200)]
Fix vhost problem YAZ-654

Problem was that COMSTACK type was determined by vhost when
proxy was given. Proxy overrides host, except for the determination
of protocol (oid_proto).

11 years agoDebug package libyaz4-dbg. YAZ-653
Adam Dickmeiss [Mon, 22 Apr 2013 12:54:26 +0000 (14:54 +0200)]
Debug package libyaz4-dbg. YAZ-653

11 years agoFix problem with cs_close hang/wait in SSL mode YAZ-652
Adam Dickmeiss [Thu, 18 Apr 2013 12:51:17 +0000 (14:51 +0200)]
Fix problem with cs_close hang/wait in SSL mode YAZ-652

Invoke gnutls_bye differently in tcpip_close

11 years agoVersion 4.2.54 v4.2.54
Adam Dickmeiss [Wed, 17 Apr 2013 08:11:37 +0000 (10:11 +0200)]
Version 4.2.54

11 years agoFix YAZ4J Description
Adam Dickmeiss [Wed, 17 Apr 2013 08:11:31 +0000 (10:11 +0200)]
Fix YAZ4J Description

11 years agoUpdate NEWS
Adam Dickmeiss [Wed, 17 Apr 2013 07:10:18 +0000 (09:10 +0200)]
Update NEWS

11 years agocql2pqf: option -S for strict mode
Adam Dickmeiss [Tue, 16 Apr 2013 14:28:09 +0000 (16:28 +0200)]
cql2pqf: option -S for strict mode

11 years agocql_parser_strict
Adam Dickmeiss [Tue, 16 Apr 2013 14:21:03 +0000 (16:21 +0200)]
cql_parser_strict

cql_parser_strict with mode=1 puts CQL parser in a mode where
CQL parser is conforming to standard.

11 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
Adam Dickmeiss [Tue, 16 Apr 2013 11:18:30 +0000 (13:18 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz

11 years agoBumdle yaz4j.{jar,dll} with YAZ
Adam Dickmeiss [Tue, 16 Apr 2013 11:17:43 +0000 (13:17 +0200)]
Bumdle yaz4j.{jar,dll} with YAZ

11 years agoyaz-ztest: return OPACXML for syntax=XML, esn=OP
Adam Dickmeiss [Fri, 12 Apr 2013 18:36:17 +0000 (20:36 +0200)]
yaz-ztest: return OPACXML for syntax=XML, esn=OP

Purely for having a test server returns OPACXML.

11 years agoRevert "CQL: accept relations "within", "encloses""
Adam Dickmeiss [Fri, 12 Apr 2013 12:17:43 +0000 (14:17 +0200)]
Revert "CQL: accept relations "within", "encloses""

This reverts commit e4e5f0bfaa1fcb5eb12cc37df216352df226b01e.

11 years agoRevert "Remove HDCQL functionality"
Adam Dickmeiss [Fri, 12 Apr 2013 12:16:37 +0000 (14:16 +0200)]
Revert "Remove HDCQL functionality"

This reverts commit 9084e20f4c5ffad9cfea2087396206b75a3a6654.

11 years agoVersion 4.2.53 v4.2.53
Adam Dickmeiss [Wed, 10 Apr 2013 12:10:09 +0000 (14:10 +0200)]
Version 4.2.53

11 years agoMARC8c allows encoding of control characters (except ESC)
Adam Dickmeiss [Wed, 10 Apr 2013 12:04:23 +0000 (14:04 +0200)]
MARC8c allows encoding of control characters (except ESC)

MARC8 work as before.

11 years agoMARC 8 encoding: never pass through ESC
Adam Dickmeiss [Wed, 10 Apr 2013 11:50:10 +0000 (13:50 +0200)]
MARC 8 encoding: never pass through ESC

as it is also uesd as escape for MARC-8 itself.

11 years agoMARC8: keep existing behavior for control characters
Adam Dickmeiss [Wed, 10 Apr 2013 10:15:31 +0000 (12:15 +0200)]
MARC8: keep existing behavior for control characters

But create a new name, MARC8c, that passes all control characters
through.

11 years agoMARC-8: allow all characters 0x01-0x20 YAZ-650
Adam Dickmeiss [Wed, 10 Apr 2013 09:07:58 +0000 (11:07 +0200)]
MARC-8: allow all characters 0x01-0x20 YAZ-650

11 years agoFix dup'ed identifers for MARC-8 encoding YAZ-650
Adam Dickmeiss [Wed, 10 Apr 2013 08:49:11 +0000 (10:49 +0200)]
Fix dup'ed identifers for MARC-8 encoding YAZ-650

The problem was that cdata_one_character did not fully flush the
output and so that would be carried over to the "real" output.

11 years agoVersion 4.2.52 v4.2.52
Adam Dickmeiss [Wed, 3 Apr 2013 11:30:02 +0000 (13:30 +0200)]
Version 4.2.52

11 years agoMerge branch 'normal_cql'
Adam Dickmeiss [Wed, 3 Apr 2013 11:21:58 +0000 (13:21 +0200)]
Merge branch 'normal_cql'

11 years agoyaz-ztest: Use hash rather for fake hit count
Adam Dickmeiss [Wed, 3 Apr 2013 10:49:42 +0000 (12:49 +0200)]
yaz-ztest: Use hash rather for fake hit count

Before, random number was used. This is problematic for unit tests
using yaz-ztest. This patch also makes a hash for CQL queries.
For RPN, any term with a leading digit will be treated as pseudu
hit count (to force any particular hit count by a client).

11 years agoyaz-ztest: return unique MARC dummy records
Adam Dickmeiss [Wed, 3 Apr 2013 10:48:35 +0000 (12:48 +0200)]
yaz-ztest: return unique MARC dummy records

Beyond record offset 24, the author surname is patched
with offset to make all records unique.

11 years agoMarcdump -c tries to make more readable strings
Adam Dickmeiss [Wed, 3 Apr 2013 09:24:44 +0000 (11:24 +0200)]
Marcdump -c tries to make more readable strings

For chr values 32 - 126 the charcter is produced verbatim.