pazpar2-moved-to-github.git
17 years agoUse queue for raw show; to solve Bug #1644.
Adam Dickmeiss [Tue, 2 Oct 2007 12:11:14 +0000 (12:11 +0000)]
Use queue for raw show; to solve Bug #1644.
The client system now makes a queue of requests to be carried out
(struct show_raw). Howevever, HTTP connection closing could be handled
more elegantly (to say the least).

17 years agoRefactoring.
Jakub Skoczen [Tue, 2 Oct 2007 12:09:40 +0000 (12:09 +0000)]
Refactoring.

17 years agoUsing closures instead of global variables.
Jakub Skoczen [Tue, 2 Oct 2007 11:47:50 +0000 (11:47 +0000)]
Using closures instead of global variables.

17 years agoRemoving mk related classes.
Jakub Skoczen [Tue, 2 Oct 2007 10:33:18 +0000 (10:33 +0000)]
Removing mk related classes.

17 years agoEnsure show watch is fired if client is disconnected.
Adam Dickmeiss [Tue, 2 Oct 2007 10:32:03 +0000 (10:32 +0000)]
Ensure show watch is fired if client is disconnected.
When a client is disconnected connection_destroy and, in turn,
client_disconnect is invoked. This function now calls client_set_state
rather than setting the state directly.

17 years agoFixed bug #1646. http error: when trying to callpz2.
Adam Dickmeiss [Tue, 2 Oct 2007 10:11:56 +0000 (10:11 +0000)]
Fixed bug #1646. http error: when trying to callpz2.
Pazpar2 crashed due to a memory reference when a connection was
NULL for a client. It could become NULL if the client would lose
the connection (e.g. timeout).
Also added a better diagnostic for the case where multiple record with
requests are received by Pazpar2. Bug #1644.

17 years agoRemoved target_timeout from parameters
Adam Dickmeiss [Tue, 2 Oct 2007 10:08:39 +0000 (10:08 +0000)]
Removed target_timeout from parameters

17 years agoDebian 1.0.4-2 with lower connect timeout
Adam Dickmeiss [Tue, 2 Oct 2007 08:40:03 +0000 (08:40 +0000)]
Debian 1.0.4-2 with lower connect timeout

17 years agoLower _connect_ timeout to 15 seconds.
Adam Dickmeiss [Tue, 2 Oct 2007 07:50:12 +0000 (07:50 +0000)]
Lower _connect_ timeout to 15 seconds.

17 years agoTowards 1.0.4. PAZPAR2.1.0.4
Adam Dickmeiss [Fri, 28 Sep 2007 12:20:36 +0000 (12:20 +0000)]
Towards 1.0.4.

17 years agoThrowing errors (instead of polling) when the WS response is malformed (non well...
Jakub Skoczen [Fri, 28 Sep 2007 10:14:09 +0000 (10:14 +0000)]
Throwing errors (instead of polling) when the WS response is malformed (non well-formed XML or missing <status>OK</status> node).
Error handler for catching asynchronously thrown errors.

17 years agoAdded function document.transformToDoc.
Anders S. Mortensen [Thu, 27 Sep 2007 09:15:48 +0000 (09:15 +0000)]
Added function document.transformToDoc.

17 years agoSlightly better diagnostics for HTTP parse errors
Adam Dickmeiss [Wed, 26 Sep 2007 09:09:15 +0000 (09:09 +0000)]
Slightly better diagnostics for HTTP parse errors

17 years agoDebian package 1.0.3-6 with HTTP fixes.
Adam Dickmeiss [Wed, 26 Sep 2007 08:56:29 +0000 (08:56 +0000)]
Debian package 1.0.3-6 with HTTP fixes.

17 years agoFixed bug #1659: Honor LF in HTTP headers.
Adam Dickmeiss [Wed, 26 Sep 2007 08:53:53 +0000 (08:53 +0000)]
Fixed bug #1659: Honor LF in HTTP headers.
Fixed bug #1665: HTTP Parse errros should produce HTTP errors.
Set negotiated HTTP version in HTTP response (i.e. HTTP 1.0 response
for HTTP 1.0 requests).
Perform proper Keep alive negotiation by inspecting 'Connection' in
HTTP header.

17 years agoPazpar2 honors POST requests and proxy's them too if proxy is enabled.
Adam Dickmeiss [Sun, 23 Sep 2007 15:39:24 +0000 (15:39 +0000)]
Pazpar2 honors POST requests and proxy's them too if proxy is enabled.
Bug #1095. URI arguments are interpreted if Content-Type is
application/x-www-form-urlencoded. There are areas, still, where Pazpar2
needs tweaks more functionality in order to be HTTP 1.1 compliant - most
notably support for chunked encoding. The HTTP code also assumes that
HTTP lines ends with \r\n. While that it according to spec, not all
clients do so (YAZ bug #806).

17 years agoClient state Client_Connected is now considered active. It's the
Adam Dickmeiss [Thu, 20 Sep 2007 09:22:37 +0000 (09:22 +0000)]
Client state Client_Connected is now considered active. It's the
stage after connection has been established but before Init has
been sent. This is another fix for bug #1628.

17 years agoMore active trickery. Setting state to Client_Continue instead Client_Idle
Adam Dickmeiss [Thu, 20 Sep 2007 08:34:50 +0000 (08:34 +0000)]
More active trickery. Setting state to Client_Continue instead Client_Idle
when receiving successful responses (init, search, present).

17 years agoDebian package for fix of bug #1628.
Adam Dickmeiss [Thu, 20 Sep 2007 08:14:21 +0000 (08:14 +0000)]
Debian package for fix of bug #1628.

17 years agoFixed bug #1628: show command returns zero hits when searching a slow target.
Adam Dickmeiss [Thu, 20 Sep 2007 08:13:26 +0000 (08:13 +0000)]
Fixed bug #1628: show command returns zero hits when searching a slow target.
The problem was that a client was in Client_Idle case when it was actually
about to perform a search or other operation. The problem was in function
client_prep_connection where a client state was set to CLient_Idle if
connection was already open. This is wrong. The client is not idle: it
is about to perform a search. A new client state is therefore needed:
Client_Continue, which is like Client_Idle but differs in that a client
is considered active. Neither Connecting or Connected are the same stage
because these are states prior to Init Handshake with target.

17 years agoDeal with targets that return negative hit counts.
Adam Dickmeiss [Wed, 19 Sep 2007 13:23:35 +0000 (13:23 +0000)]
Deal with targets that return negative hit counts.

17 years agoTerminate blocking show if active clients reaches zero
Adam Dickmeiss [Wed, 19 Sep 2007 13:00:01 +0000 (13:00 +0000)]
Terminate blocking show if active clients reaches zero

17 years agoRemoved log statement with undefined behavior PAZPAR2.1.0.3
Adam Dickmeiss [Wed, 19 Sep 2007 09:49:22 +0000 (09:49 +0000)]
Removed log statement with undefined behavior

17 years agoIgnore test program
Adam Dickmeiss [Wed, 19 Sep 2007 09:46:26 +0000 (09:46 +0000)]
Ignore test program

17 years agoTowards 1.0.3
Adam Dickmeiss [Wed, 19 Sep 2007 09:45:36 +0000 (09:45 +0000)]
Towards 1.0.3

17 years agoOne OpenUrl per merged record.
Jakub Skoczen [Mon, 17 Sep 2007 08:43:17 +0000 (08:43 +0000)]
One OpenUrl per merged record.

17 years agoFile test_icu.cfg part of distribution.
Adam Dickmeiss [Sat, 15 Sep 2007 09:09:53 +0000 (09:09 +0000)]
File test_icu.cfg part of distribution.

17 years agoSolving bug 1581.
Jakub Skoczen [Fri, 14 Sep 2007 09:46:49 +0000 (09:46 +0000)]
Solving bug 1581.

17 years agopzHttpRequest: escape() used instead of encodeURI() for GET parameter values.
Jakub Skoczen [Wed, 12 Sep 2007 08:57:14 +0000 (08:57 +0000)]
pzHttpRequest: escape() used instead of encodeURI() for GET parameter values.

17 years agoFixed non-ICU compilation
Adam Dickmeiss [Wed, 12 Sep 2007 07:03:03 +0000 (07:03 +0000)]
Fixed non-ICU compilation

17 years agoGetting rid of Bug 1364.
Jakub Skoczen [Tue, 11 Sep 2007 15:52:13 +0000 (15:52 +0000)]
Getting rid of Bug 1364.

17 years agoFixed dist rule for test_icu..res files
Adam Dickmeiss [Mon, 10 Sep 2007 16:34:45 +0000 (16:34 +0000)]
Fixed dist rule for test_icu..res files

17 years agoURLs for ICU testing.
Adam Dickmeiss [Mon, 10 Sep 2007 16:33:53 +0000 (16:33 +0000)]
URLs for ICU testing.

17 years agoImplemented sorting using ICU. Bug #1190. The Debian package now
Adam Dickmeiss [Mon, 10 Sep 2007 16:25:49 +0000 (16:25 +0000)]
Implemented sorting using ICU. Bug #1190. The Debian package now
enables ICU by default. Added new tests for ICU enabled Pazpar2 - test
skipped if ICU is not enabled.

17 years agoDo not depend on HAVE_ICU - because 1) we never want public headers to
Adam Dickmeiss [Mon, 10 Sep 2007 16:05:48 +0000 (16:05 +0000)]
Do not depend on HAVE_ICU - because 1) we never want public headers to
become dependent on HAVE_-something. and 2) C code including icu_I18N.h
checks becore inclusion.

17 years agoFixed bug #1535: Missing term in output for some configuration(s).
Adam Dickmeiss [Mon, 10 Sep 2007 16:04:20 +0000 (16:04 +0000)]
Fixed bug #1535: Missing term in output for some configuration(s).

17 years agoSolved: IE throwing exception if text contents of the node was an empty string.
Jakub Skoczen [Mon, 10 Sep 2007 13:18:53 +0000 (13:18 +0000)]
Solved: IE throwing exception if text contents of the node was an empty string.

17 years agonxml indent (no semantic change)
Adam Dickmeiss [Mon, 10 Sep 2007 09:10:16 +0000 (09:10 +0000)]
nxml indent (no semantic change)

17 years agoAdded option -V which shows version information.
Adam Dickmeiss [Mon, 10 Sep 2007 08:42:48 +0000 (08:42 +0000)]
Added option -V which shows version information.

17 years agoFactor out most of the regression test to separate script
Adam Dickmeiss [Mon, 10 Sep 2007 08:18:19 +0000 (08:18 +0000)]
Factor out most of the regression test to separate script

17 years agoAdded small test for existing metadata character normalization system.
Adam Dickmeiss [Fri, 7 Sep 2007 10:46:33 +0000 (10:46 +0000)]
Added small test for existing metadata character normalization system.

17 years agoIndent
Adam Dickmeiss [Fri, 7 Sep 2007 10:27:14 +0000 (10:27 +0000)]
Indent

17 years agoRemoved debug message
Adam Dickmeiss [Wed, 5 Sep 2007 09:13:32 +0000 (09:13 +0000)]
Removed debug message

17 years agoDebian package 1.0.2-8
Adam Dickmeiss [Wed, 5 Sep 2007 08:43:53 +0000 (08:43 +0000)]
Debian package 1.0.2-8

17 years agoFixed bug #1507: Command record=..&id=.. should block if it does not exist.
Adam Dickmeiss [Wed, 5 Sep 2007 08:40:12 +0000 (08:40 +0000)]
Fixed bug #1507: Command record=..&id=.. should block if it does not exist.
Added a new session watch type plus two HTTP requests for testing of
this.

17 years agoFixed bug #1395: Fixed size array in function hitsbytarget in logic.c.
Adam Dickmeiss [Wed, 5 Sep 2007 07:24:04 +0000 (07:24 +0000)]
Fixed bug #1395: Fixed size array in function hitsbytarget in logic.c.
Also added a test for command=bytarget.

17 years agoDebian 1.0.2-7: Fix pazpar2path setting so that empty string is allowed.
Adam Dickmeiss [Tue, 4 Sep 2007 08:01:09 +0000 (08:01 +0000)]
Debian 1.0.2-7: Fix pazpar2path setting so that empty string is allowed.

17 years agoAllow empty string for pazpar2path
Adam Dickmeiss [Mon, 3 Sep 2007 20:13:22 +0000 (20:13 +0000)]
Allow empty string for pazpar2path

17 years agoNew Debian package with updated pz2.js
Adam Dickmeiss [Mon, 3 Sep 2007 09:56:34 +0000 (09:56 +0000)]
New Debian package with updated pz2.js

17 years agoremoving typo.
Jakub Skoczen [Thu, 30 Aug 2007 13:43:43 +0000 (13:43 +0000)]
removing typo.

17 years agoChanges to fully support accessing pazpar2 through a proxy.
Jakub Skoczen [Thu, 30 Aug 2007 13:24:37 +0000 (13:24 +0000)]
Changes to fully support accessing pazpar2 through a proxy.

17 years agobetter error recording and output of example XML config file added
Marc Cromme [Thu, 30 Aug 2007 08:45:08 +0000 (08:45 +0000)]
better error recording and output of example XML config file added

17 years agoEliminated exits. Pointer type change, to remove warning
Sebastian Hammer [Tue, 28 Aug 2007 21:11:21 +0000 (21:11 +0000)]
Eliminated exits. Pointer type change, to remove warning

17 years agoThis should address Bug 1433, OpenURL links appearing where they should not.
Sebastian Hammer [Tue, 28 Aug 2007 16:47:30 +0000 (16:47 +0000)]
This should address Bug 1433, OpenURL links appearing where they should not.
marc21.xsl normalization stylesheet was generating metadata element whether
an OpenURL resolver was known or not. This caused display stylesheet to
generate the element. Could have been fixed either place.

17 years agoCreate a symlink rather than a file in /etc/apache2/conf.d
Adam Dickmeiss [Wed, 22 Aug 2007 13:25:55 +0000 (13:25 +0000)]
Create a symlink rather than a file in /etc/apache2/conf.d

17 years agoOfficial version 1.0.2. PAZPAR2.1.0.2
Adam Dickmeiss [Wed, 22 Aug 2007 09:54:57 +0000 (09:54 +0000)]
Official version 1.0.2.

17 years agoChanged session_setting_oneval to return 'const string' rather than
Adam Dickmeiss [Fri, 17 Aug 2007 12:39:11 +0000 (12:39 +0000)]
Changed session_setting_oneval to return 'const string' rather than
string. Settings returned are strictly read-only.

17 years agoFixed bug #1355: CCL-queries messed up by binary chars.
Adam Dickmeiss [Fri, 17 Aug 2007 12:25:26 +0000 (12:25 +0000)]
Fixed bug #1355: CCL-queries messed up by binary chars.
Apparently the yaz_iconv_open was passed an empty string - returned
from absent queryencoding setting. We now check for empty string..
I don't like empty string and NULL value to be messed. Function
session_setting_oneval should return NULL for absent value. Empty
string for empty string.

17 years agoAdded test for bug #1355.
Adam Dickmeiss [Fri, 17 Aug 2007 12:11:50 +0000 (12:11 +0000)]
Added test for bug #1355.

17 years agoAdded open-url-resolver setting to the default set of targets.
Jakub Skoczen [Fri, 17 Aug 2007 11:29:36 +0000 (11:29 +0000)]
Added open-url-resolver setting to the default set of targets.

17 years agoAdded open-url element to the service.
Jakub Skoczen [Thu, 16 Aug 2007 12:42:44 +0000 (12:42 +0000)]
Added open-url element to the service.

17 years agoAdding open-url lik generation to the normalization stylesheets.
Jakub Skoczen [Thu, 16 Aug 2007 12:40:01 +0000 (12:40 +0000)]
Adding open-url lik generation to the normalization stylesheets.

17 years agoFixed bug #1358: md-title-remainder may or may not be present in test.
Adam Dickmeiss [Thu, 16 Aug 2007 11:30:45 +0000 (11:30 +0000)]
Fixed bug #1358: md-title-remainder may or may not be present in test.
The xmlNodeListGetString in some cases returns NULL and other cases
return "" for what seems to be same input.

17 years agoadded docbook-xsl to build dependencies
Marc Cromme [Thu, 16 Aug 2007 07:56:18 +0000 (07:56 +0000)]
added docbook-xsl to build dependencies

17 years agoCreated new field, 'subject-long' containing detailed subject headings.. it appears
Sebastian Hammer [Thu, 16 Aug 2007 03:12:42 +0000 (03:12 +0000)]
Created new field, 'subject-long' containing detailed subject headings.. it appears
the fully detailed subject headings don't work well as search access points, at
least in the LoC.

17 years agoTuning subject display
Sebastian Hammer [Thu, 16 Aug 2007 02:56:33 +0000 (02:56 +0000)]
Tuning subject display

17 years agoAdded subject subfields -- to differentiate different subcategories.
Sebastian Hammer [Thu, 16 Aug 2007 02:44:19 +0000 (02:44 +0000)]
Added subject subfields -- to differentiate different subcategories.

17 years agoChanges in the pz2.js to make back button work.
Jakub Skoczen [Tue, 14 Aug 2007 14:23:32 +0000 (14:23 +0000)]
Changes in the pz2.js to make back button work.

17 years agoTesting some settings as well
Adam Dickmeiss [Tue, 14 Aug 2007 14:06:21 +0000 (14:06 +0000)]
Testing some settings as well

17 years agoFixed bug #1021: Handling of individual proxies for targets.
Adam Dickmeiss [Tue, 14 Aug 2007 14:03:02 +0000 (14:03 +0000)]
Fixed bug #1021: Handling of individual proxies for targets.

17 years agoBlock on first show following invalid search
Adam Dickmeiss [Tue, 14 Aug 2007 13:14:48 +0000 (13:14 +0000)]
Block on first show following invalid search

17 years agoImplemented what could be a fix for bug #1356: Pazpar2 crashes for some
Adam Dickmeiss [Mon, 13 Aug 2007 13:27:04 +0000 (13:27 +0000)]
Implemented what could be a fix for bug #1356: Pazpar2 crashes for some
invalid URL. The problem is not URL related but rather that a show following
a faulty search (here filter fail) will read a _lot_ of uninitalized memory.

17 years agoIgnore valgrind output.
Adam Dickmeiss [Mon, 13 Aug 2007 12:51:11 +0000 (12:51 +0000)]
Ignore valgrind output.

17 years agoAllow the use of valgrind
Adam Dickmeiss [Mon, 13 Aug 2007 12:51:00 +0000 (12:51 +0000)]
Allow the use of valgrind

17 years agoFixed bug #1359: Pazpar2 reading uninitialized memory when sorting.
Adam Dickmeiss [Mon, 13 Aug 2007 12:42:45 +0000 (12:42 +0000)]
Fixed bug #1359: Pazpar2 reading uninitialized memory when sorting.
The offset is -1 when relevance is in effect. We just use value
0 instead.

17 years agoDebian package bug #1348 fixed.
Adam Dickmeiss [Mon, 13 Aug 2007 12:13:31 +0000 (12:13 +0000)]
Debian package bug #1348 fixed.

17 years agoFixed bug #1348: Conversion into OPAC. The MARC conversion module
Adam Dickmeiss [Mon, 13 Aug 2007 12:12:30 +0000 (12:12 +0000)]
Fixed bug #1348: Conversion into OPAC. The MARC conversion module
was using Libxml2 to produce the bibliographicRecord and caused an
XML header to be included in a bad place.

17 years agoid logo part of pazpar2-jsdemo package
Adam Dickmeiss [Mon, 13 Aug 2007 08:38:07 +0000 (08:38 +0000)]
id logo part of pazpar2-jsdemo package

17 years agoAdded URL-recipe to dist file. Not sure if this is the right thing
Sebastian Hammer [Mon, 13 Aug 2007 03:43:40 +0000 (03:43 +0000)]
Added URL-recipe to dist file. Not sure if this is the right thing
to do, but auth module in standard masterkey relies on it, and it
doesn't hurt aanyone if it isn't used.

17 years agoInclude test marc21.xsl in distribution (tar.gz).
Adam Dickmeiss [Sun, 12 Aug 2007 10:36:33 +0000 (10:36 +0000)]
Include test marc21.xsl in distribution (tar.gz).

17 years agoUpdated doc to reflect changes in settings system
Sebastian Hammer [Wed, 1 Aug 2007 11:48:26 +0000 (11:48 +0000)]
Updated doc to reflect changes in settings system

17 years agoIncluded description of settings exposed to records.
Sebastian Hammer [Tue, 31 Jul 2007 22:35:40 +0000 (22:35 +0000)]
Included description of settings exposed to records.

17 years agoEnabled passing settings values to normalization stylesheet.
Sebastian Hammer [Mon, 30 Jul 2007 23:16:33 +0000 (23:16 +0000)]
Enabled passing settings values to normalization stylesheet.

17 years agoMade local copy of marc21.xsl. This was done to support tests and behavior
Sebastian Hammer [Mon, 30 Jul 2007 23:06:01 +0000 (23:06 +0000)]
Made local copy of marc21.xsl. This was done to support tests and behavior
that is not desirable in demo/production systems.

17 years agoAdded support for settings-derived data elements in post-normalization record
Sebastian Hammer [Mon, 30 Jul 2007 11:52:08 +0000 (11:52 +0000)]
Added support for settings-derived data elements in post-normalization record

17 years agoadded target debian;
Marc Cromme [Fri, 27 Jul 2007 09:07:49 +0000 (09:07 +0000)]
added target debian;

17 years agoAdded IE/FF compatibility functions.
Jakub Skoczen [Thu, 26 Jul 2007 13:47:52 +0000 (13:47 +0000)]
Added IE/FF compatibility functions.

DOMDocument:
    newXmlDoc
    parseXmlFromString

DOMElement:
    removeFromDoc
    emptyChildren
    appendTransformResult
    appendTextNode
    setTextContent
    getTextContent

17 years agoFixed bug #1319: Pazpar2 goes to infinite loop.. Seems resolver related.
Adam Dickmeiss [Wed, 25 Jul 2007 13:27:06 +0000 (13:27 +0000)]
Fixed bug #1319: Pazpar2 goes to infinite loop.. Seems resolver related.
Routine connect_resolver_host had a brain-damaged loop structure.

17 years agoRemoved sleep/test code which was commited by mistake
Adam Dickmeiss [Wed, 25 Jul 2007 13:20:46 +0000 (13:20 +0000)]
Removed sleep/test code which was commited by mistake

17 years agoZ39.50 session/connect timeout in parameters
Adam Dickmeiss [Wed, 25 Jul 2007 11:41:32 +0000 (11:41 +0000)]
Z39.50 session/connect timeout in parameters

17 years agoRemoved unused code
Adam Dickmeiss [Wed, 25 Jul 2007 11:00:26 +0000 (11:00 +0000)]
Removed unused code

17 years agoAdded clickable facets to the jsdemo.
Jakub Skoczen [Tue, 24 Jul 2007 08:15:12 +0000 (08:15 +0000)]
Added clickable facets to the jsdemo.

17 years agoNew internal Deb package: osrting by year
Adam Dickmeiss [Mon, 23 Jul 2007 12:28:46 +0000 (12:28 +0000)]
New internal Deb package: osrting by year

17 years agoAdded note about sorting by year.
Adam Dickmeiss [Mon, 23 Jul 2007 12:27:44 +0000 (12:27 +0000)]
Added note about sorting by year.

17 years agoImplemented numeric sorting (sort by year). Bug #820.
Adam Dickmeiss [Mon, 23 Jul 2007 12:23:30 +0000 (12:23 +0000)]
Implemented numeric sorting (sort by year). Bug #820.

17 years agoAdded test for sorting of title.
Adam Dickmeiss [Mon, 23 Jul 2007 11:54:00 +0000 (11:54 +0000)]
Added test for sorting of title.

17 years agoRemoved masterkey.cfg
Adam Dickmeiss [Thu, 19 Jul 2007 17:48:18 +0000 (17:48 +0000)]
Removed masterkey.cfg

17 years agoMaking demo look nicer.
Jakub Skoczen [Wed, 18 Jul 2007 16:44:15 +0000 (16:44 +0000)]
Making demo look nicer.

17 years agoAdded OAI/DC conversion.
Adam Dickmeiss [Wed, 18 Jul 2007 14:19:03 +0000 (14:19 +0000)]
Added OAI/DC conversion.

17 years agoAdded this stylesheet. Just includes marc21.xsl.
Adam Dickmeiss [Wed, 18 Jul 2007 14:11:42 +0000 (14:11 +0000)]
Added this stylesheet. Just includes marc21.xsl.