yaz-moved-to-github.git
16 years agoReintroduced the bit "defines for those log bits that are deprecated and
Heikki Levanto [Fri, 26 Nov 2004 10:58:38 +0000 (10:58 +0000)]
Reintroduced the bit "defines for those log bits that are deprecated and
not defined in the new ylog.h

16 years agoTreat field as having subfields even if first char is blank/other
Adam Dickmeiss [Thu, 25 Nov 2004 09:43:10 +0000 (09:43 +0000)]
Treat field as having subfields even if first char is blank/other

16 years agoAdded a man page for yaz-log (7)
Heikki Levanto [Tue, 23 Nov 2004 14:11:03 +0000 (14:11 +0000)]
Added a man page for yaz-log (7)

16 years agoRe-enabled the -v notime option, it was broken.
Heikki Levanto [Tue, 23 Nov 2004 14:10:47 +0000 (14:10 +0000)]
Re-enabled the -v notime option, it was broken.

16 years agoFix new bug introduced by previous commit (../yaz* not used)
Adam Dickmeiss [Mon, 22 Nov 2004 10:54:23 +0000 (10:54 +0000)]
Fix new bug introduced by previous commit (../yaz* not used)

16 years agoUpdate SRW/SRU diagnostic message definitions and store them in separate
Adam Dickmeiss [Sun, 21 Nov 2004 21:56:28 +0000 (21:56 +0000)]
Update SRW/SRU diagnostic message definitions and store them in separate
source: diagsrw.c.

16 years agoAbout log system changes
Adam Dickmeiss [Sun, 21 Nov 2004 21:55:31 +0000 (21:55 +0000)]
About log system changes

16 years agoUpdate log chapter for new log system
Adam Dickmeiss [Sun, 21 Nov 2004 21:55:15 +0000 (21:55 +0000)]
Update log chapter for new log system

16 years agoFixed bug #212: make distcheck uses global yaz, not a local one
Adam Dickmeiss [Fri, 19 Nov 2004 18:31:05 +0000 (18:31 +0000)]
Fixed bug #212: make distcheck uses global yaz, not a local one

16 years agoMoved the #define of logf back into log.h, so that it won't be
Heikki Levanto [Fri, 19 Nov 2004 10:07:08 +0000 (10:07 +0000)]
Moved the #define of logf back into log.h, so that it won't be
available innewer software using ylog.h. It conflicted with a
math function

16 years agoFixed a CDECL thing that broke yaz++
Heikki Levanto [Fri, 19 Nov 2004 09:59:31 +0000 (09:59 +0000)]
Fixed a CDECL thing that broke yaz++

16 years agoDeprecated log.h and created a new ylog.h
Heikki Levanto [Thu, 18 Nov 2004 15:18:10 +0000 (15:18 +0000)]
Deprecated log.h and created a new ylog.h
Renamed all LOG_ #defines to matching YLOG_, and used them everywhere
Used the new dynamic log system in deveral places

16 years agoAdded an option to specify -word in the loglevel parsing, to clear a specific
Heikki Levanto [Wed, 17 Nov 2004 13:03:07 +0000 (13:03 +0000)]
Added an option to specify -word in the loglevel parsing, to clear a specific
bit: -v all,-log

16 years agoModify wrbuf_put_zquery and wrbuf_scan_term so the generated
Adam Dickmeiss [Wed, 17 Nov 2004 00:18:54 +0000 (00:18 +0000)]
Modify wrbuf_put_zquery and wrbuf_scan_term so the generated
PQF code is valid for reparsing.

16 years agoFor @prox operator, the "which" member being known or private
Adam Dickmeiss [Wed, 17 Nov 2004 00:17:17 +0000 (00:17 +0000)]
For @prox operator, the "which" member being known or private
was not set correctly. Use odr_intdup where appropriate.

16 years agoAvoid generating tsticonv.log
Adam Dickmeiss [Tue, 16 Nov 2004 22:51:52 +0000 (22:51 +0000)]
Avoid generating tsticonv.log

16 years agoClean up temp CQL test files
Adam Dickmeiss [Tue, 16 Nov 2004 22:44:31 +0000 (22:44 +0000)]
Clean up temp CQL test files

16 years agoAvoid new ANSI inline declaration
Adam Dickmeiss [Tue, 16 Nov 2004 22:10:29 +0000 (22:10 +0000)]
Avoid new ANSI inline declaration

16 years agoMake sure test only write to build directory to make distcheck happier.
Adam Dickmeiss [Tue, 16 Nov 2004 17:12:28 +0000 (17:12 +0000)]
Make sure test only write to build directory to make distcheck happier.

16 years agoImprovements in the log system, especially on the server side. Now logging on
Heikki Levanto [Tue, 16 Nov 2004 17:08:11 +0000 (17:08 +0000)]
Improvements in the log system, especially on the server side. Now logging on
levels 'server', 'session', 'request', and 'requestdetail', and on 'request',
making only one-line log entries for each request. Documented it too!

16 years agoBump version to 2.0.29
Adam Dickmeiss [Wed, 10 Nov 2004 09:26:43 +0000 (09:26 +0000)]
Bump version to 2.0.29

16 years agoUse strchr,strrchr instead of index/rindex. YAZ.2.0.28
Adam Dickmeiss [Tue, 9 Nov 2004 20:54:08 +0000 (20:54 +0000)]
Use strchr,strrchr instead of index/rindex.

16 years agoAdded marc these regressions test MARCXML records
Adam Dickmeiss [Tue, 9 Nov 2004 20:42:32 +0000 (20:42 +0000)]
Added marc these regressions test MARCXML records

16 years agoTowards 2.0.28
Adam Dickmeiss [Tue, 9 Nov 2004 20:35:30 +0000 (20:35 +0000)]
Towards 2.0.28

16 years agoAnnounce 2.0.27 because of new functions in log.h
Adam Dickmeiss [Tue, 9 Nov 2004 20:33:48 +0000 (20:33 +0000)]
Announce 2.0.27 because of new functions in log.h

16 years agoDescribe the new log utilities
Adam Dickmeiss [Tue, 9 Nov 2004 20:31:13 +0000 (20:31 +0000)]
Describe the new log utilities

16 years agoFixed a bug that caused extra [level] tags in the log
Heikki Levanto [Thu, 4 Nov 2004 14:19:58 +0000 (14:19 +0000)]
Fixed a bug that caused extra [level] tags in the log

16 years agoUsing blanks for assignments (no code changes)
Adam Dickmeiss [Wed, 3 Nov 2004 22:33:17 +0000 (22:33 +0000)]
Using blanks for assignments (no code changes)

16 years agoAdded test program for logging.
Adam Dickmeiss [Wed, 3 Nov 2004 22:30:52 +0000 (22:30 +0000)]
Added test program for logging.

16 years agoFixed a silly typo that made a numeric -v crash
Heikki Levanto [Wed, 3 Nov 2004 17:52:53 +0000 (17:52 +0000)]
Fixed a silly typo that made a numeric -v crash

16 years agoAdded dynamic log-levels:
Heikki Levanto [Wed, 3 Nov 2004 14:25:06 +0000 (14:25 +0000)]
Added dynamic log-levels:
  - yaz_log_mask_str (and _x) can now be called with a previously unknown
  name, which will get a new log bit assigned. This happens in most programs
  when parsing the -v command line option.
  - yaz_log_module_level can be called with a name, and if that name has
  got a bit defined, this bit will be returned, otherwise zero. This
  can then be used as the log_level in yaz_log and logf calls.
  - the names are cleaned from prefix paths and suffixes, so ./foo.c becomes
  foo.
Also added a routine to set the maximum log size, and a few comments in log.h

16 years agoprotecting log rotation with a mutex
Heikki Levanto [Tue, 2 Nov 2004 15:47:31 +0000 (15:47 +0000)]
protecting log rotation with a mutex

16 years agoIgnore .lib, .map, .exp
Adam Dickmeiss [Tue, 2 Nov 2004 14:13:11 +0000 (14:13 +0000)]
Ignore .lib, .map, .exp

16 years agoRotating logfile if exceeding a gigabyte
Heikki Levanto [Tue, 2 Nov 2004 14:13:09 +0000 (14:13 +0000)]
Rotating logfile if exceeding a gigabyte
(need to add a semaphore around it, for multithreaded things)

16 years agoNot buffering the log file, unless LOG_FLUSH is set. Reopening if necessary
Heikki Levanto [Tue, 2 Nov 2004 13:52:54 +0000 (13:52 +0000)]
Not buffering the log file, unless LOG_FLUSH is set. Reopening if necessary

16 years agooops, forgot to give a name to LOG_FLUSH. Now added
Heikki Levanto [Tue, 2 Nov 2004 12:57:54 +0000 (12:57 +0000)]
oops, forgot to give a name to LOG_FLUSH. Now added

16 years agoAdded a new log flag LOG_FLUSH that forces flushing the log after every
Heikki Levanto [Tue, 2 Nov 2004 12:55:04 +0000 (12:55 +0000)]
Added a new log flag LOG_FLUSH that forces flushing the log after every
write. Yaz used to do this unconditionally, now it only does if LOG_FLUSH or
LOG_DEBUG are set in the log level. Presumably speeds up stuff that writes
many log entries...

16 years agoyaz_log_time_format sets the format of the timestamp. See man 3 strftime
Heikki Levanto [Tue, 2 Nov 2004 11:37:21 +0000 (11:37 +0000)]
yaz_log_time_format sets the format of the timestamp. See man 3 strftime
Calling with "old" sets to the old format "11:55:06-02/11"
Calling with NULL or "" sets to the new format "20041102-115719"
If not called at all, the old format is used, for backward compatibility

16 years agoUse Sleep(mseconds) on Windows
Adam Dickmeiss [Mon, 1 Nov 2004 21:19:08 +0000 (21:19 +0000)]
Use Sleep(mseconds) on Windows

16 years agoTowards 2.0.27
Adam Dickmeiss [Mon, 1 Nov 2004 20:59:23 +0000 (20:59 +0000)]
Towards 2.0.27

16 years agoReformat a bit
Adam Dickmeiss [Mon, 1 Nov 2004 20:16:44 +0000 (20:16 +0000)]
Reformat a bit

16 years agoFixed bug #148: CQL parser may leak. CQL nodes now allocated using
Adam Dickmeiss [Mon, 1 Nov 2004 20:13:02 +0000 (20:13 +0000)]
Fixed bug #148: CQL parser may leak. CQL nodes now allocated using
NMEM instead of xmalloc. For this reason, few prototypes were changed in
include/yaz/cql.h.

16 years agoBug fix: explainRequest decoder did not initialize some members when
Adam Dickmeiss [Sun, 31 Oct 2004 19:23:22 +0000 (19:23 +0000)]
Bug fix: explainRequest decoder did not initialize some members when
explain record was missing.

16 years agoReturn proper value for --comp (yaz-asncomp)
Adam Dickmeiss [Wed, 27 Oct 2004 08:18:55 +0000 (08:18 +0000)]
Return proper value for --comp (yaz-asncomp)

16 years agoDoxyfile file description. Indentation. No change of code.
Adam Dickmeiss [Fri, 15 Oct 2004 00:18:59 +0000 (00:18 +0000)]
Doxyfile file description. Indentation. No change of code.

16 years agoAdded a sleep command ..
ja7 [Tue, 12 Oct 2004 13:23:46 +0000 (13:23 +0000)]
Added a sleep command ..

16 years agoFix setting of AM_CPPFLAGS
Adam Dickmeiss [Sun, 10 Oct 2004 22:44:34 +0000 (22:44 +0000)]
Fix setting of AM_CPPFLAGS

16 years agoTesting Deb
Adam Dickmeiss [Sun, 10 Oct 2004 22:21:01 +0000 (22:21 +0000)]
Testing Deb

16 years agoRemove make rpm rule that is never used anymore
Adam Dickmeiss [Sun, 10 Oct 2004 22:17:55 +0000 (22:17 +0000)]
Remove make rpm rule that is never used anymore

16 years agoAbort if OpenSSL does not exist and --with-openssl is given
Adam Dickmeiss [Sun, 10 Oct 2004 22:17:29 +0000 (22:17 +0000)]
Abort if OpenSSL does not exist and --with-openssl is given

16 years agoDont define HAVE_WCHAR_H since wchar_t is a 16-bit int rather than a 32-bit
Adam Dickmeiss [Sun, 10 Oct 2004 21:48:18 +0000 (21:48 +0000)]
Dont define HAVE_WCHAR_H since wchar_t is a 16-bit int rather than a 32-bit
int. So wchar_t can't represent the whole UNICODE anyway.

16 years agoUse other type to avoid warning
Adam Dickmeiss [Sun, 10 Oct 2004 21:43:21 +0000 (21:43 +0000)]
Use other type to avoid warning

16 years agoUpdate NEWS with most important changes
Adam Dickmeiss [Sun, 10 Oct 2004 21:12:25 +0000 (21:12 +0000)]
Update NEWS with most important changes

16 years agoFixed bug #176: Dont throw diagnostics on empty SRU args.
Adam Dickmeiss [Sat, 9 Oct 2004 08:49:55 +0000 (08:49 +0000)]
Fixed bug #176: Dont throw diagnostics on empty SRU args.

16 years agoFixed bug #172: surrogate diagnostics in SRW lacking NS.
Adam Dickmeiss [Sat, 9 Oct 2004 08:21:38 +0000 (08:21 +0000)]
Fixed bug #172: surrogate diagnostics in SRW lacking NS.

16 years agoFixed bug #172: RPM builds does not enable SSL.
Adam Dickmeiss [Sat, 9 Oct 2004 08:03:26 +0000 (08:03 +0000)]
Fixed bug #172: RPM builds does not enable SSL.

16 years agoNot in use
Adam Dickmeiss [Thu, 7 Oct 2004 07:42:34 +0000 (07:42 +0000)]
Not in use

16 years agoInitial work for Doxygen based YAZ reference
Adam Dickmeiss [Sun, 3 Oct 2004 22:34:07 +0000 (22:34 +0000)]
Initial work for Doxygen based YAZ reference

16 years agoUpdate documentation about CQL nodes
Adam Dickmeiss [Sat, 2 Oct 2004 13:41:46 +0000 (13:41 +0000)]
Update documentation about CQL nodes

16 years agoRemove unused define CQL_NODE_MOD
Adam Dickmeiss [Sat, 2 Oct 2004 13:41:14 +0000 (13:41 +0000)]
Remove unused define CQL_NODE_MOD

16 years agoAdded several type casts for C++ compile
Adam Dickmeiss [Sat, 2 Oct 2004 13:28:26 +0000 (13:28 +0000)]
Added several type casts for C++ compile

16 years agoAdd --with-xml2 to RPM spec
Adam Dickmeiss [Sat, 2 Oct 2004 13:27:26 +0000 (13:27 +0000)]
Add --with-xml2 to RPM spec

16 years agoAdd --with-xml2 to configure
Adam Dickmeiss [Fri, 1 Oct 2004 23:01:57 +0000 (23:01 +0000)]
Add --with-xml2 to configure

16 years agoIf --with-xml2, --enable-tcpd is given and they cannot be found,
Adam Dickmeiss [Fri, 1 Oct 2004 23:01:26 +0000 (23:01 +0000)]
If --with-xml2, --enable-tcpd is given and they cannot be found,
configure stops.

16 years agoExtend CCL chapter. Describe r=r
Adam Dickmeiss [Fri, 1 Oct 2004 19:34:09 +0000 (19:34 +0000)]
Extend CCL chapter. Describe r=r

16 years agoNo TESTS here YAZ.2.0.26
Adam Dickmeiss [Fri, 1 Oct 2004 13:16:30 +0000 (13:16 +0000)]
No TESTS here

16 years agoAdded ()s to avoid warning.
Adam Dickmeiss [Fri, 1 Oct 2004 13:16:18 +0000 (13:16 +0000)]
Added ()s to avoid warning.

16 years agoTowards 2.0.26
Adam Dickmeiss [Fri, 1 Oct 2004 13:05:09 +0000 (13:05 +0000)]
Towards 2.0.26

16 years agoFixed MARC utilities to use proper conversion to XML CDATA for subfields,
Adam Dickmeiss [Fri, 1 Oct 2004 11:45:48 +0000 (11:45 +0000)]
Fixed MARC utilities to use proper conversion to XML CDATA for subfields,
tags, etc. to ensure validity of generated MARCXML records and others.

16 years agoPrevent XML CDATA with ASCII control chars (except TAB,CR,LF)
Adam Dickmeiss [Fri, 1 Oct 2004 11:44:46 +0000 (11:44 +0000)]
Prevent XML CDATA with ASCII control chars (except TAB,CR,LF)

16 years agoAdding test for MARC->MARCXML conversions with 3 weird records
Adam Dickmeiss [Fri, 1 Oct 2004 11:43:43 +0000 (11:43 +0000)]
Adding test for MARC->MARCXML conversions with 3 weird records

16 years agoServer returns surrogate diagnostic 14: "System error in presenting
Adam Dickmeiss [Thu, 30 Sep 2004 21:54:22 +0000 (21:54 +0000)]
Server returns surrogate diagnostic 14: "System error in presenting
records" when single record cannot be converted to XML.

16 years agoConvert Z39.50 surrogate diagnostics to SRW diagnostics. Return SRW
Adam Dickmeiss [Thu, 30 Sep 2004 21:51:59 +0000 (21:51 +0000)]
Convert Z39.50 surrogate diagnostics to SRW diagnostics. Return SRW
diagnostic 61: "First record position out of range", properly.

16 years agoRephrase
Adam Dickmeiss [Thu, 30 Sep 2004 18:40:27 +0000 (18:40 +0000)]
Rephrase

16 years agoBug fix: YAZ GFS did not return schema in explainResponse.
Adam Dickmeiss [Thu, 30 Sep 2004 18:40:13 +0000 (18:40 +0000)]
Bug fix: YAZ GFS did not return schema in explainResponse.

16 years agoTowards 2.0.25
Adam Dickmeiss [Thu, 30 Sep 2004 11:23:25 +0000 (11:23 +0000)]
Towards 2.0.25

16 years agoAdded typecast and removed bad assignment
Adam Dickmeiss [Thu, 30 Sep 2004 11:15:52 +0000 (11:15 +0000)]
Added typecast and removed bad assignment

16 years agoThe YAZ GFS when converting SRW/SRU requests to Z39.50 structures
Adam Dickmeiss [Thu, 30 Sep 2004 11:13:42 +0000 (11:13 +0000)]
The YAZ GFS when converting SRW/SRU requests to Z39.50 structures
now converts recordSchema to elementSetName as well as schema URI.

16 years agoCreate NMEM automatically for odr_{str,int}dup.
Adam Dickmeiss [Thu, 30 Sep 2004 11:06:41 +0000 (11:06 +0000)]
Create NMEM automatically for odr_{str,int}dup.

16 years agoFix serious bug regarding HTTP requests (introduced in YAZ 2.0.24)
Adam Dickmeiss [Thu, 30 Sep 2004 10:00:17 +0000 (10:00 +0000)]
Fix serious bug regarding HTTP requests (introduced in YAZ 2.0.24)

16 years agoWe added new functions so require 2.0.24 if YAZ is used. YAZ.2.0.24
Adam Dickmeiss [Wed, 29 Sep 2004 21:08:22 +0000 (21:08 +0000)]
We added new functions so require 2.0.24 if YAZ is used.

16 years agoTowards YAZ 2.0.24
Adam Dickmeiss [Wed, 29 Sep 2004 20:44:44 +0000 (20:44 +0000)]
Towards YAZ 2.0.24

16 years agoAdded CCL facility r=r "range" which is similar to r=o "ordered"
Adam Dickmeiss [Wed, 29 Sep 2004 20:37:50 +0000 (20:37 +0000)]
Added CCL facility r=r "range" which is similar to r=o "ordered"
but does not require white-space before and after the dash, e.g.
x=-1990 is equivalent to x <= 1990 iff r=r, but equivalent to
x= -1980 iff r=o. Added CCL tests for ranges.
Fixed memory leak in CCL parser that occurred when proximity was used.

16 years agoAdded include stdlib.h
Adam Dickmeiss [Wed, 29 Sep 2004 20:15:42 +0000 (20:15 +0000)]
Added include stdlib.h

16 years agoRemove unused variables
Adam Dickmeiss [Wed, 29 Sep 2004 20:14:56 +0000 (20:14 +0000)]
Remove unused variables

16 years agoRephrase info about option -m
Adam Dickmeiss [Wed, 22 Sep 2004 19:22:24 +0000 (19:22 +0000)]
Rephrase info about option -m

16 years agoDocument scanpos and scanstep
Adam Dickmeiss [Wed, 22 Sep 2004 19:22:08 +0000 (19:22 +0000)]
Document scanpos and scanstep

16 years agoNotes about changes
Adam Dickmeiss [Wed, 22 Sep 2004 19:12:53 +0000 (19:12 +0000)]
Notes about changes

16 years agoDo not declare static function f in AC_TRY_LINK test. It is
Adam Dickmeiss [Wed, 22 Sep 2004 14:50:04 +0000 (14:50 +0000)]
Do not declare static function f in AC_TRY_LINK test. It is
not necessary but more importanly the function f gets optimized
away which resulted in error(s) in test result.

16 years agoDebian yaz-2.0.23-3
Adam Dickmeiss [Wed, 22 Sep 2004 13:58:10 +0000 (13:58 +0000)]
Debian yaz-2.0.23-3

16 years agoAdded commands scanpos and scanstep that sets preferred position and
Adam Dickmeiss [Wed, 22 Sep 2004 13:21:37 +0000 (13:21 +0000)]
Added commands scanpos and scanstep that sets preferred position and
scan step respectively. Renamed cmd stepsize to scanstep.

16 years agoAdd command stepsize that sets stepSize for Scan (default 0)
Adam Dickmeiss [Wed, 22 Sep 2004 13:08:31 +0000 (13:08 +0000)]
Add command stepsize that sets stepSize for Scan (default 0)

16 years agoAdd prototype for ccl_qual_buf.
Adam Dickmeiss [Wed, 22 Sep 2004 12:17:24 +0000 (12:17 +0000)]
Add prototype for ccl_qual_buf.

16 years agoWindows 2.0.23-6
Adam Dickmeiss [Wed, 22 Sep 2004 11:22:10 +0000 (11:22 +0000)]
Windows 2.0.23-6

16 years agoAdded CCL utility ccl_qual_buf which parses one or more CCL
Adam Dickmeiss [Wed, 22 Sep 2004 11:21:51 +0000 (11:21 +0000)]
Added CCL utility ccl_qual_buf which parses one or more CCL
spec lines in a buffer.

16 years agoPrepare for new Debian
Adam Dickmeiss [Wed, 22 Sep 2004 09:30:42 +0000 (09:30 +0000)]
Prepare for new Debian

16 years agoFix saving of SRW query for show. Bug introduced by previous commit so
Adam Dickmeiss [Tue, 21 Sep 2004 16:28:17 +0000 (16:28 +0000)]
Fix saving of SRW query for show. Bug introduced by previous commit so
no official YAZ release was affected.

16 years agoFix problem with decoding of HTTP responses with no Content Length
Adam Dickmeiss [Tue, 21 Sep 2004 14:59:01 +0000 (14:59 +0000)]
Fix problem with decoding of HTTP responses with no Content Length
specified.

16 years agoRemove Id from header due to inconvenient diffs when yaz.m4 is copied
Adam Dickmeiss [Fri, 17 Sep 2004 08:44:23 +0000 (08:44 +0000)]
Remove Id from header due to inconvenient diffs when yaz.m4 is copied

16 years agoRephrased comment in NEWS
Adam Dickmeiss [Thu, 16 Sep 2004 17:59:52 +0000 (17:59 +0000)]
Rephrased comment in NEWS