Adam Dickmeiss [Tue, 3 Jul 2007 13:02:32 +0000 (13:02 +0000)]
List filter as search parameter
Adam Dickmeiss [Tue, 3 Jul 2007 11:41:22 +0000 (11:41 +0000)]
pz:apdulog example
Adam Dickmeiss [Tue, 3 Jul 2007 11:21:48 +0000 (11:21 +0000)]
Added new setting pz:apdulog which controls whether APDUs should be
logged for some target(s).
Fixed bug #1252: Using record&offset=.. may hang for a long time.
The problem was that a target did return a record initially but
it failed for later present requests . So it was disconnected at the
time the record&offset= was used.
Adam Dickmeiss [Tue, 3 Jul 2007 10:10:14 +0000 (10:10 +0000)]
Be more informative if HTTP parsing fails
Adam Dickmeiss [Mon, 2 Jul 2007 20:55:50 +0000 (20:55 +0000)]
reclist_rewind and reclist_read_record handles non-existing reclist
Adam Dickmeiss [Mon, 2 Jul 2007 20:55:07 +0000 (20:55 +0000)]
Function 'record' takes optional 2nd parameter which is offset - for
raw retrieval.
Adam Dickmeiss [Mon, 2 Jul 2007 20:02:48 +0000 (20:02 +0000)]
termlist parameters in variablelist.
Adam Dickmeiss [Mon, 2 Jul 2007 20:00:21 +0000 (20:00 +0000)]
Fixed record example output.
Jakub Skoczen [Mon, 2 Jul 2007 12:52:03 +0000 (12:52 +0000)]
Removing array pushes.
Jakub Skoczen [Mon, 2 Jul 2007 10:16:46 +0000 (10:16 +0000)]
Stylesheet fetched in async mode.
Adam Dickmeiss [Thu, 28 Jun 2007 09:36:10 +0000 (09:36 +0000)]
Added parameter clear=1 for init command which makes the session not use
predefined databases from configuration.
Adam Dickmeiss [Thu, 28 Jun 2007 08:53:25 +0000 (08:53 +0000)]
Copy settings/*.xml to /etc/pazpar2/settings - including defaults.xml
Adam Dickmeiss [Tue, 26 Jun 2007 13:03:46 +0000 (13:03 +0000)]
Handle timeout for Z39.50 connections. For connect phase there is a
timeout of 30 seconds. Problem is that some targets connect OK, but init
will hang (forever). For idle connections, the timeout is 3 minutes.
Adam Dickmeiss [Tue, 26 Jun 2007 13:01:07 +0000 (13:01 +0000)]
URL decode variable names. Not just values. If not, things will break
badly if a target includes a blank in the database name.
Adam Dickmeiss [Mon, 25 Jun 2007 07:23:56 +0000 (07:23 +0000)]
Fixed usesessions=false mode. The initStatusOK was not set to true.
Adam Dickmeiss [Fri, 22 Jun 2007 13:18:23 +0000 (13:18 +0000)]
Fixed several spellings. Indentation is 1 (as given in Emacs locals)
Adam Dickmeiss [Fri, 22 Jun 2007 12:45:28 +0000 (12:45 +0000)]
Spell fixes
Adam Dickmeiss [Fri, 22 Jun 2007 10:54:59 +0000 (10:54 +0000)]
Spell Pazpar2 consistently
Adam Dickmeiss [Fri, 22 Jun 2007 10:54:46 +0000 (10:54 +0000)]
Example client specifies usesessions=true
Adam Dickmeiss [Fri, 22 Jun 2007 10:52:09 +0000 (10:52 +0000)]
Allow pz2 parameter usesession=boolean. Default value is true in
which case pz2 defines sessions on its own or is told to via method
'init'. For usesession=false, the object does not use ping and
sessions are not sent to the non-pazpar2 service behind it.
Adam Dickmeiss [Thu, 21 Jun 2007 14:05:41 +0000 (14:05 +0000)]
Method pzHttpRequest.{get,post} takes URL params as array of object rather
than object. This allow us to build the params.
Adam Dickmeiss [Thu, 21 Jun 2007 09:45:03 +0000 (09:45 +0000)]
jsdemo now uses /pazpar2/search.pz2 for searches
Adam Dickmeiss [Thu, 21 Jun 2007 09:44:17 +0000 (09:44 +0000)]
example moved to jsdemo
Adam Dickmeiss [Thu, 21 Jun 2007 09:42:46 +0000 (09:42 +0000)]
Added new parameter for pz2 object: pazpar2path which sets Pazpar2 path.
Default value is "search.pz2".
Adam Dickmeiss [Wed, 20 Jun 2007 19:27:18 +0000 (19:27 +0000)]
Put files for Debian package pazpar2-test1 and pazpar2-jsdemo in
/usr/share/pazpar2/test1 and /usr/share/pazpar2/jsdemo respectively.
This makes our package only use one Apache2 config rather than one for
each UI. The ProxyPass rule(s) are only specified in pazpar2-apache2.
Adam Dickmeiss [Wed, 20 Jun 2007 19:24:43 +0000 (19:24 +0000)]
Reload apache2 in configure mode (install/upgrade)
Adam Dickmeiss [Wed, 20 Jun 2007 14:11:41 +0000 (14:11 +0000)]
jsdemo included in distribution. It illustrates the use of the js/pz2.js
JavaScript library. Added Debian package pazpar2-jsdemo .
Adam Dickmeiss [Wed, 20 Jun 2007 14:03:15 +0000 (14:03 +0000)]
Example client moved to jsdemo. There are other examples and jsdemo
illustrates the use of the pz2.js library.
Adam Dickmeiss [Wed, 20 Jun 2007 13:43:14 +0000 (13:43 +0000)]
Package pazpar2-apache now makes /usr/share/pazpar2 available as /pazpar2.
JavaScript library pz2.js is therefore available as /pazpar2/js/pz2.js in
the installation.
Adam Dickmeiss [Wed, 20 Jun 2007 08:43:34 +0000 (08:43 +0000)]
Added these.
Adam Dickmeiss [Wed, 20 Jun 2007 08:38:56 +0000 (08:38 +0000)]
Version 1.0.0
Adam Dickmeiss [Wed, 20 Jun 2007 08:37:10 +0000 (08:37 +0000)]
Add a little on option -t in test1 example. Make installation
requirement on a C99 compliant compiler.
Adam Dickmeiss [Wed, 20 Jun 2007 08:25:58 +0000 (08:25 +0000)]
URL link to MARCXML
Adam Dickmeiss [Wed, 20 Jun 2007 08:22:13 +0000 (08:22 +0000)]
Added a section about how to install a Pazpar2 interface test1.
Adam Dickmeiss [Wed, 20 Jun 2007 08:05:11 +0000 (08:05 +0000)]
And port is 8004
Adam Dickmeiss [Wed, 20 Jun 2007 08:02:20 +0000 (08:02 +0000)]
The template dist config proxy to localhost:80
Adam Dickmeiss [Wed, 20 Jun 2007 07:41:58 +0000 (07:41 +0000)]
Use product name Pazpar2 consistently. Fixed about a dozen typos.
Adam Dickmeiss [Wed, 20 Jun 2007 07:03:43 +0000 (07:03 +0000)]
Removed files no longer in use.
Adam Dickmeiss [Wed, 20 Jun 2007 06:58:50 +0000 (06:58 +0000)]
Of www stuff - only test1 is part dist.
Adam Dickmeiss [Wed, 20 Jun 2007 06:54:18 +0000 (06:54 +0000)]
File ap2pazpar2.cfg part of pazpar2-apache2
Adam Dickmeiss [Wed, 20 Jun 2007 06:51:42 +0000 (06:51 +0000)]
These are no longer in use because masterkey is now separate CVS project.
Adam Dickmeiss [Wed, 20 Jun 2007 06:47:09 +0000 (06:47 +0000)]
Removed obsolete documentation from README
Adam Dickmeiss [Tue, 19 Jun 2007 15:55:43 +0000 (15:55 +0000)]
Not in use
Adam Dickmeiss [Tue, 19 Jun 2007 13:22:40 +0000 (13:22 +0000)]
Added Debian packages: pazpar2-apache2 and pazpar2-test1. The former
package enables proxying for Apache2 so that pazpar2 can act as a
HTTP backend internal server. The latter package installs the original
and quite simple test1 portal in http://host/pazpar2-test1/ .
Adam Dickmeiss [Tue, 19 Jun 2007 12:50:02 +0000 (12:50 +0000)]
Dont use block=1 on show. Increase timeouts in general
Adam Dickmeiss [Tue, 19 Jun 2007 12:25:29 +0000 (12:25 +0000)]
Pazpar2 logs more details about non-surrogate diagnostics. Deals with
multiple non-surrogate diagnostics too.
Adam Dickmeiss [Tue, 19 Jun 2007 12:19:30 +0000 (12:19 +0000)]
Change reference to marc21.xsl
Adam Dickmeiss [Tue, 19 Jun 2007 12:18:50 +0000 (12:18 +0000)]
Fixed edu targets. Conversion from edu.pz redone
Adam Dickmeiss [Tue, 19 Jun 2007 10:16:15 +0000 (10:16 +0000)]
Display errno information if stylesheet cannot be loaded.
Adam Dickmeiss [Tue, 19 Jun 2007 10:15:44 +0000 (10:15 +0000)]
Fixed potential buffer overrun in use of sprintf/strncpy. If the stylesheet
path is absolute, then it's absolute (and not prepended with confdir.
Adam Dickmeiss [Tue, 19 Jun 2007 07:58:35 +0000 (07:58 +0000)]
Added pointers to Debian - and Source areas. More pointers to existing
standards. Added a little more on proxying.
Adam Dickmeiss [Mon, 18 Jun 2007 18:16:57 +0000 (18:16 +0000)]
pz2.js part of dist
Adam Dickmeiss [Mon, 18 Jun 2007 13:44:51 +0000 (13:44 +0000)]
Notes on changes in Debian package
Adam Dickmeiss [Mon, 18 Jun 2007 13:43:23 +0000 (13:43 +0000)]
Make init script LSB compliant. wiki.debian.org/LSBInitScripts .
Adam Dickmeiss [Mon, 18 Jun 2007 13:15:52 +0000 (13:15 +0000)]
Make NEWS part of Debian package
Adam Dickmeiss [Mon, 18 Jun 2007 13:04:50 +0000 (13:04 +0000)]
Default pazpar2 installation listens on port 8004. It is not in use
by an existing service, AFAIK.
Adam Dickmeiss [Mon, 18 Jun 2007 12:55:43 +0000 (12:55 +0000)]
Added man page for the pazpar2 daemon. Volume is now 8 rather than 1
because it's a daemon.
Adam Dickmeiss [Mon, 18 Jun 2007 12:38:30 +0000 (12:38 +0000)]
Use /usr/sbin/pazpar2 rather than /usr/bin/pazpar2
Adam Dickmeiss [Mon, 18 Jun 2007 12:37:54 +0000 (12:37 +0000)]
Install pazpar2 in /usr/sbin rather than /usr/bin
Adam Dickmeiss [Mon, 18 Jun 2007 12:37:39 +0000 (12:37 +0000)]
Sort options
Adam Dickmeiss [Mon, 18 Jun 2007 12:37:16 +0000 (12:37 +0000)]
Include usr/sbin in pazpar2.dirs
Adam Dickmeiss [Mon, 18 Jun 2007 11:46:14 +0000 (11:46 +0000)]
First version with start/stop script. The configuration lives in
/etc/pazpar2 . The default configuration writes PID file in
/var/run/pazpar2.pid. The log file is written to /var/log/pazpar2.log.
The pazpar2 process is running as nobody.
Adam Dickmeiss [Mon, 18 Jun 2007 11:44:43 +0000 (11:44 +0000)]
Pidfile was written with wrong PID. Bug introduced in previous commit.
Adam Dickmeiss [Mon, 18 Jun 2007 11:10:20 +0000 (11:10 +0000)]
Added option -D which puts pazpar2 in background. This improves the
startup process when pazpar2 is used in start scripts such as Debian's
start-stop-daemon. Without -D, pazpar2 would have to be started using
-b for start-stop-daemon. Refer to man page start-stop-daemon(8).
This change also makes pazpar2 change uid before the daemon is running.
We just ensure that HTTP binding and YAZ log files, PID files are dealt with
before any setuid takes place.. Pazpar2 makes log entry with version
info. The daemon mode refuses to start if -l is not given. This is to ensure
that logfile output is not dumped to /dev/null by accident.
Adam Dickmeiss [Sun, 17 Jun 2007 19:17:50 +0000 (19:17 +0000)]
Disable linking of pz2.js. It breaks make dist
Adam Dickmeiss [Sun, 17 Jun 2007 18:24:02 +0000 (18:24 +0000)]
Javascript util js/pz2.js part of dist. This is installed in
PREFIX/usr/share/papazpar2/js and is also part of the Debian package.
Adam Dickmeiss [Sun, 17 Jun 2007 18:22:49 +0000 (18:22 +0000)]
Only one include of stdio.h and with _GNU_SOURCE defined.
Added include of "cconfig.h". _all_ Pazpar2 source must include it.
Adam Dickmeiss [Sun, 17 Jun 2007 07:53:18 +0000 (07:53 +0000)]
Pazpar2 require YAZ 3
Adam Dickmeiss [Sun, 17 Jun 2007 07:52:20 +0000 (07:52 +0000)]
Avoid non-zero exit in make dist of Debian part
Adam Dickmeiss [Sun, 17 Jun 2007 07:50:50 +0000 (07:50 +0000)]
Added Original Debian dh_make output files. These files should not
be part of the distribution. They just serve as examples .. includes
init-scripts etc.
Adam Dickmeiss [Sun, 17 Jun 2007 07:47:57 +0000 (07:47 +0000)]
First Debian package. Only tested on Debian testing (lenny).
Adam Dickmeiss [Sun, 17 Jun 2007 07:05:21 +0000 (07:05 +0000)]
Removed definition of docdir. It is set by automake already
Adam Dickmeiss [Sun, 17 Jun 2007 07:04:37 +0000 (07:04 +0000)]
icu_chain_test is a noinst program at this stage
Adam Dickmeiss [Sat, 16 Jun 2007 07:23:00 +0000 (07:23 +0000)]
Use block=1 in test of show command
Adam Dickmeiss [Fri, 15 Jun 2007 19:35:17 +0000 (19:35 +0000)]
Work on bug #1192: block=1, session_watch problems. The http_channel
now includes an observer interface so that objects using it
can be notified when it's destroyed. This is combined with the
watch mechanism. Tests shows that this change fixes first problem
as described in bug #1192. Second problem is also fixed. If a watch
is already registered on show records, subsequent requests will not
block. The third and fourth problems are not solved by this. While
the show raw (pass through) does not uses session watch, it is still
fixed to use the http_channel observer. This commit also fixes two
leaks.
Adam Dickmeiss [Fri, 15 Jun 2007 06:55:16 +0000 (06:55 +0000)]
Ooops. Not using same result set ID for search & present. Pazpar2
now no longer sets resultSetId for search/present. zget_.. does it
just right. The ID is 'default' (Not 'Default').
Adam Dickmeiss [Fri, 15 Jun 2007 06:45:39 +0000 (06:45 +0000)]
Extended command 'record' so that XML representation of original record
can be returned. Bug #1172. If parameter 'offset' is given for command
'record' the original record is returned and offset is the record offset
within cluster (merged) record, where 0=first, 1=second, etc.. If no record
at offset is given diagnostic RECORD_FAIL is returned. When offset
is given, the value of parameter 'syntax' and 'esn' specifies the
record syntax and element set respectively. If any of these are omitted
the present request also omits them. The code to convert from 'raw' to
XML is combined into one function record_to_xml. Note that OPAC records
are not converted to XML yet.
Adam Dickmeiss [Wed, 13 Jun 2007 21:30:08 +0000 (21:30 +0000)]
Update test_record test for new arg to record_create
Adam Dickmeiss [Wed, 13 Jun 2007 21:29:04 +0000 (21:29 +0000)]
Work on bug #1172. Save result set postition for each record in a
cluster.
Jakub Skoczen [Wed, 13 Jun 2007 17:25:02 +0000 (17:25 +0000)]
clear simple query was missing
Jakub Skoczen [Wed, 13 Jun 2007 17:20:17 +0000 (17:20 +0000)]
stop function implemented.
Jakub Skoczen [Wed, 13 Jun 2007 16:07:43 +0000 (16:07 +0000)]
Post request possible with pzHttpRequest class.
Adam Dickmeiss [Wed, 13 Jun 2007 13:04:34 +0000 (13:04 +0000)]
Fixed bug #1187: command=show crashes if used before a search is
performed. Also changed log of session destroy to actually log what
session gets destroyed.
Adam Dickmeiss [Wed, 13 Jun 2007 08:04:03 +0000 (08:04 +0000)]
For errors, pazpar2 returns diagnostic 'code', 'msg' (text representation
of code) + additional info for error. This allows clients to handle errors
in more proper manner.
Adam Dickmeiss [Tue, 12 Jun 2007 13:02:38 +0000 (13:02 +0000)]
Option -p specifies pidfile. Option -u specifies uid for child process.
Non-zero exit code makes pazpar2 stop completely.
Adam Dickmeiss [Tue, 12 Jun 2007 09:26:40 +0000 (09:26 +0000)]
Removed dead code
Adam Dickmeiss [Mon, 11 Jun 2007 13:33:04 +0000 (13:33 +0000)]
Fix problem with show not showing all records. Fixed encoding of
query term in refine_query.
Adam Dickmeiss [Mon, 11 Jun 2007 12:20:00 +0000 (12:20 +0000)]
Ignore this.
Adam Dickmeiss [Mon, 11 Jun 2007 12:18:36 +0000 (12:18 +0000)]
Update test due to slightly different relevance rank output that
occurred with fix of bug #1185.
Adam Dickmeiss [Mon, 11 Jun 2007 12:08:23 +0000 (12:08 +0000)]
Set termlist highscore to 25. It took an hour to figure out why
command=termlist&num=20 did NOT work!
Adam Dickmeiss [Mon, 11 Jun 2007 12:02:48 +0000 (12:02 +0000)]
Fixed bug #1185: metadata includes entities. This minor change makes
the internal data raw and without entities. It missing xmlputs for
records explained why this worked before. However, the termlist output
was bad, because xmlputs were used and so it was _double_ & escaped.
This could explain why entities were seen by some on the facet output.
Adam Dickmeiss [Fri, 8 Jun 2007 13:58:46 +0000 (13:58 +0000)]
Removed unused code
Adam Dickmeiss [Fri, 8 Jun 2007 13:57:19 +0000 (13:57 +0000)]
Process management/respawn. Bug #1173. PID file pazpar2.pid generated
by default.
Adam Dickmeiss [Thu, 7 Jun 2007 12:27:03 +0000 (12:27 +0000)]
Get rid of record_assign_client
Marc Cromme [Wed, 6 Jun 2007 12:02:48 +0000 (12:02 +0000)]
updated documentation of Z39.50 proxying in settings config section
Marc Cromme [Wed, 6 Jun 2007 11:56:35 +0000 (11:56 +0000)]
removed dead, commened out code left from removing global Z39.50 proxying
Marc Cromme [Wed, 6 Jun 2007 11:49:48 +0000 (11:49 +0000)]
removed Z39.50 Proxy functionality from parameters global overrides and moved into the session settings. Added new setting 'pz:zproxy' for the same.
Adam Dickmeiss [Wed, 6 Jun 2007 11:33:18 +0000 (11:33 +0000)]
Update documentation about ProxyPass.
Marc Cromme [Wed, 6 Jun 2007 09:00:56 +0000 (09:00 +0000)]
forgot a closing XML element '>' .. now targets state info is wellformed XML
Jakub Skoczen [Tue, 5 Jun 2007 15:19:25 +0000 (15:19 +0000)]
New function: stop
clearSimpleQuery