pazpar2-moved-to-github.git
17 years agoforgotten to commit Makefile.am, which contains instructions for new test_reclists.c
Marc Cromme [Wed, 25 Apr 2007 13:14:46 +0000 (13:14 +0000)]
forgotten to commit Makefile.am, which contains instructions for new test_reclists.c

17 years agoadded interface for adding sort parameters for record lists, use like this
Marc Cromme [Wed, 25 Apr 2007 13:09:17 +0000 (13:09 +0000)]
added interface for adding sort parameters for record lists, use like this
reclist_sortparms_insert(nmem, &sort_parms, service, "title", 1)
adde unit test of the same

17 years agobreaking too long source code lines, otherwise no changes
Marc Cromme [Wed, 25 Apr 2007 09:23:03 +0000 (09:23 +0000)]
breaking too long source code lines, otherwise no changes

17 years agobroken too long source code lines, otherwise no changes
Marc Cromme [Wed, 25 Apr 2007 08:55:01 +0000 (08:55 +0000)]
broken too long source code lines, otherwise no changes

17 years agofunction reclist_insert() does not change mergekey, so parameter signature changed...
Marc Cromme [Wed, 25 Apr 2007 08:07:47 +0000 (08:07 +0000)]
function reclist_insert() does not change mergekey, so parameter signature changed to const char *merge_key

17 years agoremoved unnecessary header includes
Marc Cromme [Wed, 25 Apr 2007 07:00:33 +0000 (07:00 +0000)]
removed unnecessary header includes

17 years agoprotected from dereferencing of empty pointer
Marc Cromme [Tue, 24 Apr 2007 22:19:19 +0000 (22:19 +0000)]
protected from dereferencing of empty pointer

17 years agochanged prototype of
Marc Cromme [Tue, 24 Apr 2007 22:17:05 +0000 (22:17 +0000)]
changed prototype of
union data_types * data_types_assign(NMEM nmem,
                                     union data_types * data1,
                                     union data_types data2)
to
union data_types * data_types_assign(NMEM nmem,
                                     union data_types ** data1,
                                     union data_types data2)
to make sure that side effects are transmitted outside.
added tests for side effects.
added code for proper initialization of
record->metadata[i] and record->sortkeys[i] - valgrind my your friend!

17 years agoadding additional checks for correct side conditions on next metadata in record
Marc Cromme [Tue, 24 Apr 2007 13:50:07 +0000 (13:50 +0000)]
adding additional checks for correct side conditions on next metadata in record

17 years agoAdded edu.xml; based on edu.pz.
Adam Dickmeiss [Tue, 24 Apr 2007 12:30:09 +0000 (12:30 +0000)]
Added edu.xml; based on edu.pz.

17 years agoFunctions connection_destroy, connection_release defined in connectin.h.
Adam Dickmeiss [Tue, 24 Apr 2007 08:03:03 +0000 (08:03 +0000)]
Functions connection_destroy, connection_release defined in connectin.h.

17 years agoAnnotate a little
Adam Dickmeiss [Tue, 24 Apr 2007 07:04:36 +0000 (07:04 +0000)]
Annotate a little

17 years agoAdded descriptive text about dynamic settings. Todo, create links from
Sebastian Hammer [Tue, 24 Apr 2007 04:37:58 +0000 (04:37 +0000)]
Added descriptive text about dynamic settings. Todo, create links from
places marked XXX

17 years agoRefactor stuff from logic.c: connection stuff in connection.[ch],
Adam Dickmeiss [Mon, 23 Apr 2007 21:05:23 +0000 (21:05 +0000)]
Refactor stuff from logic.c: connection stuff in connection.[ch],
client stuff to client.[ch]. host definitions in host.h. Global
parameters to parameters.h.,

17 years agofinalized helper utilities for record class, and added unit tests
Marc Cromme [Mon, 23 Apr 2007 12:33:00 +0000 (12:33 +0000)]
finalized helper utilities for record class, and added unit tests

17 years agoreverting to exit call, as it might be dangerous to have a dictionary which is not...
Marc Cromme [Mon, 23 Apr 2007 09:06:20 +0000 (09:06 +0000)]
reverting to exit call, as it might be dangerous to have a dictionary which is not in order. Still, this place needs attention, as sending a wrong setting bt WS effectively kills the server.

17 years agouupps - removed an exit() too fast without thought, reverting
Marc Cromme [Mon, 23 Apr 2007 08:56:52 +0000 (08:56 +0000)]
uupps - removed an exit() too fast without thought, reverting

17 years agomore records constructor work, no yet finished
Marc Cromme [Mon, 23 Apr 2007 08:48:50 +0000 (08:48 +0000)]
more records constructor work, no yet finished

17 years agoremoved some of the most obvious exit() statements, which are now with the dynamic...
Marc Cromme [Mon, 23 Apr 2007 08:15:22 +0000 (08:15 +0000)]
removed some of the most obvious exit() statements, which are now with the dynamic settings system a very easy way to kill the srver: just send a malformed settings file, and it's dead. Still many other exit() needs attention.

17 years agoAllow any number of worker threads for sel_thread. Added optional parameter
Adam Dickmeiss [Mon, 23 Apr 2007 08:06:21 +0000 (08:06 +0000)]
Allow any number of worker threads for sel_thread. Added optional parameter
work_destroy handler for sel_thread_create. This will only be called
sel_thread_destroy, in the case of non-empty work queues. Three resolver
threads now running - seems to make resolving many.xml slightly faster.

17 years agoSaving seven keystrokes
Adam Dickmeiss [Mon, 23 Apr 2007 07:55:23 +0000 (07:55 +0000)]
Saving seven keystrokes

17 years agoPrefix resolved message
Adam Dickmeiss [Mon, 23 Apr 2007 07:34:48 +0000 (07:34 +0000)]
Prefix resolved message

17 years agoRename test functions a bit
Adam Dickmeiss [Mon, 23 Apr 2007 07:29:34 +0000 (07:29 +0000)]
Rename test functions a bit

17 years agoAdded these target settings based on their .pz-equivalents.
Adam Dickmeiss [Mon, 23 Apr 2007 07:26:15 +0000 (07:26 +0000)]
Added these target settings based on their .pz-equivalents.

17 years agoAdded ID for partintro
Adam Dickmeiss [Mon, 23 Apr 2007 07:03:06 +0000 (07:03 +0000)]
Added ID for partintro

17 years agoConnections now wait for hosts to be resolved. Delayed connect attempt
Adam Dickmeiss [Sun, 22 Apr 2007 16:41:42 +0000 (16:41 +0000)]
Connections now wait for hosts to be resolved. Delayed connect attempt
is handled by connect_resolver_host. All connection with bad addresses
(unresolved ones) are destroyed with connection_destroy. Connect
failures leave the connections in the open. If that's to be changed
connection_destroy should be called if connection_connect returns -1.

17 years agoNotes on implementation status of a couple of settings
Sebastian Hammer [Sun, 22 Apr 2007 15:19:36 +0000 (15:19 +0000)]
Notes on implementation status of a couple of settings

17 years agoPer-session databases and configuration. This was implemented
Adam Dickmeiss [Sun, 22 Apr 2007 15:07:10 +0000 (15:07 +0000)]
Per-session databases and configuration. This was implemented
by Sebastian.

17 years agoRemoved load_simpletargets
Adam Dickmeiss [Sun, 22 Apr 2007 15:00:56 +0000 (15:00 +0000)]
Removed load_simpletargets

17 years agoPerform getaddrinfo in separate thread for a given struct host.
Adam Dickmeiss [Sat, 21 Apr 2007 12:00:54 +0000 (12:00 +0000)]
Perform getaddrinfo in separate thread for a given struct host.

17 years agoChanged new code to use session_setting_oneval
Sebastian Hammer [Fri, 20 Apr 2007 16:37:35 +0000 (16:37 +0000)]
Changed new code to use session_setting_oneval

17 years agoMade load of XSLT normalization stylesheet dynamic
Sebastian Hammer [Fri, 20 Apr 2007 16:21:19 +0000 (16:21 +0000)]
Made load of XSLT normalization stylesheet dynamic

17 years ago*** empty log message ***
Sebastian Hammer [Fri, 20 Apr 2007 15:36:48 +0000 (15:36 +0000)]
*** empty log message ***

17 years agostarted record constructors. still unfnished, but yet only used in test_relevance.c
Marc Cromme [Fri, 20 Apr 2007 14:37:17 +0000 (14:37 +0000)]
started record constructors. still unfnished, but yet only used in test_relevance.c

17 years agoCollapsing charset into native encoding. It simplifies implementation, and the
Sebastian Hammer [Fri, 20 Apr 2007 14:05:23 +0000 (14:05 +0000)]
Collapsing charset into native encoding. It simplifies implementation, and the
two are closely related anyway.

17 years agoproblems with ajaxError catching all exceptions solved
Jakub Skoczen [Fri, 20 Apr 2007 13:56:20 +0000 (13:56 +0000)]
problems with ajaxError catching all exceptions solved
pz2.js will now throw an exception if the protocol version is not supported
smarter error handling in general

17 years agosplitting record specific definition out from pazpar2.h header to record.h header...
Marc Cromme [Fri, 20 Apr 2007 13:03:22 +0000 (13:03 +0000)]
splitting record specific definition out from pazpar2.h header to record.h header, thus preparing for implementation of record constructors in the coming record.c file

17 years agoMinor
Adam Dickmeiss [Fri, 20 Apr 2007 11:56:37 +0000 (11:56 +0000)]
Minor

17 years agoSelect thread system now passes a simple test using IOCHANSs.
Adam Dickmeiss [Fri, 20 Apr 2007 11:44:58 +0000 (11:44 +0000)]
Select thread system now passes a simple test using IOCHANSs.

17 years agoFix hard-coded 30 second limit. Unfortunately we have a lot of
Adam Dickmeiss [Fri, 20 Apr 2007 11:43:43 +0000 (11:43 +0000)]
Fix hard-coded 30 second limit. Unfortunately we have a lot of
these select loops around - all more or less buggy.

17 years agoLinking with threads
Adam Dickmeiss [Fri, 20 Apr 2007 11:20:16 +0000 (11:20 +0000)]
Linking with threads

17 years agoadded metadata and sortkey assign functions (to conf_service objects)
Marc Cromme [Fri, 20 Apr 2007 11:00:29 +0000 (11:00 +0000)]
added metadata and sortkey assign functions (to conf_service objects)
in parse_service, seperated code in three groups: xml parsing, parsed value logic, and assignment to conf_service, using the new creator and assign functions.

17 years agosel_thread_result reads from pipe
Adam Dickmeiss [Fri, 20 Apr 2007 10:15:19 +0000 (10:15 +0000)]
sel_thread_result reads from pipe

17 years agoStarted work on select thread system.
Adam Dickmeiss [Fri, 20 Apr 2007 10:06:52 +0000 (10:06 +0000)]
Started work on select thread system.

17 years agoAllows definition/override of pz:cclmap:* settings via settings ws.
Sebastian Hammer [Fri, 20 Apr 2007 04:32:33 +0000 (04:32 +0000)]
Allows definition/override of pz:cclmap:* settings via settings ws.
CCL parser allocated/deallocated on the fly at query time

17 years agoRemoved query from session structure. It is no longer needed, since a pquery
Sebastian Hammer [Fri, 20 Apr 2007 04:08:14 +0000 (04:08 +0000)]
Removed query from session structure. It is no longer needed, since a pquery
is associated with each client.

17 years agoadded ignore of session*.xml files
Marc Cromme [Thu, 19 Apr 2007 19:44:31 +0000 (19:44 +0000)]
added ignore of session*.xml files

17 years agoadded conf_service creator inclusive metadata and sortkey assigners, added unittests...
Marc Cromme [Thu, 19 Apr 2007 19:42:30 +0000 (19:42 +0000)]
added conf_service creator inclusive metadata and sortkey assigners, added unittests on the same as well. creators for record construction still needed

17 years agorestricting to non-test files
Marc Cromme [Thu, 19 Apr 2007 19:40:22 +0000 (19:40 +0000)]
restricting to non-test files

17 years agoRefactor access to global variable channel_list. There were a few
Adam Dickmeiss [Thu, 19 Apr 2007 16:07:20 +0000 (16:07 +0000)]
Refactor access to global variable channel_list. There were a few
places where this was accessed and always in the same way.

17 years agoTiny example update
Adam Dickmeiss [Thu, 19 Apr 2007 16:06:10 +0000 (16:06 +0000)]
Tiny example update

17 years agoRemoved redundant declarations
Adam Dickmeiss [Thu, 19 Apr 2007 15:31:23 +0000 (15:31 +0000)]
Removed redundant declarations

17 years agostarted adding conf_service and conf-metadata constructors. not finished yet, just...
Marc Cromme [Thu, 19 Apr 2007 11:57:53 +0000 (11:57 +0000)]
started adding conf_service and conf-metadata constructors. not finished yet, just checked in for file moving. Do not use yet

17 years agoIgnore test_relevance program and log file
Adam Dickmeiss [Wed, 18 Apr 2007 19:50:06 +0000 (19:50 +0000)]
Ignore test_relevance program and log file

17 years agoFixed bug 854. Using nmem_split() to split phrase terms on word boundaries.
Sebastian Hammer [Wed, 18 Apr 2007 19:45:09 +0000 (19:45 +0000)]
Fixed bug 854. Using nmem_split() to split phrase terms on word boundaries.
I love nmem_split. If I were not a family man, I would ask her to marry me.

17 years agoRemoved 'Masterkey' from implementation name
Sebastian Hammer [Wed, 18 Apr 2007 16:11:41 +0000 (16:11 +0000)]
Removed 'Masterkey' from implementation name

17 years agopretty-formattting comments , now not exeeding 80 chars
Marc Cromme [Wed, 18 Apr 2007 15:09:51 +0000 (15:09 +0000)]
pretty-formattting comments , now not exeeding 80 chars

17 years agoMake Pazpar2 configure prefer static YAZ - when locally built
Adam Dickmeiss [Wed, 18 Apr 2007 13:41:03 +0000 (13:41 +0000)]
Make Pazpar2 configure prefer static YAZ - when locally built

17 years agoI think this addresses Bug 1070.
Sebastian Hammer [Wed, 18 Apr 2007 12:41:38 +0000 (12:41 +0000)]
I think this addresses Bug 1070.

17 years agoencapsulating all record fields in a xsl:for-each to prevent emitting empty
Marc Cromme [Wed, 18 Apr 2007 07:41:03 +0000 (07:41 +0000)]
encapsulating all record fields in a xsl:for-each to prevent emitting empty
<md-title> elements. Now all emitted elements have always content, and the final web client JS does not break any more.

17 years agoRemoved for now.. display of bib targets not really good enough
Sebastian Hammer [Wed, 18 Apr 2007 04:30:28 +0000 (04:30 +0000)]
Removed for now.. display of bib targets not really good enough

17 years agoPut an alert in ajaxError. This is not pretty and should be moved to the client
Sebastian Hammer [Wed, 18 Apr 2007 04:23:53 +0000 (04:23 +0000)]
Put an alert in ajaxError. This is not pretty and should be moved to the client
code.. but I am not sure how Jakub wants to handle errors in the client code.
Do we need to clean up what pazpar2 sends back?

17 years agoSearch still went ahead even if one target had a parse error.. bad news.
Sebastian Hammer [Wed, 18 Apr 2007 04:22:55 +0000 (04:22 +0000)]
Search still went ahead even if one target had a parse error.. bad news.

17 years agoOops. output of ccl_pquery not null-terminated. Added null.
Sebastian Hammer [Wed, 18 Apr 2007 04:07:48 +0000 (04:07 +0000)]
Oops. output of ccl_pquery not null-terminated. Added null.

17 years agoMessing with the refresh timer to make things feel snappier.
Sebastian Hammer [Wed, 18 Apr 2007 03:42:29 +0000 (03:42 +0000)]
Messing with the refresh timer to make things feel snappier.

17 years agoFixed bug 897. Pazpar2/search fails gracefully on empty queries or queries
Sebastian Hammer [Tue, 17 Apr 2007 21:25:26 +0000 (21:25 +0000)]
Fixed bug 897. Pazpar2/search fails gracefully on empty queries or queries
that don't parse. This should address pretty much all of the coredumps I have seen.

17 years agoAdded LOC example config
Sebastian Hammer [Tue, 17 Apr 2007 17:49:41 +0000 (17:49 +0000)]
Added LOC example config

17 years agoAdded LOC to MK production demo
Sebastian Hammer [Tue, 17 Apr 2007 17:49:18 +0000 (17:49 +0000)]
Added LOC to MK production demo

17 years agoAdded author search
Sebastian Hammer [Tue, 17 Apr 2007 17:48:48 +0000 (17:48 +0000)]
Added author search

17 years agoStill trying to relevance-rank one single record.
Marc Cromme [Tue, 17 Apr 2007 13:30:24 +0000 (13:30 +0000)]
Still trying to relevance-rank one single record.
Bug#:  1056   struct conf_service  needs  conf_service_create creator
Bug#:  1057   struct record needs record_create() function
needs to be resolved first, before this unit test will progress.
to be continued tomorrow

17 years agoAdded newer version of jquery (faster).
Jakub Skoczen [Tue, 17 Apr 2007 13:12:50 +0000 (13:12 +0000)]
Added newer version of jquery (faster).

17 years agoWhen author link is clicked, all books by that author will be found.
Jakub Skoczen [Tue, 17 Apr 2007 12:53:44 +0000 (12:53 +0000)]
When author link is clicked, all books by that author will be found.

17 years agoadded five asserts to make sure that the arguments of reclist_insert do exist
Marc Cromme [Tue, 17 Apr 2007 12:15:32 +0000 (12:15 +0000)]
added five asserts to make sure that the arguments of reclist_insert do exist

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