metaproxy-moved-to-github.git
13 years agoconfig-zoom: set element_transform to pz2
Adam Dickmeiss [Fri, 24 Jun 2011 09:57:10 +0000 (11:57 +0200)]
config-zoom: set element_transform to pz2

13 years agosession_shared: fix ref to freed memory
Adam Dickmeiss [Fri, 24 Jun 2011 09:55:03 +0000 (11:55 +0200)]
session_shared: fix ref to freed memory

Would occur if a search response had non-surrogate diagnostics.

13 years agozoom: configurable element sets for record transforms.
Adam Dickmeiss [Thu, 23 Jun 2011 10:56:22 +0000 (12:56 +0200)]
zoom: configurable element sets for record transforms.

The target profile based transform is specified by element_transform
in element torus of of the ZOOM filter configuration ; default value
is "pz2". Target profile based retrieval is specified by element_raw
in configuration. It will perform same steps, but omit the XSL transform.
Default value is "raw".

13 years agozoom: element set is omitted if not set in profile
Adam Dickmeiss [Wed, 22 Jun 2011 19:07:07 +0000 (19:07 +0000)]
zoom: element set is omitted if not set in profile

But only if pz2 transform is in effect. Previously the default
element set was to "F".

13 years agozoom doc: spell fix
Adam Dickmeiss [Wed, 22 Jun 2011 13:55:23 +0000 (15:55 +0200)]
zoom doc: spell fix

13 years agoNo tab
Adam Dickmeiss [Wed, 22 Jun 2011 13:55:13 +0000 (15:55 +0200)]
No tab

13 years agopz22usi.xsl not maintained in MP
Adam Dickmeiss [Wed, 22 Jun 2011 13:31:03 +0000 (15:31 +0200)]
pz22usi.xsl not maintained in MP

13 years agoVersion 1.2.8 v1.2.8
Adam Dickmeiss [Wed, 22 Jun 2011 12:57:29 +0000 (14:57 +0200)]
Version 1.2.8

13 years agoRoute may be given for each port in frontend_net
Adam Dickmeiss [Wed, 22 Jun 2011 12:52:25 +0000 (14:52 +0200)]
Route may be given for each port in frontend_net

13 years agoUpdate version to metaproxy.spec v1.2.7
Adam Dickmeiss [Wed, 22 Jun 2011 11:51:33 +0000 (13:51 +0200)]
Update version to metaproxy.spec

13 years agoVersion 1.2.7
Adam Dickmeiss [Wed, 22 Jun 2011 11:22:50 +0000 (13:22 +0200)]
Version 1.2.7

13 years agozoom: more documentation
Adam Dickmeiss [Wed, 22 Jun 2011 11:17:43 +0000 (13:17 +0200)]
zoom: more documentation

13 years agoUpdate generated stylesheets rng, xsd
Adam Dickmeiss [Wed, 22 Jun 2011 11:17:10 +0000 (13:17 +0200)]
Update generated stylesheets rng, xsd

13 years agozoom: allow local torus record.
Adam Dickmeiss [Wed, 22 Jun 2011 10:01:25 +0000 (12:01 +0200)]
zoom: allow local torus record.

One or more Torus records may be specified in local zoom configuration.
The torus element may include a records element which holds zero or
record elements.

13 years agoSchema and beginnings of man page for zoom filter
Adam Dickmeiss [Tue, 21 Jun 2011 19:33:46 +0000 (21:33 +0200)]
Schema and beginnings of man page for zoom filter

13 years agoRemove include of torus.hpp
Adam Dickmeiss [Tue, 21 Jun 2011 19:33:01 +0000 (21:33 +0200)]
Remove include of torus.hpp

13 years agoUpdate m4 (for xcinclude)
Adam Dickmeiss [Tue, 21 Jun 2011 13:16:41 +0000 (15:16 +0200)]
Update m4 (for xcinclude)

13 years agoDoc: module ref entries include RelagNG schema
Adam Dickmeiss [Tue, 21 Jun 2011 12:53:57 +0000 (14:53 +0200)]
Doc: module ref entries include RelagNG schema

In other words.. schema for each module is included in man page for
each module.

13 years agoDo not require requestsyntax to be set for pp2 transforms
Adam Dickmeiss [Tue, 21 Jun 2011 11:27:08 +0000 (13:27 +0200)]
Do not require requestsyntax to be set for pp2 transforms

Some searchables do not have requestsyntax set at least those
where that does not make sense, eg SOLR.

13 years agoSplit config schemas to separate files
Adam Dickmeiss [Tue, 21 Jun 2011 09:25:01 +0000 (11:25 +0200)]
Split config schemas to separate files

This is to have one schema file per filter.

13 years agoconfigure checks for libxml2/libxslt
Adam Dickmeiss [Mon, 20 Jun 2011 09:00:34 +0000 (11:00 +0200)]
configure checks for libxml2/libxslt

13 years agoConvert queries to SOLR if enabled - fixes bug 4334.
Adam Dickmeiss [Mon, 20 Jun 2011 08:48:30 +0000 (10:48 +0200)]
Convert queries to SOLR if enabled - fixes bug 4334.

13 years agoconfigure: depend on yazp 1.2.6
Adam Dickmeiss [Mon, 20 Jun 2011 08:37:10 +0000 (10:37 +0200)]
configure: depend on yazp 1.2.6

13 years agoAllow local ccl maps to be given (as base)
Adam Dickmeiss [Fri, 17 Jun 2011 10:18:47 +0000 (12:18 +0200)]
Allow local ccl maps to be given (as base)

Element cclmap specifies a CCL mapping to a core CCL bibset and is
used as base point for all search sessions. This feature requires
new YAZ utiolity ccl_qual_dup.

13 years agoMerge branch 'zoom_filter'
Adam Dickmeiss [Fri, 17 Jun 2011 08:24:19 +0000 (10:24 +0200)]
Merge branch 'zoom_filter'

13 years agoRemove two yaz_log calls
Adam Dickmeiss [Thu, 16 Jun 2011 18:16:31 +0000 (20:16 +0200)]
Remove two yaz_log calls

13 years agoTurn ZOOM error into Bib-1 diagnostic 2
Adam Dickmeiss [Thu, 16 Jun 2011 18:14:01 +0000 (20:14 +0200)]
Turn ZOOM error into Bib-1 diagnostic 2

And set addinfo for bib-1 to ZOOM error message. Increase
ZOOM timeout to 40 seconds, which is somewhat more than 30!

13 years agoother fix for database arguments
Adam Dickmeiss [Thu, 16 Jun 2011 13:27:22 +0000 (15:27 +0200)]
other fix for database arguments

13 years agoMerge branch 'master' into zoom_filter
Adam Dickmeiss [Thu, 16 Jun 2011 12:48:39 +0000 (14:48 +0200)]
Merge branch 'master' into zoom_filter

Conflicts:
src/filter_zoom.cpp

13 years agozoom: For SRU targets convert to CQL
Adam Dickmeiss [Thu, 16 Jun 2011 12:29:16 +0000 (14:29 +0200)]
zoom: For SRU targets convert to CQL

Still missing is solr targets.

13 years agoDon't use Torus database arguments if already given
Adam Dickmeiss [Thu, 16 Jun 2011 11:42:34 +0000 (13:42 +0200)]
Don't use Torus database arguments if already given

If database arguments are given for zoom (dbbase,args) , then
the Torus is not used for generating the database args (already
given). This is as a whole, not per-argument.

13 years agoUse base db for Torus lookup - up to comma - if given
Adam Dickmeiss [Thu, 16 Jun 2011 11:04:44 +0000 (13:04 +0200)]
Use base db for Torus lookup - up to comma - if given

13 years agozoom config: No CCL field for cql.{anywhere,serverChoice}
Adam Dickmeiss [Thu, 16 Jun 2011 10:57:42 +0000 (12:57 +0200)]
zoom config: No CCL field for cql.{anywhere,serverChoice}

13 years agozoom: attribute "ccl" optional for fieldmap
Adam Dickmeiss [Thu, 16 Jun 2011 10:56:39 +0000 (12:56 +0200)]
zoom: attribute "ccl" optional for fieldmap

And the semantics is that no CCL field is used . The term qualifier
will be used - if defined.

13 years agozoom: work on predefined ccl maps
Adam Dickmeiss [Thu, 16 Jun 2011 10:44:40 +0000 (12:44 +0200)]
zoom: work on predefined ccl maps

13 years agoUpdate m4
Adam Dickmeiss [Thu, 16 Jun 2011 08:02:57 +0000 (10:02 +0200)]
Update m4

13 years agoAdd <fieldmap>s for the remaining CQL indexes mentioned in section 6.2
Mike Taylor [Wed, 15 Jun 2011 21:52:21 +0000 (22:52 +0100)]
Add <fieldmap>s for the remaining CQL indexes mentioned in section 6.2
of the EBSCO USI specification: rec.identifier, net.path, dc.language,
dc.format, id.fullText, id.peerReviewed, dc.description, dc.source,
dc.publisher and id.seriesTitle.

13 years agovirt_db reports init diagnostics when rejected
Adam Dickmeiss [Wed, 15 Jun 2011 19:38:08 +0000 (21:38 +0200)]
virt_db reports init diagnostics when rejected

This fixes bug 4280.

13 years agoImplement CQL to CCL fieldmap, bug #4336
Adam Dickmeiss [Wed, 15 Jun 2011 19:24:02 +0000 (21:24 +0200)]
Implement CQL to CCL fieldmap, bug #4336

So far I have:
<fieldmap cql="cql.anywhere" ccl="term"/>
<fieldmap cql="cql.serverChoice" ccl="term"/>
<fieldmap cql="dc.creator" ccl="au"/>
<fieldmap cql="dc.title" ccl="ti"/>
<fieldmap cql="dc.subject" ccl="su"/>
<fieldmap cql="bash.isbn" ccl="isbn"/>
<fieldmap cql="bash.issn" ccl="issn"/>
<fieldmap cql="dc.date" ccl="date"/>

13 years agoUpdate pz22usi.xsl
Adam Dickmeiss [Wed, 15 Jun 2011 12:48:08 +0000 (14:48 +0200)]
Update pz22usi.xsl

13 years agoVersion 1.2.6 v1.2.6
Adam Dickmeiss [Wed, 15 Jun 2011 12:33:08 +0000 (14:33 +0200)]
Version 1.2.6

13 years agozoom: tweak CCL to Z39.50 diagnostics.
Adam Dickmeiss [Wed, 15 Jun 2011 09:01:29 +0000 (11:01 +0200)]
zoom: tweak CCL to Z39.50 diagnostics.

13 years agoEnable session_shared for zoom config
Adam Dickmeiss [Wed, 15 Jun 2011 08:30:10 +0000 (10:30 +0200)]
Enable session_shared for zoom config

13 years agousi xsl: handle more fields
Adam Dickmeiss [Wed, 15 Jun 2011 08:20:13 +0000 (10:20 +0200)]
usi xsl: handle more fields

13 years agoEnable SRU for zoom filter config
Adam Dickmeiss [Tue, 14 Jun 2011 20:41:55 +0000 (22:41 +0200)]
Enable SRU for zoom filter config

13 years agoelem usi gets converted to pz2
Adam Dickmeiss [Tue, 14 Jun 2011 20:38:34 +0000 (22:38 +0200)]
elem usi gets converted to pz2

13 years agoAdd pazpar2 to usi xsl
Adam Dickmeiss [Tue, 14 Jun 2011 20:38:13 +0000 (22:38 +0200)]
Add pazpar2 to usi xsl

13 years agozoom: xsldir setting (attribute for torus element)
Adam Dickmeiss [Tue, 14 Jun 2011 13:26:31 +0000 (15:26 +0200)]
zoom: xsldir setting (attribute for torus element)

13 years agoNo torus class anymore
Adam Dickmeiss [Tue, 14 Jun 2011 13:02:08 +0000 (15:02 +0200)]
No torus class anymore

13 years agozoom: Use udb and query only one searchable
Adam Dickmeiss [Tue, 14 Jun 2011 12:50:28 +0000 (14:50 +0200)]
zoom: Use udb and query only one searchable

13 years agozoom: handle cf{Auth,Proxy,SubDb}
Adam Dickmeiss [Tue, 14 Jun 2011 11:27:32 +0000 (13:27 +0200)]
zoom: handle cf{Auth,Proxy,SubDb}

13 years agozoom: Handle authentication element
Adam Dickmeiss [Tue, 14 Jun 2011 10:59:42 +0000 (12:59 +0200)]
zoom: Handle authentication element

13 years agoIgnore useTurboMarc
Adam Dickmeiss [Tue, 14 Jun 2011 10:48:37 +0000 (12:48 +0200)]
Ignore useTurboMarc

13 years agoFilter zoom accepts CQL as well
Adam Dickmeiss [Fri, 10 Jun 2011 12:30:54 +0000 (14:30 +0200)]
Filter zoom accepts CQL as well

Uses YAZ utility cql_to_ccl.

13 years agoMake 3 classes: noncopyable
Adam Dickmeiss [Thu, 9 Jun 2011 11:02:55 +0000 (13:02 +0200)]
Make 3 classes: noncopyable

13 years agoRemove a few yaz_log-lines
Adam Dickmeiss [Thu, 9 Jun 2011 10:54:46 +0000 (12:54 +0200)]
Remove a few yaz_log-lines

13 years agozoom filter: honor cclmap_*-fields
Adam Dickmeiss [Thu, 9 Jun 2011 10:52:11 +0000 (12:52 +0200)]
zoom filter: honor cclmap_*-fields

CCL parsing will be performed for CCL queries in Z39.50 (Type-2).

13 years agoIgnore libmetaproxy3
Adam Dickmeiss [Wed, 8 Jun 2011 19:11:23 +0000 (21:11 +0200)]
Ignore libmetaproxy3

13 years agoRetain old mp::util::piggyback (used by CF)
Adam Dickmeiss [Wed, 8 Jun 2011 18:53:40 +0000 (20:53 +0200)]
Retain old mp::util::piggyback (used by CF)

13 years agoSample config for new zoom filter
Adam Dickmeiss [Wed, 8 Jun 2011 14:32:58 +0000 (16:32 +0200)]
Sample config for new zoom filter

13 years agoRetrieval transform operational
Adam Dickmeiss [Wed, 8 Jun 2011 14:30:47 +0000 (16:30 +0200)]
Retrieval transform operational

Settings useTurboMarc, elementSet, recordEncoding, requestSyntax,
transform are in use. They are currently ONLY in use if
record syntax is XML and element set is "pz2" and requestSyntax
is defined (in torus config). In other cases, the zoom filter
is more or less pass through with Z39.50 settings taking effect
(syntax, elementSetName).

13 years agoNo need to pass children
Adam Dickmeiss [Wed, 8 Jun 2011 14:30:12 +0000 (16:30 +0200)]
No need to pass children

13 years agoget_{bool,int} reads childen node
Adam Dickmeiss [Wed, 8 Jun 2011 14:29:36 +0000 (16:29 +0200)]
get_{bool,int} reads childen node

13 years agoFilter zoom does retrieval
Adam Dickmeiss [Wed, 8 Jun 2011 11:45:16 +0000 (13:45 +0200)]
Filter zoom does retrieval

13 years agoFilter zoom reads Torus info and searches
Adam Dickmeiss [Tue, 7 Jun 2011 12:58:16 +0000 (14:58 +0200)]
Filter zoom reads Torus info and searches

Settings from torus: id, zurl, queryEncoding and sru are honored
and Type-1 searches takes place. THere is a way to use a local
searchable in the zoom filter config.

13 years agoFurther work on zoom filter
Adam Dickmeiss [Mon, 6 Jun 2011 12:28:28 +0000 (14:28 +0200)]
Further work on zoom filter

13 years agoStart work on on ZOOM filter
Adam Dickmeiss [Mon, 6 Jun 2011 11:43:58 +0000 (13:43 +0200)]
Start work on on ZOOM filter

This filter is an alternative to z3950_client, just based on ZOOM
instead and with the ability to set ZOOM options.

13 years agovirt_db: use query_encoding for search and scan
Adam Dickmeiss [Wed, 1 Jun 2011 13:34:16 +0000 (15:34 +0200)]
virt_db: use query_encoding for search and scan

13 years agoIgnore generated file: metaproxy-config
Adam Dickmeiss [Wed, 1 Jun 2011 13:19:28 +0000 (15:19 +0200)]
Ignore generated file: metaproxy-config

13 years agoReading torus2dev instead
Adam Dickmeiss [Wed, 1 Jun 2011 12:08:32 +0000 (14:08 +0200)]
Reading torus2dev instead

13 years agovirt_db: work on query_encoding
Adam Dickmeiss [Wed, 1 Jun 2011 12:07:11 +0000 (14:07 +0200)]
virt_db: work on query_encoding

Not complete; only reading configuration.

13 years agovirt_db: make databases available as virtual targets
Adam Dickmeiss [Wed, 1 Jun 2011 10:19:48 +0000 (12:19 +0200)]
virt_db: make databases available as virtual targets

13 years agoTorus: add get_doc method
Adam Dickmeiss [Wed, 1 Jun 2011 10:19:08 +0000 (12:19 +0200)]
Torus: add get_doc method

13 years agoStart work on Torus extension for virt_db
Adam Dickmeiss [Tue, 31 May 2011 13:29:47 +0000 (15:29 +0200)]
Start work on Torus extension for virt_db

13 years agoFix http_file example
Adam Dickmeiss [Thu, 26 May 2011 10:19:00 +0000 (12:19 +0200)]
Fix http_file example

13 years agoRPM: add /etc/sysconfig/metaproxy to files sect
Adam Dickmeiss [Tue, 24 May 2011 17:52:09 +0000 (17:52 +0000)]
RPM: add /etc/sysconfig/metaproxy to files sect

13 years agoRPM: metaproxy pkg init.d defaults
Adam Dickmeiss [Tue, 24 May 2011 17:32:03 +0000 (19:32 +0200)]
RPM: metaproxy pkg init.d defaults

The metaproxy package provides /etc/sysconfig/metaproxy .

13 years agobuildconf.sh: update package list for compiling with sources
Adam Dickmeiss [Mon, 16 May 2011 11:49:08 +0000 (13:49 +0200)]
buildconf.sh: update package list for compiling with sources

13 years agoFix description of the record_filter, bug 894
Adam Dickmeiss [Mon, 16 May 2011 11:06:17 +0000 (13:06 +0200)]
Fix description of the record_filter, bug 894

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Fri, 6 May 2011 12:53:12 +0000 (14:53 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

13 years agoVersion 1.2.5. v1.2.5
Adam Dickmeiss [Fri, 6 May 2011 09:53:58 +0000 (09:53 +0000)]
Version 1.2.5.

13 years agoUpdate NEWS
Adam Dickmeiss [Fri, 6 May 2011 09:11:55 +0000 (11:11 +0200)]
Update NEWS

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Fri, 29 Apr 2011 11:27:38 +0000 (11:27 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

Conflicts:
IDMETA

13 years agoAdd Debian wheezy, Ubuntu natty
Adam Dickmeiss [Fri, 29 Apr 2011 11:23:28 +0000 (11:23 +0000)]
Add Debian wheezy, Ubuntu natty

13 years agoz3950_client filter: force_apdu facility
Adam Dickmeiss [Wed, 13 Apr 2011 13:34:15 +0000 (15:34 +0200)]
z3950_client filter: force_apdu facility

Filter z3950_client may be configured to always send a close APDU
to backend target when connection/session is closed. This will only
happen if close APDU is not already sent. Enabled by configuration
for z3950_client (force_close).

13 years agoUpdate NEWS about close APDU fixes
Adam Dickmeiss [Wed, 13 Apr 2011 13:32:39 +0000 (15:32 +0200)]
Update NEWS about close APDU fixes

13 years agoLog more in config3 example
Adam Dickmeiss [Tue, 12 Apr 2011 12:24:43 +0000 (14:24 +0200)]
Log more in config3 example

13 years agoFilter virt_db relays close APDU if received
Adam Dickmeiss [Tue, 12 Apr 2011 12:00:35 +0000 (14:00 +0200)]
Filter virt_db relays close APDU if received

Filter virt_db now relays close APDU . Previously, it would just
close the session and throw away the close APDU.

13 years agoFilter multi: deals with close APDU
Adam Dickmeiss [Tue, 12 Apr 2011 11:59:21 +0000 (13:59 +0200)]
Filter multi: deals with close APDU

Until now, filter multi would reject a close APDU.

13 years agorc_status relays exit code
Adam Dickmeiss [Fri, 25 Feb 2011 14:49:54 +0000 (15:49 +0100)]
rc_status relays exit code

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Fri, 25 Feb 2011 14:18:23 +0000 (15:18 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

13 years agoReindent
Adam Dickmeiss [Fri, 25 Feb 2011 14:16:32 +0000 (15:16 +0100)]
Reindent

13 years agodocumentation: FreeBSD boost-all package
Wolfram Schneider [Sat, 19 Feb 2011 12:45:16 +0000 (13:45 +0100)]
documentation: FreeBSD boost-all package

13 years agosync FreeBSD updates from yaz/buildconf.sh
Wolfram Schneider [Sat, 19 Feb 2011 12:41:44 +0000 (13:41 +0100)]
sync FreeBSD updates from yaz/buildconf.sh

13 years agoDebian: 1.2.4-2indexdata
Adam Dickmeiss [Mon, 14 Feb 2011 13:36:11 +0000 (14:36 +0100)]
Debian: 1.2.4-2indexdata

13 years agoUpdate NEWS
Adam Dickmeiss [Mon, 14 Feb 2011 13:35:25 +0000 (14:35 +0100)]
Update NEWS

13 years agoFilter sru_z3950: set init sz to 10 M
Adam Dickmeiss [Mon, 14 Feb 2011 13:09:56 +0000 (14:09 +0100)]
Filter sru_z3950: set init sz to 10 M

Increase values of {preferredMessage,maximumRecord}Size for Init
Requests generated by sru_z3950 from 1 to 10 megabytes. SRU don't
have these parameters and in most cases we don't care or don't want
backends to return partial results. However, since comstack by
default don't allow more than 5 MB by default and since packages
are all in memory we can't increase too much.

13 years agoFilter multi: relay init sz parameters
Adam Dickmeiss [Mon, 14 Feb 2011 13:05:21 +0000 (14:05 +0100)]
Filter multi: relay init sz parameters

Filter virt_db relays {preferredMessage,maximumRecord}Size to
backends and returns minimum of each value returned.

13 years agoFilter virt_db: relay init sz parameters
Adam Dickmeiss [Mon, 14 Feb 2011 13:03:26 +0000 (14:03 +0100)]
Filter virt_db: relay init sz parameters

Filter virt_db relays {preferredMessage,maximumRecord}Size to backend
filters and also negotiates to whatever the client suggests, because
we don't know that backends are really capable of anyway.

13 years agoFilter multi: simple refactor
Adam Dickmeiss [Mon, 14 Feb 2011 12:41:38 +0000 (13:41 +0100)]
Filter multi: simple refactor