Sebastian Hammer [Wed, 11 Apr 2007 13:05:50 +0000 (13:05 +0000)]
Fixed bad dereferencing of null settings
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
Marc Cromme [Wed, 11 Apr 2007 11:13:46 +0000 (11:13 +0000)]
added assert to prevent segfault by dereferencing void pointer 'settings'
Marc Cromme [Wed, 11 Apr 2007 11:10:05 +0000 (11:10 +0000)]
removed unused code in comments
Marc Cromme [Wed, 11 Apr 2007 11:08:24 +0000 (11:08 +0000)]
removed unused code
Marc Cromme [Wed, 11 Apr 2007 11:01:45 +0000 (11:01 +0000)]
remember to free memory, otherwise leaking
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).
Sebastian Hammer [Wed, 11 Apr 2007 04:35:35 +0000 (04:35 +0000)]
Trivial
Sebastian Hammer [Wed, 11 Apr 2007 04:33:41 +0000 (04:33 +0000)]
Implemented pz:allow (turn access to targets on or off)
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).
Sebastian Hammer [Wed, 11 Apr 2007 02:29:32 +0000 (02:29 +0000)]
Added description of session-specific overrides
Sebastian Hammer [Wed, 11 Apr 2007 02:23:21 +0000 (02:23 +0000)]
Removed all mention of users from setting system.
Sebastian Hammer [Wed, 11 Apr 2007 02:18:04 +0000 (02:18 +0000)]
Documented pz:id setting
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.
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
Sebastian Hammer [Tue, 10 Apr 2007 15:44:33 +0000 (15:44 +0000)]
Added description of connections to non-standard resources
Sebastian Hammer [Tue, 10 Apr 2007 15:12:51 +0000 (15:12 +0000)]
Work on non-standard servers
Adam Dickmeiss [Tue, 10 Apr 2007 08:59:35 +0000 (08:59 +0000)]
Use copyright-year entity
Adam Dickmeiss [Tue, 10 Apr 2007 08:53:48 +0000 (08:53 +0000)]
Removed bad data from example
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.
Adam Dickmeiss [Tue, 10 Apr 2007 08:15:17 +0000 (08:15 +0000)]
Added GPL file.
Adam Dickmeiss [Tue, 10 Apr 2007 08:12:46 +0000 (08:12 +0000)]
Ignore Doxyfile
Adam Dickmeiss [Tue, 10 Apr 2007 08:11:53 +0000 (08:11 +0000)]
Added NEWS. ChangeLog, NEWS, buildconf.sh, Doxyfile.in part of dist.
Adam Dickmeiss [Tue, 10 Apr 2007 08:11:18 +0000 (08:11 +0000)]
Create directory config if it does not exist
Sebastian Hammer [Tue, 10 Apr 2007 01:19:56 +0000 (01:19 +0000)]
Used wrong setting for recsyn when constructing search/present request
Sebastian Hammer [Tue, 10 Apr 2007 01:13:27 +0000 (01:13 +0000)]
Syncing with demo version
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.
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?
Sebastian Hammer [Mon, 9 Apr 2007 05:11:49 +0000 (05:11 +0000)]
pz:syntax-->nativesyntax
Sebastian Hammer [Mon, 9 Apr 2007 05:01:32 +0000 (05:01 +0000)]
Added pz:allow setting
Sebastian Hammer [Mon, 9 Apr 2007 03:51:14 +0000 (03:51 +0000)]
Removed. Text is in the doc.. examples to follow
Sebastian Hammer [Mon, 9 Apr 2007 03:49:30 +0000 (03:49 +0000)]
Comment change
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.
Sebastian Hammer [Sun, 8 Apr 2007 22:38:45 +0000 (22:38 +0000)]
Removed dead code.
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.
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.
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.
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.
Marc Cromme [Wed, 4 Apr 2007 22:43:10 +0000 (22:43 +0000)]
added target url's on some more warning log messages
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
Jakub Skoczen [Tue, 3 Apr 2007 14:27:21 +0000 (14:27 +0000)]
Annoying flickering of facets (after clicking) removed.
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).
Sebastian Hammer [Tue, 3 Apr 2007 04:05:01 +0000 (04:05 +0000)]
removed some old #ifdeffed-out code
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)
Sebastian Hammer [Tue, 3 Apr 2007 03:55:11 +0000 (03:55 +0000)]
Record syntax, piggyback, and element set name controlled by settings system
Sebastian Hammer [Tue, 3 Apr 2007 03:42:53 +0000 (03:42 +0000)]
Renamed, to include more than just query-related defaults
Jakub Skoczen [Mon, 2 Apr 2007 15:50:27 +0000 (15:50 +0000)]
Internal query handling completely rewritten.
Jakub Skoczen [Mon, 2 Apr 2007 09:44:34 +0000 (09:44 +0000)]
Pager will now show only a fixed window of pages.
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.
Jakub Skoczen [Mon, 2 Apr 2007 08:41:51 +0000 (08:41 +0000)]
navigation path: removed / and added +
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:'
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.
Marc Cromme [Sat, 31 Mar 2007 20:24:59 +0000 (20:24 +0000)]
pretty-printing Z39.50 proxy log line
Marc Cromme [Sat, 31 Mar 2007 20:06:18 +0000 (20:06 +0000)]
aligning log messages for nice look-and-feel
Marc Cromme [Sat, 31 Mar 2007 19:55:25 +0000 (19:55 +0000)]
removed warnings coming from missing casts (const char *) and (xmlChar *)
Jakub Skoczen [Fri, 30 Mar 2007 16:22:41 +0000 (16:22 +0000)]
Breadcrumb like navigation added.
Sebastian Hammer [Fri, 30 Mar 2007 02:48:23 +0000 (02:48 +0000)]
Updated template to link to example settings
Sebastian Hammer [Fri, 30 Mar 2007 02:45:07 +0000 (02:45 +0000)]
Functional settings system. At this point, they control the CCL map only
Sebastian Hammer [Fri, 30 Mar 2007 01:07:37 +0000 (01:07 +0000)]
Added documentation for the settings system. Still needs examples
Sebastian Hammer [Fri, 30 Mar 2007 00:13:45 +0000 (00:13 +0000)]
Towards documenting the settings system
Sebastian Hammer [Thu, 29 Mar 2007 15:23:17 +0000 (15:23 +0000)]
ifdeffed-out the Location-header rewrite in proxy_io(). It appears that
recent changes to the request headers has obviated the need for this --
needs more testing.
Sebastian Hammer [Thu, 29 Mar 2007 13:44:57 +0000 (13:44 +0000)]
Settings support..
Sebastian Hammer [Thu, 29 Mar 2007 13:44:38 +0000 (13:44 +0000)]
Added settings
Sebastian Hammer [Thu, 29 Mar 2007 13:44:19 +0000 (13:44 +0000)]
Settings system is code complete... now to actually USE the darn things for
something!!
Marc Cromme [Thu, 29 Mar 2007 11:02:04 +0000 (11:02 +0000)]
removed zillion of compiler warnings due to mising casts between
(const char *) and (xmlChar *) and the like.
Marc Cromme [Thu, 29 Mar 2007 09:16:34 +0000 (09:16 +0000)]
Changed the way the forwarded HTTP headers are computed. Now pazpar2 sends
the following ones:
- the original 'Host:' header from the web browser request
Host: flurry:9090
(notice: not tampering with this one any more, as it did break virtual
domain configuration in Apache!!)
- some pazpar2 specific version number, listening host
(from config file proxy/@myurl) and listening port (from config file
listen/@port)
pazpar2-version: 0.1
pazpar2-server-host: flurry.index
pazpar2-server-port: 9090
- the standard 'Via:' header
Via: 1.1 flurry.index:9090 (pazpar2/0.1)
- the standard 'X-forward-For' header, containing the true web browser
client address
X-Forwarded-For: 10.0.1.66
These changes should make pazpar2 HTTP complient, and allow the backend Apache
server to get the information it needs to be able to do IP based
authentification and such like stuff. Notice that the 'Host:' header is now
passed unchanged, otherwise virtual host setups do not work.
Jakub Skoczen [Thu, 29 Mar 2007 09:11:01 +0000 (09:11 +0000)]
Masterkey: showing total hits and the count of each record (in brackets)
Jakub Skoczen [Wed, 28 Mar 2007 15:20:53 +0000 (15:20 +0000)]
Advnced search view added.
Marc Cromme [Wed, 28 Mar 2007 12:05:18 +0000 (12:05 +0000)]
getting the paraz2 server host and port info from the HTTP request, and mirroring back to the web client in the headers
pazpar2-server-host
pazpar2-server-port
Notice these change according to the connection the client did made, so if a paraz2 is hidden behind firewalling and port-forwarding, the server host and port of the shielding firewall is reported back, and not the shielded host and port numbers.
Sebastian Hammer [Wed, 28 Mar 2007 04:33:41 +0000 (04:33 +0000)]
More work on settings system.. still not functional.
Sebastian Hammer [Tue, 27 Mar 2007 15:31:34 +0000 (15:31 +0000)]
This is still totally non-functional.
Beginning of generic system to associate settings (name=value pairs) with
targets using a general-purpose XML config format.
Marc Cromme [Tue, 27 Mar 2007 13:41:23 +0000 (13:41 +0000)]
added HTTP headers "pazpar2-version", "pazpar2-server-host", "pazpar2-server-port", "pazpar2-remote-host", and "pazpar2-remote-port" such that the HTTP proxy PHP script can fetch these values and use them for authentification and other pazpar2 specific stuff (this is needed, because the "Remote-Addr" PHP variable is always set to the paraz2 server IP adress, due to tunneling through pazpar2.
The only thing which needs completion is actually finding the correct values for these host and port parameters from the server configuration and the TCP/IP connection object. More digging in the source is needed to find these values the right places..
Marc Cromme [Tue, 27 Mar 2007 11:25:57 +0000 (11:25 +0000)]
added optional <zproxy> element to config file, containing any of these attribute combinations (all three examples are semantically equivalent)
<zproxy host="localhost" port="9000"/>
<zproxy host="localhost:9000"/>
<zproxy port="9000"/>
This <zproxy> info is overruled by the '-z' command line switch
Removed a zillion compiler warnings coming from missing or dirty casts, mostly involving (xmlChar *) or (const char *)
Jakub Skoczen [Tue, 27 Mar 2007 10:01:24 +0000 (10:01 +0000)]
simple client's pz2.js updated to the version in masterkey
Jakub Skoczen [Tue, 27 Mar 2007 09:59:07 +0000 (09:59 +0000)]
Masterkey: IE 6 and 7 works. Safari 2.04, Opera 9.10 and Konqueror works with minor CSS positioning issues.
Jakub Skoczen [Mon, 26 Mar 2007 17:28:27 +0000 (17:28 +0000)]
Masterkey: pager and sorting should work now.
HTML and CSS needs to be cleaned-up, hacks all over the page.
Marc Cromme [Mon, 26 Mar 2007 14:00:21 +0000 (14:00 +0000)]
added command line switch '-z' which lets one specify a Z39.50 proxy through which the Z39.50 requests are tunneled.
This is planned to be used to stack a MetaProxy after a Paraz2 to make authentification stuff and database filtering stuff (special record conversions needed, or PQF-to-PQF manipulation) at the MetaProxy level. The '-z' option sends Z39.50 packages to the host:port specified there, with the origial target host:port addd in a vHost soecialinfo structure
Marc Cromme [Mon, 26 Mar 2007 11:13:51 +0000 (11:13 +0000)]
added Doxygen file, now supporting target 'make dox'
Sebastian Hammer [Sun, 25 Mar 2007 16:06:35 +0000 (16:06 +0000)]
This file -- not valid XML -- contains illustrative examples of the configuration
file format I have in mind. It is basically a mechanism to allow you to set
multiple name-value pairs for targets -- possibly user specific. The various forms
are intended to support various activities -- like setting system-wide defaults,
overriding settings for one user or target, setting up values for a specific target,
etc. There's even a verbose form that would lend itself well to dumping values
out of a relational database... indeed, it's possible to imagine an extension that
would allow pazpar2 to access settings from an RDBMS, although this is not planned
at present.
Jakub Skoczen [Fri, 23 Mar 2007 16:55:28 +0000 (16:55 +0000)]
Masterkey: detailed view working.
TODO: pager still missing.
Sebastian Hammer [Fri, 23 Mar 2007 03:26:22 +0000 (03:26 +0000)]
Added support for multiple values in filter statement -- separated by |, eg
filter=id=target1|target2|target3
Jakub Skoczen [Thu, 22 Mar 2007 16:08:19 +0000 (16:08 +0000)]
Rewrite of Masterkey using new mark-up
TODO: detailed record view, pager
Jakub Skoczen [Thu, 22 Mar 2007 16:04:59 +0000 (16:04 +0000)]
filter parameter added for the search command
Sebastian Hammer [Tue, 20 Mar 2007 21:36:39 +0000 (21:36 +0000)]
Various minor updates to increase usability.
Sebastian Hammer [Tue, 20 Mar 2007 15:36:49 +0000 (15:36 +0000)]
This is the CCL map we're using for the mkey.index demo against Zebra
Adam Dickmeiss [Tue, 20 Mar 2007 07:27:51 +0000 (07:27 +0000)]
WRBUF updates.
Sebastian Hammer [Tue, 20 Mar 2007 05:34:00 +0000 (05:34 +0000)]
Implemented target facet -- is there any way to get the 'filter' variable into the
URL to enable the back button in Firefox?
Sebastian Hammer [Tue, 20 Mar 2007 05:32:58 +0000 (05:32 +0000)]
Added optional 'filter' parameter to search. Right now, only value supported is
(URL-escaped) id=targetId, where targetId is the ZUrl of a known target.
Sebastian Hammer [Tue, 20 Mar 2007 05:23:06 +0000 (05:23 +0000)]
Various changes which have piled up on the demo
Sebastian Hammer [Tue, 20 Mar 2007 03:42:53 +0000 (03:42 +0000)]
Fixed statement before declaration
Adam Dickmeiss [Fri, 16 Mar 2007 09:34:55 +0000 (09:34 +0000)]
Fixed compilation error on FreeBSD
http://test/idtest/2007-03-16T00:00:01Z/pazpar2-0.1--freebsd.txt
Sebastian Hammer [Thu, 15 Mar 2007 16:50:56 +0000 (16:50 +0000)]
This update completes the factoring out of database management into database.c,
and the introduction of low-level code to read Zeerex records from the file
system. It does not really introduce any new functionality, but the need
to refactor the database code has held up a lot of other projects.
Jakub Skoczen [Fri, 9 Mar 2007 16:06:42 +0000 (16:06 +0000)]
Cosmetic: timeouts can be specified as parameters, parameters moved to a single array.
Jakub Skoczen [Fri, 9 Mar 2007 14:01:49 +0000 (14:01 +0000)]
Further pz2.js updates.
Jakub Skoczen [Fri, 9 Mar 2007 11:08:03 +0000 (11:08 +0000)]
pz2.js lib update
Jakub Skoczen [Thu, 8 Mar 2007 15:36:43 +0000 (15:36 +0000)]
pz2.js update
Jakub Skoczen [Wed, 7 Mar 2007 16:09:42 +0000 (16:09 +0000)]
very early stage od pz2.js lib
Sebastian Hammer [Mon, 12 Feb 2007 05:30:05 +0000 (05:30 +0000)]
Gutenberg
Adam Dickmeiss [Thu, 8 Feb 2007 19:26:33 +0000 (19:26 +0000)]
Avoid declarations after statements.
Sebastian Hammer [Thu, 8 Feb 2007 02:11:38 +0000 (02:11 +0000)]
Fixed syntax err