pazpar2-moved-to-github.git
14 years agoOmit etc/pazpar2.cfg from dist
Adam Dickmeiss [Fri, 25 Sep 2009 12:11:14 +0000 (14:11 +0200)]
Omit etc/pazpar2.cfg from dist

14 years agoUpdate ignore files.
Adam Dickmeiss [Fri, 25 Sep 2009 12:08:36 +0000 (14:08 +0200)]
Update ignore files.

14 years agoAdd AC_C_INLINE
Adam Dickmeiss [Fri, 25 Sep 2009 11:33:53 +0000 (13:33 +0200)]
Add AC_C_INLINE

14 years agodisable inline if AC_C_INLINE is not in use
Adam Dickmeiss [Fri, 25 Sep 2009 11:33:37 +0000 (13:33 +0200)]
disable inline if AC_C_INLINE is not in use

14 years agoMods for Windows compilation
Adam Dickmeiss [Fri, 25 Sep 2009 08:37:54 +0000 (10:37 +0200)]
Mods for Windows compilation

14 years agoMark inline functions static.
Adam Dickmeiss [Fri, 25 Sep 2009 07:57:36 +0000 (09:57 +0200)]
Mark inline functions static.

Mark the strtrimcat and strtrimcpy static. This fixes compilation of
Pazpar2 for Sun Studio C.

14 years agoAdd test result (test_post_7).
Adam Dickmeiss [Thu, 24 Sep 2009 19:06:30 +0000 (21:06 +0200)]
Add test result (test_post_7).

14 years agoPOST of target settings.
Adam Dickmeiss [Thu, 24 Sep 2009 13:06:35 +0000 (15:06 +0200)]
POST of target settings.

Command settings now looks for posted content , content-type=text/xml,
in which case that is XML parsed in the same way as "static" target
settings.

14 years agoDo not include util.h (deleted)
Adam Dickmeiss [Thu, 24 Sep 2009 13:06:04 +0000 (15:06 +0200)]
Do not include util.h (deleted)

14 years agoFix leaks for marchash_ingest_marcxml
Adam Dickmeiss [Thu, 24 Sep 2009 11:08:30 +0000 (13:08 +0200)]
Fix leaks for marchash_ingest_marcxml

14 years agoFix leak for show raw
Adam Dickmeiss [Thu, 24 Sep 2009 11:08:02 +0000 (13:08 +0200)]
Fix leak for show raw

14 years agoTest POST of one more service.
Adam Dickmeiss [Thu, 24 Sep 2009 08:13:36 +0000 (10:13 +0200)]
Test POST of one more service.

14 years agoUpdate tests - embedded settings in service.
Adam Dickmeiss [Thu, 24 Sep 2009 08:03:55 +0000 (10:03 +0200)]
Update tests - embedded settings in service.

The gils_service.xml now has settings embedded. The pz:name of GILS
and MARC server has been changed. And so, expected test results are
updated.

14 years agoFix connect timeout problem on Solaris.
Adam Dickmeiss [Thu, 24 Sep 2009 07:40:53 +0000 (09:40 +0200)]
Fix connect timeout problem on Solaris.

This problem was seen on Solaris but could happen anywhere. Pazpar2
did not detect that Connection was established. And consequently did
not change timeout from 'Z39.50 connect timeout' to 'Z39.50 session
timeout'. Since The former is only 15 seconds by default a slow search
would be aborted when it shouldn't. This commit removes a call to
ZOOM_connection_process which, on Solaris, would grab one or more
events out, so that Pazpar2 was not informed.

14 years agoUpdate test results.
Adam Dickmeiss [Thu, 24 Sep 2009 07:33:58 +0000 (09:33 +0200)]
Update test results.

14 years agoFix calls to wget for first time test.
Adam Dickmeiss [Thu, 24 Sep 2009 07:11:01 +0000 (09:11 +0200)]
Fix calls to wget for first time test.

14 years agoSmaller Pazpar2 config
Adam Dickmeiss [Thu, 24 Sep 2009 07:10:42 +0000 (09:10 +0200)]
Smaller Pazpar2 config

14 years agoSlightly more wait for test_post
Adam Dickmeiss [Thu, 24 Sep 2009 07:10:05 +0000 (09:10 +0200)]
Slightly more wait for test_post

14 years agoAdd test for POST of service.
Adam Dickmeiss [Thu, 24 Sep 2009 06:41:30 +0000 (08:41 +0200)]
Add test for POST of service.

Add test script, config files, etc for POST of service for command=init.
These were accidently omitted in commit
fdf549621a2712e2e7fafd5966bbbf9a5c891adf.

14 years agoService may be POSTed for command=init.
Adam Dickmeiss [Wed, 23 Sep 2009 14:16:06 +0000 (16:16 +0200)]
Service may be POSTed for command=init.

A service may be posted for command=init. This service will be used
during the session. The service may have its own target settings,
ICU config, timeout, etc. In order to be recognized, the POST request
must use Content-Type=text/xml.

14 years agoFix session in some tests.
Adam Dickmeiss [Wed, 23 Sep 2009 14:09:43 +0000 (16:09 +0200)]
Fix session in some tests.

14 years agoRe-structure conf/server/service ptrs
Adam Dickmeiss [Wed, 23 Sep 2009 12:29:48 +0000 (14:29 +0200)]
Re-structure conf/server/service ptrs

14 years agoWindows: update for new source.
Adam Dickmeiss [Wed, 23 Sep 2009 11:21:40 +0000 (13:21 +0200)]
Windows: update for new source.

14 years agoAdd include of config.h
Adam Dickmeiss [Wed, 23 Sep 2009 11:20:35 +0000 (13:20 +0200)]
Add include of config.h

14 years agoDRY out multiple hash functions.
Adam Dickmeiss [Wed, 23 Sep 2009 11:19:18 +0000 (13:19 +0200)]
DRY out multiple hash functions.

Jenkins hash function now in one place.

14 years agoClean-up to avoid GCC warnings, constify.
Adam Dickmeiss [Wed, 23 Sep 2009 11:10:20 +0000 (13:10 +0200)]
Clean-up to avoid GCC warnings, constify.

14 years agoHeader+footer for mmap stuff
Adam Dickmeiss [Wed, 23 Sep 2009 10:46:03 +0000 (12:46 +0200)]
Header+footer for mmap stuff

14 years agoMore clean-up (remove util.c).
Adam Dickmeiss [Wed, 23 Sep 2009 10:41:39 +0000 (12:41 +0200)]
More clean-up (remove util.c).

14 years agoTimeout per-service, obsoletes -T
Adam Dickmeiss [Wed, 23 Sep 2009 10:17:11 +0000 (12:17 +0200)]
Timeout per-service, obsoletes -T

Timeout values may be given per-service. That's element 'timeout'
which takes three attribute values (a subset may be given): 'session',
'z3950_connect', 'z3950_session'. Option -T is no longer supported
- used to specify session timeout.

14 years agoRefactor. Make private functions static.
Adam Dickmeiss [Wed, 23 Sep 2009 08:49:59 +0000 (10:49 +0200)]
Refactor. Make private functions static.

14 years agoRemove unused code
Adam Dickmeiss [Wed, 23 Sep 2009 07:54:18 +0000 (09:54 +0200)]
Remove unused code

14 years agoRename function
Adam Dickmeiss [Wed, 23 Sep 2009 07:53:54 +0000 (09:53 +0200)]
Rename function

14 years agoAdd test for marc map
Adam Dickmeiss [Mon, 21 Sep 2009 14:17:12 +0000 (16:17 +0200)]
Add test for marc map

14 years agoMerge branch 'master' of git://git.indexdata.com/pazpar2
Jason Skomorowski [Fri, 18 Sep 2009 14:41:34 +0000 (10:41 -0400)]
Merge branch 'master' of git://git.indexdata.com/pazpar2

Conflicts:
src/logic.c

14 years agoFirst stab at a marc map as a fast alternat to XSLT
Jason Skomorowski [Fri, 18 Sep 2009 14:02:19 +0000 (10:02 -0400)]
First stab at a marc map as a fast alternat to XSLT

14 years agoRemove unused member
Adam Dickmeiss [Fri, 18 Sep 2009 10:43:57 +0000 (12:43 +0200)]
Remove unused member

14 years agoRemove unused global: timeout
Adam Dickmeiss [Fri, 18 Sep 2009 08:00:00 +0000 (10:00 +0200)]
Remove unused global: timeout

14 years agoRemove us1 targets
Adam Dickmeiss [Thu, 17 Sep 2009 10:17:05 +0000 (12:17 +0200)]
Remove us1 targets

14 years agoUpdate WRT settings, relevance etc.
Adam Dickmeiss [Thu, 17 Sep 2009 09:24:56 +0000 (11:24 +0200)]
Update WRT settings, relevance etc.

14 years agoUpdate test1 to not use option -t.
Adam Dickmeiss [Thu, 17 Sep 2009 09:24:02 +0000 (11:24 +0200)]
Update test1 to not use option -t.

14 years agoCharacter normalization per-service.
Adam Dickmeiss [Thu, 17 Sep 2009 09:16:03 +0000 (11:16 +0200)]
Character normalization per-service.

The elements 'relevance', 'sort', 'mergekey' may now be given
inside service element as well as server. The server elements are
for a service if it does not specify the normalization itself.
The settings and normalization info is now inheried to each service
in a separate pass to ensure that order does not matter.

14 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Adam Dickmeiss [Wed, 16 Sep 2009 12:00:23 +0000 (14:00 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

14 years agoFix install doc rule for Automake 1.11
Adam Dickmeiss [Wed, 16 Sep 2009 11:58:34 +0000 (13:58 +0200)]
Fix install doc rule for Automake 1.11

14 years agoAdded pz:sort setting
Sebastian Hammer [Tue, 15 Sep 2009 02:32:04 +0000 (02:32 +0000)]
Added pz:sort setting

14 years agoRelease NMEM when config cant be read
Adam Dickmeiss [Thu, 10 Sep 2009 13:31:55 +0000 (15:31 +0200)]
Release NMEM when config cant be read

14 years agoFix leak in pp2_charset_destroy
Adam Dickmeiss [Thu, 10 Sep 2009 13:30:47 +0000 (15:30 +0200)]
Fix leak in pp2_charset_destroy

14 years agoFix leak in load_database.
Adam Dickmeiss [Thu, 10 Sep 2009 13:29:57 +0000 (15:29 +0200)]
Fix leak in load_database.

This leak is small but seems to have been there for quite some time.

14 years agoEmbeddable settings (repeatable).
Adam Dickmeiss [Thu, 10 Sep 2009 13:02:18 +0000 (15:02 +0200)]
Embeddable settings (repeatable).

The settings element may be be included verbatim in a service and it
is repeatable. This pretty makes settings with the src attribute
obsolete because of the include facility.

14 years agoMore strict metadata assignment code
Adam Dickmeiss [Thu, 10 Sep 2009 10:56:14 +0000 (12:56 +0200)]
More strict metadata assignment code

14 years agoRefactor read_settings_file
Adam Dickmeiss [Thu, 10 Sep 2009 10:55:46 +0000 (12:55 +0200)]
Refactor read_settings_file

14 years agoGet rid of useless tests.
Adam Dickmeiss [Thu, 10 Sep 2009 10:50:55 +0000 (12:50 +0200)]
Get rid of useless tests.

14 years agoRemove proxy override.
Adam Dickmeiss [Thu, 10 Sep 2009 10:34:17 +0000 (12:34 +0200)]
Remove proxy override.

The proxy override global and now local variable has not been configurable
ever. So this code can be safely removed.

14 years agoAdd check of configuration (-t).
Adam Dickmeiss [Thu, 10 Sep 2009 10:30:44 +0000 (12:30 +0200)]
Add check of configuration (-t).

Option -t tests the Pazpar2 configuration and returns exit code
(0=success, non-zero=failure). The configuration is dumped to the yaz
log file if -d is given. Previously the configuration was dumped always
to stdout.

14 years agoRemove support for option -t.
Adam Dickmeiss [Thu, 10 Sep 2009 09:19:37 +0000 (11:19 +0200)]
Remove support for option -t.

Option -t allows a settings file to be given on the command line.
This patch removes that facility. It is a rarely used facility.

14 years agoRephrase v1.2.0
Adam Dickmeiss [Thu, 10 Sep 2009 08:45:01 +0000 (10:45 +0200)]
Rephrase

14 years agoVersion 1.2.0
Adam Dickmeiss [Thu, 10 Sep 2009 08:40:35 +0000 (10:40 +0200)]
Version 1.2.0

14 years agoDescribe include facility
Adam Dickmeiss [Thu, 10 Sep 2009 08:38:17 +0000 (10:38 +0200)]
Describe include facility

14 years agoMention multiple services/servers.
Adam Dickmeiss [Thu, 10 Sep 2009 08:19:03 +0000 (10:19 +0200)]
Mention multiple services/servers.

14 years agoDont wait for record command if active clients==0.
Adam Dickmeiss [Wed, 9 Sep 2009 14:15:10 +0000 (16:15 +0200)]
Dont wait for record command if active clients==0.

14 years agoWindows port fixes
Adam Dickmeiss [Wed, 9 Sep 2009 13:23:04 +0000 (15:23 +0200)]
Windows port fixes

14 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Adam Dickmeiss [Wed, 9 Sep 2009 12:38:41 +0000 (14:38 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

14 years agoExtend config include for glob-patterns.
Adam Dickmeiss [Wed, 9 Sep 2009 12:35:25 +0000 (14:35 +0200)]
Extend config include for glob-patterns.

The Pazpar2 configuration may now have an 'include' everywhere, except
in settings files. The attribute 'src' of 'include' is now a glob
pattern. The pattern, if relative, is prepended with the path of the main
configuration file as before, for example <include src="conf.d/*.xml"/>.

14 years agoExtend config include for glob-patterns.
Adam Dickmeiss [Wed, 9 Sep 2009 12:27:33 +0000 (14:27 +0200)]
Extend config include for glob-patterns.

The Pazpar2 configuration may now have an 'include' everywhere, except
in settings files. The attribute 'src' of 'include' is now a glob pattern.
The pattern, if relative, is prepended with the path of the main
configuration file as before, for example <include src="conf.d/*.xml"/>

14 years agoAdd check for glob.h
Adam Dickmeiss [Wed, 9 Sep 2009 12:05:05 +0000 (14:05 +0200)]
Add check for glob.h

14 years agoFix handling of bad config
Adam Dickmeiss [Wed, 9 Sep 2009 12:03:57 +0000 (14:03 +0200)]
Fix handling of bad config

14 years agoRef count pp2_charset_t
Adam Dickmeiss [Wed, 9 Sep 2009 12:02:43 +0000 (14:02 +0200)]
Ref count pp2_charset_t

14 years agoTest uses include of a service.
Adam Dickmeiss [Tue, 8 Sep 2009 14:27:13 +0000 (16:27 +0200)]
Test uses include of a service.

14 years agoBeginnings of generic include.
Adam Dickmeiss [Tue, 8 Sep 2009 14:26:24 +0000 (16:26 +0200)]
Beginnings of generic include.

14 years agoDont ignore old programs
Adam Dickmeiss [Tue, 8 Sep 2009 12:26:19 +0000 (14:26 +0200)]
Dont ignore old programs

14 years agoAvoid extern when a header just does it
Adam Dickmeiss [Tue, 8 Sep 2009 12:23:35 +0000 (14:23 +0200)]
Avoid extern when a header just does it

14 years agoconst some arguments. Remove http_command.h
Adam Dickmeiss [Tue, 8 Sep 2009 12:19:47 +0000 (14:19 +0200)]
const some arguments. Remove http_command.h

14 years agoAnnocate static vars left
Adam Dickmeiss [Tue, 8 Sep 2009 12:06:59 +0000 (14:06 +0200)]
Annocate static vars left

14 years agoRefactor to avoid more static variables
Adam Dickmeiss [Tue, 8 Sep 2009 11:51:02 +0000 (13:51 +0200)]
Refactor to avoid more static variables

Move listener_socket to conf_server. It was static before and that
would have given problems with multiple servers (multiple listeners).
The WRBUF confdir is now part of conf_config and no longer static. Move
conf_config to pazpar2_config.c because it is no longer needed by other
modules.

14 years agoProxy per-server. Clean various fixed size bufs.
Adam Dickmeiss [Tue, 8 Sep 2009 09:09:50 +0000 (11:09 +0200)]
Proxy per-server. Clean various fixed size bufs.

14 years agoRemove targetprofiles from test
Adam Dickmeiss [Tue, 8 Sep 2009 08:54:30 +0000 (10:54 +0200)]
Remove targetprofiles from test

14 years agoTargetprofiles part of service.
Adam Dickmeiss [Tue, 8 Sep 2009 07:48:50 +0000 (09:48 +0200)]
Targetprofiles part of service.

The 'targetprofiles' element, if present, must be defined inside
'service' rather than in 'pazpar2' (global).

14 years agoRemove unused settings in test
Adam Dickmeiss [Tue, 8 Sep 2009 07:48:37 +0000 (09:48 +0200)]
Remove unused settings in test

14 years agoRemove unused global parameter: chunk
Adam Dickmeiss [Tue, 8 Sep 2009 07:29:07 +0000 (09:29 +0200)]
Remove unused global parameter: chunk

14 years agoRemove more semi-unused globals
Adam Dickmeiss [Tue, 8 Sep 2009 07:23:53 +0000 (09:23 +0200)]
Remove more semi-unused globals

14 years agoRemoved unused local
Adam Dickmeiss [Tue, 8 Sep 2009 07:03:56 +0000 (09:03 +0200)]
Removed unused local

14 years agoTest server with multiple services
Adam Dickmeiss [Tue, 8 Sep 2009 07:01:44 +0000 (09:01 +0200)]
Test server with multiple services

14 years agoRefactor / reduce globals.
Adam Dickmeiss [Mon, 7 Sep 2009 13:58:14 +0000 (15:58 +0200)]
Refactor / reduce globals.

14 years agoDatabases per-service.
Adam Dickmeiss [Mon, 7 Sep 2009 12:07:14 +0000 (14:07 +0200)]
Databases per-service.

A service may now have a 'settings' element which defines settings
for this service alone. The database(s) are now managed per-service
- including memory (NMEM).

14 years agoMultiple services.
Adam Dickmeiss [Mon, 7 Sep 2009 09:01:29 +0000 (11:01 +0200)]
Multiple services.

The 'service' element may be repeated inside 'server'. A service may
be identified by an attribute 'id'. There can be exactly one or no
unnamed service (no attribute). For command init a service may
be selected by the use of parameter 'service'. No 'service' parameter
selects the unnamed service (backwards compatible).

14 years agoReformat
Adam Dickmeiss [Mon, 7 Sep 2009 08:07:50 +0000 (10:07 +0200)]
Reformat

14 years agoRefactor NMEM usage for conf_{service,config}.
Adam Dickmeiss [Mon, 7 Sep 2009 08:04:26 +0000 (10:04 +0200)]
Refactor NMEM usage for conf_{service,config}.

14 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Adam Dickmeiss [Fri, 4 Sep 2009 13:32:38 +0000 (15:32 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

14 years agoRefactor service, settings
Adam Dickmeiss [Fri, 4 Sep 2009 13:23:15 +0000 (15:23 +0200)]
Refactor service, settings

14 years agoMerge branch 'master' of ssh://git/home/git/pub/pazpar2
Sebastian Hammer [Wed, 2 Sep 2009 11:45:06 +0000 (11:45 +0000)]
Merge branch 'master' of ssh://git/home/git/pub/pazpar2

14 years agoAdding comment
Sebastian Hammer [Wed, 2 Sep 2009 11:44:39 +0000 (11:44 +0000)]
Adding comment

14 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Adam Dickmeiss [Wed, 2 Sep 2009 11:38:55 +0000 (13:38 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

14 years agoAdd 'make debian' target
Adam Dickmeiss [Wed, 2 Sep 2009 11:38:51 +0000 (13:38 +0200)]
Add 'make debian' target

14 years agoPolling 'record' based on new 'activeclients' in pazpar2
Niels Erik Nielsen [Wed, 2 Sep 2009 01:56:20 +0000 (21:56 -0400)]
Polling 'record' based on new 'activeclients' in pazpar2

14 years agoExtend record response with more info.
Adam Dickmeiss [Mon, 31 Aug 2009 12:39:35 +0000 (14:39 +0200)]
Extend record response with more info.

The record command now has activeclients (as in show), nextrecid
(if such record exist), prevrecid (if such record exist). This allows
navigation on single records and check for whether the system is idle
(activeclients == 0). Bug #3012.

14 years agoFix quoting for upload.sh
Adam Dickmeiss [Fri, 28 Aug 2009 12:46:06 +0000 (14:46 +0200)]
Fix quoting for upload.sh

14 years agoupload script v1.1.1
Adam Dickmeiss [Fri, 28 Aug 2009 12:42:18 +0000 (14:42 +0200)]
upload script

14 years agoRemove DETAILS_AT_TOP Dox config
Adam Dickmeiss [Fri, 28 Aug 2009 12:41:48 +0000 (14:41 +0200)]
Remove DETAILS_AT_TOP Dox config

14 years agoVersion 1.1.1
Adam Dickmeiss [Fri, 28 Aug 2009 12:39:02 +0000 (14:39 +0200)]
Version 1.1.1

14 years agoOmit tkl rules for documentation
Adam Dickmeiss [Fri, 28 Aug 2009 12:37:30 +0000 (14:37 +0200)]
Omit tkl rules for documentation

14 years agoTie resultset to session instead of connection
Adam Dickmeiss [Thu, 27 Aug 2009 19:35:44 +0000 (21:35 +0200)]
Tie resultset to session instead of connection

One result set is created per session (last search) rather than for
each connection which happen to be shared (bug #3009).