metaproxy-moved-to-github.git
13 years agozoom: accept and relay db args x-name to CF targets
Adam Dickmeiss [Mon, 24 Oct 2011 12:50:28 +0000 (14:50 +0200)]
zoom: accept and relay db args x-name to CF targets

13 years agoNew log method for package class
Adam Dickmeiss [Mon, 24 Oct 2011 12:28:11 +0000 (14:28 +0200)]
New log method for package class

This is to facilitate some kind of consistency for log messages. The
zoom filter uses it. For example x-session-id stuff is included.

13 years agoCustom session ID may be specified for SRU filter
Adam Dickmeiss [Mon, 24 Oct 2011 11:18:54 +0000 (13:18 +0200)]
Custom session ID may be specified for SRU filter

The ID is specified by using x-session-id argument for the SRU URL.
It is attached to the origin instance and passed down the chain.

13 years agozoom: add various links within documentation
Adam Dickmeiss [Mon, 17 Oct 2011 11:50:01 +0000 (13:50 +0200)]
zoom: add various links within documentation

13 years agozoom: document all settings
Adam Dickmeiss [Mon, 17 Oct 2011 11:36:42 +0000 (13:36 +0200)]
zoom: document all settings

13 years agoDocumentation: nxml mode
Adam Dickmeiss [Mon, 17 Oct 2011 09:26:42 +0000 (11:26 +0200)]
Documentation: nxml mode

13 years agoReformat
Adam Dickmeiss [Mon, 17 Oct 2011 09:06:01 +0000 (11:06 +0200)]
Reformat

13 years agoDocumentation: nxml mode
Adam Dickmeiss [Mon, 17 Oct 2011 08:48:21 +0000 (10:48 +0200)]
Documentation: nxml mode

13 years agozoom: handle torus url not given (is optional)
Adam Dickmeiss [Mon, 10 Oct 2011 14:10:31 +0000 (16:10 +0200)]
zoom: handle torus url not given (is optional)

13 years agozoom: fix 0 ptr ref; occurred for bad URLs
Adam Dickmeiss [Mon, 10 Oct 2011 14:09:38 +0000 (16:09 +0200)]
zoom: fix 0 ptr ref; occurred for bad URLs

13 years agoDocumentation updates, mostly about software versions
Adam Dickmeiss [Wed, 28 Sep 2011 13:15:31 +0000 (15:15 +0200)]
Documentation updates, mostly about software versions

13 years agoMention libbost-regex-dev
Adam Dickmeiss [Wed, 28 Sep 2011 11:10:26 +0000 (13:10 +0200)]
Mention libbost-regex-dev

13 years agoVersion 1.3.11 v1.3.11
Adam Dickmeiss [Fri, 9 Sep 2011 09:07:48 +0000 (11:07 +0200)]
Version 1.3.11

13 years agoFix bug #4612: session_shared returns diagnostic 2
Adam Dickmeiss [Fri, 9 Sep 2011 09:00:20 +0000 (11:00 +0200)]
Fix bug #4612: session_shared returns diagnostic 2

The problem was that a session was marked "in use" in cases where there
were no network activity on target (caching , research).. MP would update
its timestamp of last use when it was not really used.. MP now only marks
last use timestamp on network activity. The expire loop now waits
session_ttl / 3 seconds - was 30 before - to ensure that configurations
with low session ttl's will expire properly.

13 years agoVersion 1.3.10 v1.3.10
Adam Dickmeiss [Fri, 9 Sep 2011 07:58:30 +0000 (09:58 +0200)]
Version 1.3.10

13 years agozoom: new target profile setting: sortmap_field
Adam Dickmeiss [Wed, 7 Sep 2011 12:38:24 +0000 (14:38 +0200)]
zoom: new target profile setting: sortmap_field

If sortmap_field is given the field is mapped to the value for the
sortmap. Values not matching sortmap_field are passed verbatim.

13 years agozoom: new target profile setting: sortStrategy
Adam Dickmeiss [Wed, 7 Sep 2011 11:56:46 +0000 (13:56 +0200)]
zoom: new target profile setting: sortStrategy

This value passed to ZOOM_query_sortby2.

13 years agoconfigure: add check for YAZ version
Adam Dickmeiss [Wed, 7 Sep 2011 11:52:23 +0000 (13:52 +0200)]
configure: add check for YAZ version

13 years agozoom: prepare for using ZOOM_query_sortby2
Adam Dickmeiss [Tue, 6 Sep 2011 20:00:17 +0000 (22:00 +0200)]
zoom: prepare for using ZOOM_query_sortby2

13 years agoVersion 1.3.9 v1.3.9
Adam Dickmeiss [Thu, 25 Aug 2011 18:57:22 +0000 (20:57 +0200)]
Version 1.3.9

13 years agozoom: urlRecipe creates <pz:metadata type="generated-url">
Adam Dickmeiss [Thu, 25 Aug 2011 18:52:59 +0000 (20:52 +0200)]
zoom: urlRecipe creates <pz:metadata type="generated-url">

13 years agozoom: cp param uses auth:
Adam Dickmeiss [Thu, 25 Aug 2011 14:59:38 +0000 (16:59 +0200)]
zoom: cp param uses auth:

13 years agozoom: log RPN
Adam Dickmeiss [Thu, 25 Aug 2011 14:58:49 +0000 (16:58 +0200)]
zoom: log RPN

13 years agoMove away jstor-pz2.xsl
Adam Dickmeiss [Tue, 23 Aug 2011 11:39:21 +0000 (13:39 +0200)]
Move away jstor-pz2.xsl

13 years agoVersion 1.3.8 v1.3.8
Adam Dickmeiss [Mon, 22 Aug 2011 13:14:41 +0000 (15:14 +0200)]
Version 1.3.8

13 years agoAdd jstor-pz2.xsl for testing v1.3.7
Adam Dickmeiss [Mon, 22 Aug 2011 12:54:04 +0000 (14:54 +0200)]
Add jstor-pz2.xsl for testing

13 years agozoom: Set option schema in SRU mode
Adam Dickmeiss [Mon, 22 Aug 2011 12:19:24 +0000 (14:19 +0200)]
zoom: Set option schema in SRU mode

13 years agoVersion 1.3.6 v1.3.6
Adam Dickmeiss [Mon, 22 Aug 2011 10:44:11 +0000 (12:44 +0200)]
Version 1.3.6

13 years agoSummarize changes
Adam Dickmeiss [Mon, 22 Aug 2011 10:43:59 +0000 (12:43 +0200)]
Summarize changes

13 years agozoom: new target profile element literalTransform
Adam Dickmeiss [Mon, 22 Aug 2011 10:37:14 +0000 (12:37 +0200)]
zoom: new target profile element literalTransform

This element holds XSLT, encoded as string, for target. Only if present
and non-zero length it is considered present. This takes precedence over
transform.

13 years agoUpdate m4 for boost unit test check mods
Adam Dickmeiss [Wed, 17 Aug 2011 10:23:09 +0000 (12:23 +0200)]
Update m4 for boost unit test check mods

13 years agoUpdate m4
Adam Dickmeiss [Tue, 16 Aug 2011 13:33:51 +0000 (15:33 +0200)]
Update m4

13 years agoDon't rely on trang anymore for Git checkout builds
Adam Dickmeiss [Tue, 16 Aug 2011 11:53:56 +0000 (13:53 +0200)]
Don't rely on trang anymore for Git checkout builds

Configuration in etc will only be properly validated if trang is
available. From now on only relax NC files are bundled with the
source dist.

13 years agozoom: set ZOOM options WRT retrieval before search
Adam Dickmeiss [Mon, 15 Aug 2011 13:55:04 +0000 (15:55 +0200)]
zoom: set ZOOM options WRT retrieval before search

This is to ensure that records that we get back by piggyback have the
greatest chance of being "identical" and cached properly for following
present.

13 years agosession_shared: relay preferredRecordSyntax for search
Adam Dickmeiss [Mon, 15 Aug 2011 13:49:22 +0000 (15:49 +0200)]
session_shared: relay preferredRecordSyntax for search

13 years agosru_z3950: set preferredRecordSyntax to XML for search
Adam Dickmeiss [Mon, 15 Aug 2011 13:48:16 +0000 (15:48 +0200)]
sru_z3950: set preferredRecordSyntax to XML for search

13 years agoVersion 1.3.5 v1.3.5
Adam Dickmeiss [Fri, 12 Aug 2011 09:07:59 +0000 (11:07 +0200)]
Version 1.3.5

Depend on yazpp 1.2.7 and YAZ 4.2.8.

13 years agozoom doc: describe log, proxy
Adam Dickmeiss [Fri, 12 Aug 2011 08:57:13 +0000 (10:57 +0200)]
zoom doc: describe log, proxy

13 years agoFor Torus record fetch, proxy may be given
Adam Dickmeiss [Wed, 10 Aug 2011 13:41:22 +0000 (15:41 +0200)]
For Torus record fetch, proxy may be given

This change requires yaz_url_create functions from YAZ.

13 years agoz3950_client: mark non-surrogate diagnostics from backend
Adam Dickmeiss [Thu, 4 Aug 2011 13:22:57 +0000 (15:22 +0200)]
z3950_client: mark non-surrogate diagnostics from backend

The additional information in this case is appended with
"(backend=%s)" where %s is the backend target.

13 years agozoom: throw diagnostic for records for some udb
Adam Dickmeiss [Thu, 4 Aug 2011 08:57:41 +0000 (10:57 +0200)]
zoom: throw diagnostic for records for some udb

13 years agoz3950_client: create close response if cs_connect fails
Adam Dickmeiss [Wed, 3 Aug 2011 11:30:05 +0000 (13:30 +0200)]
z3950_client: create close response if cs_connect fails

Solves bug 2922.

13 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/metaproxy
Adam Dickmeiss [Tue, 2 Aug 2011 08:11:10 +0000 (10:11 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/metaproxy

13 years agozoom: no need to pass cfauth for cproxy
Adam Dickmeiss [Tue, 2 Aug 2011 08:10:41 +0000 (10:10 +0200)]
zoom: no need to pass cfauth for cproxy

13 years agozoom: using fopen rather than open
Adam Dickmeiss [Tue, 2 Aug 2011 08:10:18 +0000 (10:10 +0200)]
zoom: using fopen rather than open

13 years agoInt casts (Odr_int stuff)
Adam Dickmeiss [Tue, 2 Aug 2011 08:07:37 +0000 (10:07 +0200)]
Int casts (Odr_int stuff)

13 years agozoom: always set piggyback option
Adam Dickmeiss [Tue, 2 Aug 2011 07:43:55 +0000 (09:43 +0200)]
zoom: always set piggyback option

13 years agoAvoid useless variable suffixlen
Adam Dickmeiss [Tue, 2 Aug 2011 07:40:26 +0000 (09:40 +0200)]
Avoid useless variable suffixlen

13 years agoVersion 1.3.4 v1.3.4
Adam Dickmeiss [Mon, 1 Aug 2011 20:24:43 +0000 (22:24 +0200)]
Version 1.3.4

13 years agozoom: honor piggyback setting
Adam Dickmeiss [Mon, 1 Aug 2011 20:22:57 +0000 (22:22 +0200)]
zoom: honor piggyback setting

Makes some SRU targets behave that insist on maximumRecords > 0,
but also increases performance.

13 years agoVersion 1.3.3 v1.3.3
Adam Dickmeiss [Mon, 1 Aug 2011 13:31:33 +0000 (15:31 +0200)]
Version 1.3.3

13 years agoUpdate dlpath for libdir/metaproxy4 in config metaproxy.xml
Adam Dickmeiss [Mon, 1 Aug 2011 13:28:38 +0000 (15:28 +0200)]
Update dlpath for libdir/metaproxy4 in config metaproxy.xml

Was incorrect in version 1.3.2.

13 years agoUpdate debian git ignore
Adam Dickmeiss [Mon, 1 Aug 2011 12:39:42 +0000 (14:39 +0200)]
Update debian git ignore

13 years agoVersion 1.3.2 v1.3.2
Adam Dickmeiss [Mon, 1 Aug 2011 12:30:02 +0000 (14:30 +0200)]
Version 1.3.2

13 years agoconfig-zoom: content proxy connector added
Adam Dickmeiss [Mon, 1 Aug 2011 11:39:09 +0000 (11:39 +0000)]
config-zoom: content proxy connector added

13 years agoUse rand rather than mkstemp for session
Adam Dickmeiss [Mon, 1 Aug 2011 11:05:13 +0000 (13:05 +0200)]
Use rand rather than mkstemp for session

Problem is that the generated URL is not case sensitive so we need
a temporary file name without case mix.

13 years agozoom-config.xml: enable apdu log and adjust contentProxy
Adam Dickmeiss [Mon, 1 Aug 2011 10:33:19 +0000 (12:33 +0200)]
zoom-config.xml: enable apdu log and adjust contentProxy

13 years agozoom: contentProxy attr @tmp_file fully specified
Adam Dickmeiss [Mon, 1 Aug 2011 10:31:53 +0000 (12:31 +0200)]
zoom: contentProxy attr @tmp_file fully specified

A suffix for tmp_file for contentProxy may be given.

13 years agoPkg metaproxy depends on libmetaproxy4, same version
Adam Dickmeiss [Mon, 1 Aug 2011 10:02:06 +0000 (12:02 +0200)]
Pkg metaproxy depends on libmetaproxy4, same version

While technically not required, it's convenient that metaproxy
program uses same version of libmetaproxy4.

13 years agolibmetaproxy4: modules in libdir/metaproxy4
Adam Dickmeiss [Mon, 1 Aug 2011 09:25:07 +0000 (11:25 +0200)]
libmetaproxy4: modules in libdir/metaproxy4

Not libdir/metaproxy, because it clashes with libmetaproxy3.

13 years agozoom: add facililty to dump APDUs.
Adam Dickmeiss [Fri, 29 Jul 2011 14:19:07 +0000 (16:19 +0200)]
zoom: add facililty to dump APDUs.

Triggered by <log apdu="true"/> in the zoom filter configuation.

13 years agozoom fix: convert backend SRU diagnostics.
Adam Dickmeiss [Fri, 29 Jul 2011 14:02:25 +0000 (16:02 +0200)]
zoom fix: convert backend SRU diagnostics.

The zoom filter speaks Z39.50 and thus SRU diagnostics must be converted
to Z39.50 diagnostics.

13 years agoVersion 1.3.1 v1.3.1
Adam Dickmeiss [Thu, 28 Jul 2011 12:54:59 +0000 (14:54 +0200)]
Version 1.3.1

13 years agoDefine wrbuf_vp_puts for YAZ < 4.2.6
Adam Dickmeiss [Thu, 28 Jul 2011 12:50:37 +0000 (14:50 +0200)]
Define wrbuf_vp_puts for YAZ < 4.2.6

This function is declared for YAZ 4.2.6 and later.

13 years agozoom: improve diagnostics WRT record conversions
Adam Dickmeiss [Thu, 28 Jul 2011 11:56:54 +0000 (13:56 +0200)]
zoom: improve diagnostics WRT record conversions

13 years agozoom: relay database param 'user' if 'password' is unset
Adam Dickmeiss [Thu, 28 Jul 2011 09:20:30 +0000 (11:20 +0200)]
zoom: relay database param 'user' if 'password' is unset

For non-Z39.50 resources also split authentication (user/password) into
user + password options for ZOOM.

13 years agozoom: allow cproxysession as database arg.
Adam Dickmeiss [Wed, 27 Jul 2011 14:56:17 +0000 (16:56 +0200)]
zoom: allow cproxysession as database arg.

13 years agoFirst go at sort.
Adam Dickmeiss [Wed, 27 Jul 2011 14:20:45 +0000 (16:20 +0200)]
First go at sort.

For SRU targets the CQL sortby is used against target. For Z39.50
it is converted to Zebra's type-7 embedded sorting. Leaves two
areas: built in sorting - by the zoom module; and Z39.50 standard
sorting. Note that CF should eventually honor type-7 embedded
sorting.

13 years agoVersion 1.3.0 v1.3.0
Adam Dickmeiss [Wed, 27 Jul 2011 09:35:58 +0000 (11:35 +0200)]
Version 1.3.0

13 years agozoom: put contentConnector in temp file
Adam Dickmeiss [Tue, 26 Jul 2011 14:39:47 +0000 (16:39 +0200)]
zoom: put contentConnector in temp file

13 years agoRefactor database URL logic
Adam Dickmeiss [Tue, 26 Jul 2011 14:22:42 +0000 (16:22 +0200)]
Refactor database URL logic

And reduce by 20 lines or so.

13 years agozoom: generating content proxy parameters in file
Adam Dickmeiss [Tue, 26 Jul 2011 13:51:03 +0000 (15:51 +0200)]
zoom: generating content proxy parameters in file

13 years agozoom: create temp for contentProxy
Adam Dickmeiss [Tue, 26 Jul 2011 13:05:21 +0000 (15:05 +0200)]
zoom: create temp for contentProxy

The temporary file name is configable by tmp_file attribute of element
contentProxy of the zoom filter.

13 years agomp_xml::check_empty displays filter type on error
Adam Dickmeiss [Tue, 26 Jul 2011 11:41:38 +0000 (13:41 +0200)]
mp_xml::check_empty displays filter type on error

13 years agoMerge branch 'master' into content_proxy
Adam Dickmeiss [Mon, 25 Jul 2011 14:44:02 +0000 (16:44 +0200)]
Merge branch 'master' into content_proxy

13 years agoStart work on contentProxy support
Adam Dickmeiss [Mon, 25 Jul 2011 14:40:35 +0000 (16:40 +0200)]
Start work on contentProxy support

New setting in Torus/record contentConnector specifies a connector
to be used for contentProxy. If this is defined (non-zero length)
then content proxy rewrite is performed on generated-url from urlRecipe.
The rewritten server is specified by attribute 'server' in element
contentProxy in zoom filter configureation.

13 years agoVersion 1.2.10 v1.2.10
Adam Dickmeiss [Mon, 25 Jul 2011 14:10:42 +0000 (14:10 +0000)]
Version 1.2.10

13 years agoFixes for Win makefile. Update to Boost 1.43
Adam Dickmeiss [Mon, 25 Jul 2011 12:46:11 +0000 (14:46 +0200)]
Fixes for Win makefile. Update to Boost 1.43

Unfortunately, Boost 1.46 and Boost 1.47 have linking problems.
Some .lib refers to libboost_thread*.lib while only boost_thread*lib
is available. Version 1.43 do not have this problem (.lib files still
have prefix "lib").

13 years agozoom: use yaz_filepath_resolve for XSLT files.
Adam Dickmeiss [Mon, 25 Jul 2011 11:05:42 +0000 (13:05 +0200)]
zoom: use yaz_filepath_resolve for XSLT files.

Might as well use this function when it is also used for filter
record_transform. Change the error handling a bit, for example
do not even attempt to XML parse a non-existing file.

13 years agometaproxy program: set file path to "." if empty
Adam Dickmeiss [Mon, 25 Jul 2011 11:04:27 +0000 (13:04 +0200)]
metaproxy program: set file path to "." if empty

This to ensure that yaz_filepath_resolve will find file name
if configuration is in current directory (in which case path ends
up empty).

13 years agoAdding '(backend)' to addinfo for backend diagnostics
Adam Dickmeiss [Mon, 25 Jul 2011 09:05:59 +0000 (11:05 +0200)]
Adding '(backend)' to addinfo for backend diagnostics

Solves #4405.

13 years agozoom: using configure path for XSL load
Adam Dickmeiss [Thu, 21 Jul 2011 13:58:11 +0000 (15:58 +0200)]
zoom: using configure path for XSL load

13 years agorecord_transform: using configure path for XSL load
Adam Dickmeiss [Thu, 21 Jul 2011 13:57:19 +0000 (15:57 +0200)]
record_transform: using configure path for XSL load

13 years agoAdd path to configure method of filter.
Adam Dickmeiss [Thu, 21 Jul 2011 12:54:43 +0000 (14:54 +0200)]
Add path to configure method of filter.

This changes the API.

13 years agoBump metaproxy library from 3 to 4
Adam Dickmeiss [Thu, 21 Jul 2011 11:49:13 +0000 (13:49 +0200)]
Bump metaproxy library from 3 to 4

13 years agometaproxy daemon: option -t tests configuration
Adam Dickmeiss [Thu, 21 Jul 2011 11:06:22 +0000 (13:06 +0200)]
metaproxy daemon: option -t tests configuration

13 years agojstor test - locally defined
Adam Dickmeiss [Wed, 20 Jul 2011 12:23:17 +0000 (14:23 +0200)]
jstor test - locally defined

13 years agozoom: for non-CF pass proxy from URI parameters
Adam Dickmeiss [Tue, 19 Jul 2011 14:10:39 +0000 (16:10 +0200)]
zoom: for non-CF pass proxy from URI parameters

Always pass subdatabase from Torus (if given).
Pass cfProxy from Torus only if database parameters are given.

13 years agoParse file_include_path to filter parsing
Adam Dickmeiss [Tue, 19 Jul 2011 10:35:45 +0000 (12:35 +0200)]
Parse file_include_path to filter parsing

13 years agoMake config-zoom a smaller example
Adam Dickmeiss [Tue, 19 Jul 2011 09:28:15 +0000 (11:28 +0200)]
Make config-zoom a smaller example

13 years agoxmlutil test: display standard exception if thrown
Adam Dickmeiss [Mon, 18 Jul 2011 12:22:43 +0000 (14:22 +0200)]
xmlutil test: display standard exception if thrown

13 years agourl_recipe: avoid empty regex
Adam Dickmeiss [Mon, 18 Jul 2011 12:21:48 +0000 (14:21 +0200)]
url_recipe: avoid empty regex

On some Boost regex libraries an empty regex throws an exception

13 years agoURL recipe in place
Adam Dickmeiss [Thu, 30 Jun 2011 17:34:43 +0000 (19:34 +0200)]
URL recipe in place

13 years agoBeginnings of url recipe handling
Adam Dickmeiss [Thu, 30 Jun 2011 15:40:29 +0000 (17:40 +0200)]
Beginnings of url recipe handling

13 years agoMake config-zoom well-formed again
Adam Dickmeiss [Thu, 30 Jun 2011 14:47:05 +0000 (16:47 +0200)]
Make config-zoom well-formed again

13 years agoReinstate misspelled index names, but mark as deprecated.
Mike Taylor [Thu, 30 Jun 2011 03:39:48 +0000 (22:39 -0500)]
Reinstate misspelled index names, but mark as deprecated.

13 years agoFix typos in two CQL index names.
Mike Taylor [Thu, 30 Jun 2011 03:38:44 +0000 (22:38 -0500)]
Fix typos in two CQL index names.

13 years agometaproxy man: add productnumber
Adam Dickmeiss [Wed, 29 Jun 2011 16:14:09 +0000 (18:14 +0200)]
metaproxy man: add productnumber

13 years agoDebian control: split long lines
Adam Dickmeiss [Wed, 29 Jun 2011 14:42:08 +0000 (16:42 +0200)]
Debian control: split long lines

13 years agoDebian: build depends on libboost-regex-dev
Adam Dickmeiss [Wed, 29 Jun 2011 14:23:19 +0000 (16:23 +0200)]
Debian: build depends on libboost-regex-dev