pazpar2-moved-to-github.git
17 years agochanged order of arguments of reclist_insert such that struct reclist *tl
Marc Cromme [Tue, 17 Apr 2007 07:52:03 +0000 (07:52 +0000)]
changed order of arguments of reclist_insert such that struct reclist *tl
now comes first, since this is the owner of the object member function

17 years agoAnother and hopefully, last, YAZ OID DB update
Adam Dickmeiss [Mon, 16 Apr 2007 21:54:43 +0000 (21:54 +0000)]
Another and hopefully, last, YAZ OID DB update

17 years agoRemoved $Id$ again.. that seemed redundant when the protocol number is there
Sebastian Hammer [Mon, 16 Apr 2007 21:14:38 +0000 (21:14 +0000)]
Removed $Id$ again.. that seemed redundant when the protocol number is there

17 years agoAdded protocol number and $Id$ to init response
Sebastian Hammer [Mon, 16 Apr 2007 21:11:26 +0000 (21:11 +0000)]
Added protocol number and $Id$ to init response

17 years agoDisplays empty location subrecords in brief formats.. dunno if this is useful.
Sebastian Hammer [Mon, 16 Apr 2007 20:34:17 +0000 (20:34 +0000)]
Displays empty location subrecords in brief formats.. dunno if this is useful.
Should be extended to display other sub-elements, too.

17 years agoTuning interface. Tuning Wikipedia searching
Sebastian Hammer [Mon, 16 Apr 2007 20:23:24 +0000 (20:23 +0000)]
Tuning interface. Tuning Wikipedia searching

17 years agoadded first shot on relevance ranking testing, still incomplete and segfaulting.
Marc Cromme [Mon, 16 Apr 2007 13:58:20 +0000 (13:58 +0000)]
added first shot on relevance ranking testing, still incomplete and segfaulting.
Compile an run using 'make check'

17 years agoadded asserts on service struct passed to reclist_insert
Marc Cromme [Mon, 16 Apr 2007 13:57:25 +0000 (13:57 +0000)]
added asserts on service struct passed to  reclist_insert

17 years agoadded
Marc Cromme [Mon, 16 Apr 2007 13:54:55 +0000 (13:54 +0000)]
added
     assert(service);
     assert(service->num_metadata);
     assert(service->num_sortkeys);

17 years agoremoved global parameters from reclist_insert()
Marc Cromme [Mon, 16 Apr 2007 13:22:17 +0000 (13:22 +0000)]
removed global parameters from  reclist_insert()

17 years agoUsing convenience library libpazpar2.a now.
Adam Dickmeiss [Mon, 16 Apr 2007 09:07:57 +0000 (09:07 +0000)]
Using convenience library libpazpar2.a now.

17 years agomain() in pazpar2.c . Rest of high-level logic moved to logic.c. Some
Adam Dickmeiss [Mon, 16 Apr 2007 09:03:25 +0000 (09:03 +0000)]
main() in pazpar2.c . Rest of high-level logic moved to logic.c. Some
external definitions moved to pazpar2.h.

17 years agoMoved masterkey-specific settings to separate dir. Tuned config of
Sebastian Hammer [Sun, 15 Apr 2007 06:57:22 +0000 (06:57 +0000)]
Moved masterkey-specific settings to separate dir. Tuned config of
wikipedia to be more narrow.

17 years agoAdded locaton info to the output of the show command.
Sebastian Hammer [Sun, 15 Apr 2007 03:26:47 +0000 (03:26 +0000)]
Added locaton info to the output of the show command.

17 years agoExperimentally added display of database names after each hit
Sebastian Hammer [Sun, 15 Apr 2007 03:24:18 +0000 (03:24 +0000)]
Experimentally added display of database names after each hit

17 years agoModified http_create. Used a per-request nmem structure to allocate space for the
Sebastian Hammer [Sun, 15 Apr 2007 00:35:57 +0000 (00:35 +0000)]
Modified http_create. Used a per-request nmem structure to allocate space for the
address. Changed this to a constant-size buffer.

17 years agoRemoved linechange before first location
Sebastian Hammer [Sat, 14 Apr 2007 23:59:20 +0000 (23:59 +0000)]
Removed linechange before first location

17 years agoEvolving config for masterkey service -- different processing of data field from...
Sebastian Hammer [Sat, 14 Apr 2007 06:14:28 +0000 (06:14 +0000)]
Evolving config for masterkey service -- different processing of data field from standard
file.

17 years agoMessing with the full display to bring it closer in line with what is needed
Sebastian Hammer [Sat, 14 Apr 2007 06:12:21 +0000 (06:12 +0000)]
Messing with the full display to bring it closer in line with what is needed
for masterkey service. Not there yet.

17 years agoHack to disable the snagging of normal Javascript errors. There must be a
Sebastian Hammer [Sat, 14 Apr 2007 06:11:47 +0000 (06:11 +0000)]
Hack to disable the snagging of normal Javascript errors. There must be a
better way of doing this.

17 years agoFixed disappearing records.
Sebastian Hammer [Fri, 13 Apr 2007 18:28:10 +0000 (18:28 +0000)]
Fixed disappearing records.

17 years agoIntroduced a check for empty value in record processing
Sebastian Hammer [Fri, 13 Apr 2007 17:19:53 +0000 (17:19 +0000)]
Introduced a check for empty value in record processing

17 years agoSimple query should not put "" around terms. It messes with CCL and-list logic
Sebastian Hammer [Fri, 13 Apr 2007 16:06:08 +0000 (16:06 +0000)]
Simple query should not put "" around terms. It messes with CCL and-list logic

17 years agoadded initialization of char *recsyn = 0; and char *piggyback = 0;
Marc Cromme [Fri, 13 Apr 2007 11:13:08 +0000 (11:13 +0000)]
added initialization of  char *recsyn = 0; and  char *piggyback = 0;
added iconv query encoding according to the target's setting, assuming that pazpar2 internal encoding is always UTF-8.
This gives _much_ nicer record matches in the Greek UOC project!

17 years agoMinor
Sebastian Hammer [Fri, 13 Apr 2007 03:30:19 +0000 (03:30 +0000)]
Minor

17 years agoSetup stand-alone config for ID Open Content resources
Sebastian Hammer [Fri, 13 Apr 2007 02:20:07 +0000 (02:20 +0000)]
Setup stand-alone config for ID Open Content resources

17 years agoComplete configuration for local test server access. Replaces test.pz
Sebastian Hammer [Fri, 13 Apr 2007 01:55:09 +0000 (01:55 +0000)]
Complete configuration for local test server access. Replaces test.pz

17 years agoModified settings system to read single file or directory, depending on settings
Sebastian Hammer [Fri, 13 Apr 2007 01:48:22 +0000 (01:48 +0000)]
Modified settings system to read single file or directory, depending on settings
node in config or -t override. Use, e.g. to start with -t testserver.xml which
contains complete configuration for local yaz-ztest

17 years agoAdded hitcount after resource name
Sebastian Hammer [Fri, 13 Apr 2007 01:10:21 +0000 (01:10 +0000)]
Added hitcount after resource name

17 years agoRemoved old-style CCL config files
Sebastian Hammer [Fri, 13 Apr 2007 00:53:08 +0000 (00:53 +0000)]
Removed old-style CCL config files

17 years agoBad pointer assignment in prepare_yazmarc
Sebastian Hammer [Fri, 13 Apr 2007 00:29:14 +0000 (00:29 +0000)]
Bad pointer assignment in prepare_yazmarc

17 years agoPrepare for YAZ 3s new OID system
Adam Dickmeiss [Thu, 12 Apr 2007 13:46:28 +0000 (13:46 +0000)]
Prepare for YAZ 3s new OID system

17 years agoadded logging of searchRequest RPN query for debugging
Marc Cromme [Thu, 12 Apr 2007 12:05:22 +0000 (12:05 +0000)]
added logging of searchRequest RPN query for debugging
might get removed later again when logs grow too much

17 years agoadding settings field 'pz.queryencoding'
Marc Cromme [Thu, 12 Apr 2007 11:35:08 +0000 (11:35 +0000)]
adding settings field 'pz.queryencoding'
now need to do something with it ..

17 years agoremoved break statement - actually _using_ the specified target
Marc Cromme [Thu, 12 Apr 2007 10:17:53 +0000 (10:17 +0000)]
removed break statement - actually _using_ the specified target
encoding to initiate an yaz_iconv_t object,
now  yaz_marc_iconv(db->yaz_marc, cm) converts to UTF-8 marc records,
and XML conversion is fine

17 years agoadded logging of target name when XML normalization failed
Marc Cromme [Thu, 12 Apr 2007 09:59:47 +0000 (09:59 +0000)]
added logging of target name when XML normalization failed
using libxml2 switch for marc-to-XML conversion
added more tests to assure that output of  XSLT transformation is valid XML

17 years agoavoid loading ZeeReX if no config->targetprofiles is defined
Marc Cromme [Thu, 12 Apr 2007 07:15:48 +0000 (07:15 +0000)]
avoid loading ZeeReX if no config->targetprofiles is defined

17 years agoSimple target file with econtent sites -- Only sets a name for each -- assumes
Sebastian Hammer [Wed, 11 Apr 2007 20:00:18 +0000 (20:00 +0000)]
Simple target file with econtent sites -- Only sets a name for each -- assumes
that reasonable defaults are set elsewhere.

17 years agoRemoved 'user' from settings structure and code..
Sebastian Hammer [Wed, 11 Apr 2007 19:55:57 +0000 (19:55 +0000)]
Removed 'user' from settings structure and code..

17 years agoMajor change. Targets are now created when they are referred to in the settings
Sebastian Hammer [Wed, 11 Apr 2007 18:42:25 +0000 (18:42 +0000)]
Major change. Targets are now created when they are referred to in the settings
system. This means that the .pz files are no longer needed. HOWEVER, for
consistency & power, database name is now a setting, pz:name. The names in the .pz
files are ignored. .pz-files should be converted to simple settings files.

17 years agoMoved the check for PZ_ALLOW
Sebastian Hammer [Wed, 11 Apr 2007 16:48:09 +0000 (16:48 +0000)]
Moved the check for PZ_ALLOW

17 years agoUpdate following changes made to the pz2's protocol.
Jakub Skoczen [Wed, 11 Apr 2007 15:27:35 +0000 (15:27 +0000)]
Update following changes made to the pz2's protocol.
id -> pz:id

17 years agoNeglected to initialize session->databases
Sebastian Hammer [Wed, 11 Apr 2007 13:27:06 +0000 (13:27 +0000)]
Neglected to initialize session->databases

17 years agoFixed bad dereferencing of null settings
Sebastian Hammer [Wed, 11 Apr 2007 13:05:50 +0000 (13:05 +0000)]
Fixed bad dereferencing of null settings

17 years agofreeing XML doc pointer after usage, otherwise we have a memory leak
Marc Cromme [Wed, 11 Apr 2007 11:22:35 +0000 (11:22 +0000)]
freeing XML doc pointer after usage, otherwise we have a memory leak

17 years agoadded assert to prevent segfault by dereferencing void pointer 'settings'
Marc Cromme [Wed, 11 Apr 2007 11:13:46 +0000 (11:13 +0000)]
added assert to prevent segfault by dereferencing void pointer 'settings'

17 years agoremoved unused code in comments
Marc Cromme [Wed, 11 Apr 2007 11:10:05 +0000 (11:10 +0000)]
removed unused code in comments

17 years agoremoved unused code
Marc Cromme [Wed, 11 Apr 2007 11:08:24 +0000 (11:08 +0000)]
removed unused code

17 years agoremember to free memory, otherwise leaking
Marc Cromme [Wed, 11 Apr 2007 11:01:45 +0000 (11:01 +0000)]
remember to free memory, otherwise leaking

17 years agoUpdated doc to describe settings command (settings can also be controlled from
Sebastian Hammer [Wed, 11 Apr 2007 04:51:23 +0000 (04:51 +0000)]
Updated doc to describe settings command (settings can also be controlled from
the init command).

17 years agoTrivial
Sebastian Hammer [Wed, 11 Apr 2007 04:35:35 +0000 (04:35 +0000)]
Trivial

17 years agoImplemented pz:allow (turn access to targets on or off)
Sebastian Hammer [Wed, 11 Apr 2007 04:33:41 +0000 (04:33 +0000)]
Implemented pz:allow (turn access to targets on or off)

17 years agoDocumentation up to date with available settings (allow and maxrecs not yet implemented).
Sebastian Hammer [Wed, 11 Apr 2007 03:34:11 +0000 (03:34 +0000)]
Documentation up to date with available settings (allow and maxrecs not yet implemented).

17 years agoAdded description of session-specific overrides
Sebastian Hammer [Wed, 11 Apr 2007 02:29:32 +0000 (02:29 +0000)]
Added description of session-specific overrides

17 years agoRemoved all mention of users from setting system.
Sebastian Hammer [Wed, 11 Apr 2007 02:23:21 +0000 (02:23 +0000)]
Removed all mention of users from setting system.

17 years agoDocumented pz:id setting
Sebastian Hammer [Wed, 11 Apr 2007 02:18:04 +0000 (02:18 +0000)]
Documented pz:id setting

17 years agoBig update. Introduced session-specific settings. These can be supplied
Sebastian Hammer [Wed, 11 Apr 2007 02:14:15 +0000 (02:14 +0000)]
Big update. Introduced session-specific settings. These can be supplied
with the init command or the new settings command, and override default
settings for search targets. Unfortunately, introduced a number of new
cross-dependencies in database.c and settings.c, and both could do
with a cleanup. Testing so far minimal, but it seems to work for
pz:authentication.

17 years agoFilter: id changed to pz:id to synch with expanded setting system
Sebastian Hammer [Wed, 11 Apr 2007 02:11:29 +0000 (02:11 +0000)]
Filter: id changed to pz:id to synch with expanded setting system

17 years agoAdded description of connections to non-standard resources
Sebastian Hammer [Tue, 10 Apr 2007 15:44:33 +0000 (15:44 +0000)]
Added description of connections to non-standard resources

17 years agoWork on non-standard servers
Sebastian Hammer [Tue, 10 Apr 2007 15:12:51 +0000 (15:12 +0000)]
Work on non-standard servers

17 years agoUse copyright-year entity
Adam Dickmeiss [Tue, 10 Apr 2007 08:59:35 +0000 (08:59 +0000)]
Use copyright-year entity

17 years agoRemoved bad data from example
Adam Dickmeiss [Tue, 10 Apr 2007 08:53:48 +0000 (08:53 +0000)]
Removed bad data from example

17 years agoGPLv2. Added appendix with full license. Added refernece to that from
Adam Dickmeiss [Tue, 10 Apr 2007 08:48:55 +0000 (08:48 +0000)]
GPLv2. Added appendix with full license. Added refernece to that from
Introduction chapter.

17 years agoAdded GPL file.
Adam Dickmeiss [Tue, 10 Apr 2007 08:15:17 +0000 (08:15 +0000)]
Added GPL file.

17 years agoIgnore Doxyfile
Adam Dickmeiss [Tue, 10 Apr 2007 08:12:46 +0000 (08:12 +0000)]
Ignore Doxyfile

17 years agoAdded NEWS. ChangeLog, NEWS, buildconf.sh, Doxyfile.in part of dist.
Adam Dickmeiss [Tue, 10 Apr 2007 08:11:53 +0000 (08:11 +0000)]
Added NEWS. ChangeLog, NEWS, buildconf.sh, Doxyfile.in part of dist.

17 years agoCreate directory config if it does not exist
Adam Dickmeiss [Tue, 10 Apr 2007 08:11:18 +0000 (08:11 +0000)]
Create directory config if it does not exist

17 years agoUsed wrong setting for recsyn when constructing search/present request
Sebastian Hammer [Tue, 10 Apr 2007 01:19:56 +0000 (01:19 +0000)]
Used wrong setting for recsyn when constructing search/present request

17 years agoSyncing with demo version
Sebastian Hammer [Tue, 10 Apr 2007 01:13:27 +0000 (01:13 +0000)]
Syncing with demo version

17 years agoAdded a nmem-handle to the http_session to simplify MM. Used to allocate session-
Sebastian Hammer [Tue, 10 Apr 2007 00:53:24 +0000 (00:53 +0000)]
Added a nmem-handle to the http_session to simplify MM. Used to allocate session-
permanent data.

17 years agoChanged note to explicitly refer to GPL. This section still needs to be changed --
Sebastian Hammer [Mon, 9 Apr 2007 23:58:04 +0000 (23:58 +0000)]
Changed note to explicitly refer to GPL. This section still needs to be changed --
do we just put in the text of the license here? Which version of GPL?

17 years agopz:syntax-->nativesyntax
Sebastian Hammer [Mon, 9 Apr 2007 05:11:49 +0000 (05:11 +0000)]
pz:syntax-->nativesyntax

17 years agoAdded pz:allow setting
Sebastian Hammer [Mon, 9 Apr 2007 05:01:32 +0000 (05:01 +0000)]
Added pz:allow setting

17 years agoRemoved. Text is in the doc.. examples to follow
Sebastian Hammer [Mon, 9 Apr 2007 03:51:14 +0000 (03:51 +0000)]
Removed. Text is in the doc.. examples to follow

17 years agoComment change
Sebastian Hammer [Mon, 9 Apr 2007 03:49:30 +0000 (03:49 +0000)]
Comment change

17 years agoMoved HTTP channel address from struct iochan to struct http_channel.
Adam Dickmeiss [Sun, 8 Apr 2007 23:04:20 +0000 (23:04 +0000)]
Moved HTTP channel address from struct iochan to struct http_channel.
This fixes compilation on FreeBSD and reverts eventl.{c,h} to original
paraz state. This change, simple as it is, is untested.

17 years agoRemoved dead code.
Sebastian Hammer [Sun, 8 Apr 2007 22:38:45 +0000 (22:38 +0000)]
Removed dead code.

17 years agoStub description of pz:authentication.. eventually, there'll be a longer section
Sebastian Hammer [Sun, 8 Apr 2007 22:15:23 +0000 (22:15 +0000)]
Stub description of pz:authentication.. eventually, there'll be a longer section
about this.

17 years agoAdded the most basic level of support for authentication. The setting
Sebastian Hammer [Sun, 8 Apr 2007 21:51:58 +0000 (21:51 +0000)]
Added the most basic level of support for authentication. The setting
'pz:authentication' allows you to set an authentication token for a given
target. This will allow support for targets which require one authentication
token for all users.. it should also be a foundation for adding more
fine-grained control.

17 years agoRemoved retrieval config from pazpar2.cfg.dist. Client behavior now controlled from
Sebastian Hammer [Sun, 8 Apr 2007 20:52:47 +0000 (20:52 +0000)]
Removed retrieval config from pazpar2.cfg.dist. Client behavior now controlled from
settings system.

17 years agoMoved CCL Map, record syntax, charset normalization, record syntax normalization...
Sebastian Hammer [Sun, 8 Apr 2007 20:52:09 +0000 (20:52 +0000)]
Moved CCL Map, record syntax, charset normalization, record syntax normalization, and
XSLT filters into the control of the settings code. Deleted dead structures and code.
Updated defaults.xml.

17 years agoadded target url's on some more warning log messages
Marc Cromme [Wed, 4 Apr 2007 22:43:10 +0000 (22:43 +0000)]
added target url's on some more warning log messages

17 years agoadded do_closeResponse handler function
Marc Cromme [Wed, 4 Apr 2007 21:05:37 +0000 (21:05 +0000)]
added do_closeResponse handler function
added printout of target url for many warning and debug logs

17 years agoAnnoying flickering of facets (after clicking) removed.
Jakub Skoczen [Tue, 3 Apr 2007 14:27:21 +0000 (14:27 +0000)]
Annoying flickering of facets (after clicking) removed.

17 years agoCleaning up. Removing dead material on retrieval/query profile, added new settings.
Sebastian Hammer [Tue, 3 Apr 2007 05:14:44 +0000 (05:14 +0000)]
Cleaning up. Removing dead material on retrieval/query profile, added new settings.
(note, some settings not yet implemented).

17 years agoremoved some old #ifdeffed-out code
Sebastian Hammer [Tue, 3 Apr 2007 04:05:01 +0000 (04:05 +0000)]
removed some old #ifdeffed-out code

17 years agoDescribed new settings (actually only piggyback -- the others were already
Sebastian Hammer [Tue, 3 Apr 2007 03:59:10 +0000 (03:59 +0000)]
Described new settings (actually only piggyback -- the others were already
in there)

17 years agoRecord syntax, piggyback, and element set name controlled by settings system
Sebastian Hammer [Tue, 3 Apr 2007 03:55:11 +0000 (03:55 +0000)]
Record syntax, piggyback, and element set name controlled by settings system

17 years agoRenamed, to include more than just query-related defaults
Sebastian Hammer [Tue, 3 Apr 2007 03:42:53 +0000 (03:42 +0000)]
Renamed, to include more than just query-related defaults

17 years agoInternal query handling completely rewritten.
Jakub Skoczen [Mon, 2 Apr 2007 15:50:27 +0000 (15:50 +0000)]
Internal query handling completely rewritten.

17 years agoPager will now show only a fixed window of pages.
Jakub Skoczen [Mon, 2 Apr 2007 09:44:34 +0000 (09:44 +0000)]
Pager will now show only a fixed window of pages.

17 years agoRemoved assignment of global_parameters.server->host by gethostname() in
Marc Cromme [Mon, 2 Apr 2007 09:43:08 +0000 (09:43 +0000)]
Removed assignment of global_parameters.server->host by gethostname() in
src/config.c, if listen/@host is empty.
   This had the very unpleasent side effect in src/http.c:980 in function
void http_init(const char *addr) that the if statement 'if (pp)' got triggered,
with the string 'flurry:9090' (in mine config) and therefore the only bind has
beem made to the loop-back device. As a consequence, pazpar2/masterkey could
only be accessed from localhost, which is kind of very useless.
   What is really needed is that the global_parameters.server->host variable
is set to gethostname() in such a way that we are sure to go into the 'else'
of the above 'if (pp)', such that we still are listening to all existing
interfaces.
   I tried to do this by assigning
global_parameters.server->host = gethostname() using a nmem_strdup(9, but
failed due to the fact that I have no access to the correct nmem memory
handler here. See src/http.c:1009 for details.
   Still, I would like to have set
global_parameters.server->host = gethostname() somewhere to ensure the
'Via:' header is correct.

17 years agonavigation path: removed / and added +
Jakub Skoczen [Mon, 2 Apr 2007 08:41:51 +0000 (08:41 +0000)]
navigation path: removed / and added +

17 years agoget hostname from system call 'gethostname()' if not set in
Marc Cromme [Sat, 31 Mar 2007 20:55:19 +0000 (20:55 +0000)]
get hostname from system call 'gethostname()' if not set in
<listen port="" host=""/> in config file. The hostname is under all circumstances
needed to produce the correct HTTP headers 'Via:' and 'X-Pazpar2-Server-Host:'

17 years agoadjusting HTTP headers to be conformant with Upper-Case-Style
Marc Cromme [Sat, 31 Mar 2007 20:27:15 +0000 (20:27 +0000)]
adjusting HTTP headers to be conformant with Upper-Case-Style
taking correct server->host parameter for 'Via:' and
'X-Pazpar2-Server-Host:' Header.

17 years agopretty-printing Z39.50 proxy log line
Marc Cromme [Sat, 31 Mar 2007 20:24:59 +0000 (20:24 +0000)]
pretty-printing Z39.50 proxy log line

17 years agoaligning log messages for nice look-and-feel
Marc Cromme [Sat, 31 Mar 2007 20:06:18 +0000 (20:06 +0000)]
aligning log messages for nice look-and-feel

17 years agoremoved warnings coming from missing casts (const char *) and (xmlChar *)
Marc Cromme [Sat, 31 Mar 2007 19:55:25 +0000 (19:55 +0000)]
removed warnings coming from missing casts (const char *) and (xmlChar *)

17 years agoBreadcrumb like navigation added.
Jakub Skoczen [Fri, 30 Mar 2007 16:22:41 +0000 (16:22 +0000)]
Breadcrumb like navigation added.

17 years agoUpdated template to link to example settings
Sebastian Hammer [Fri, 30 Mar 2007 02:48:23 +0000 (02:48 +0000)]
Updated template to link to example settings