yaz-moved-to-github.git
11 years agoRemove the extensive logging
Dennis Schafroth [Tue, 24 Aug 2010 15:51:55 +0000 (17:51 +0200)]
Remove the extensive logging

11 years agoFix: Work-around since zoom-sru handle_srw_response does not work with zero-based...
Dennis Schafroth [Tue, 24 Aug 2010 15:37:35 +0000 (17:37 +0200)]
Fix: Work-around since zoom-sru handle_srw_response does not work with zero-based records

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Thu, 19 Aug 2010 08:25:18 +0000 (10:25 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

11 years agoMerge single change from local solr_client branch
Dennis Schafroth [Thu, 19 Aug 2010 08:14:01 +0000 (10:14 +0200)]
Merge single change from local solr_client branch

11 years agoVersion 4.0.13 in progress
Adam Dickmeiss [Thu, 19 Aug 2010 08:10:45 +0000 (10:10 +0200)]
Version 4.0.13 in progress

11 years agoMerge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
Adam Dickmeiss [Tue, 17 Aug 2010 11:17:12 +0000 (13:17 +0200)]
Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client

11 years agoMerge branch 'master' into solr_client
Adam Dickmeiss [Tue, 17 Aug 2010 11:16:54 +0000 (13:16 +0200)]
Merge branch 'master' into solr_client

11 years agoVersion 4.0.12 v4.0.12 v4.0.12-2
Adam Dickmeiss [Tue, 17 Aug 2010 10:41:50 +0000 (12:41 +0200)]
Version 4.0.12

11 years agoMerge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
Dennis Schafroth [Mon, 16 Aug 2010 09:01:09 +0000 (11:01 +0200)]
Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client

Conflicts:
test/Makefile.am

11 years agoeclipse update
Dennis Schafroth [Mon, 16 Aug 2010 08:58:00 +0000 (10:58 +0200)]
eclipse update

11 years agoAdd query with sort
Dennis Schafroth [Mon, 16 Aug 2010 08:57:05 +0000 (10:57 +0200)]
Add query with sort

11 years agoAdded test_rpm2solr.c
Dennis Schafroth [Mon, 16 Aug 2010 08:54:39 +0000 (10:54 +0200)]
Added test_rpm2solr.c

11 years agoSOLR: Map SRU recordSchema to "fl"
Adam Dickmeiss [Fri, 13 Aug 2010 12:33:50 +0000 (14:33 +0200)]
SOLR: Map SRU recordSchema to "fl"

11 years agoRename yaz_solr_encode -> yaz_solr_encode_request
Adam Dickmeiss [Thu, 12 Aug 2010 13:27:24 +0000 (15:27 +0200)]
Rename yaz_solr_encode -> yaz_solr_encode_request

11 years agoRename SOLR HTTP response function
Adam Dickmeiss [Thu, 12 Aug 2010 13:22:16 +0000 (15:22 +0200)]
Rename SOLR HTTP response function

From yaz_solr_decode to yaz_solr_decode_response; it only deals
with HTTP response decoding.

11 years agoAdd test test_rpn2solr
Adam Dickmeiss [Thu, 12 Aug 2010 11:49:59 +0000 (13:49 +0200)]
Add test test_rpn2solr

11 years agoDisable tests that do not yet work
Adam Dickmeiss [Thu, 12 Aug 2010 11:49:57 +0000 (13:49 +0200)]
Disable tests that do not yet work

11 years agoMake some internal functions static
Adam Dickmeiss [Thu, 12 Aug 2010 11:38:06 +0000 (13:38 +0200)]
Make some internal functions static

These functions were defined non-static by mistake (they were
never defined in a header): emit_term, emit_terms, emit-wordlist.

11 years agoAdd new SOLR headers to header list
Adam Dickmeiss [Thu, 12 Aug 2010 11:20:33 +0000 (13:20 +0200)]
Add new SOLR headers to header list

11 years agoMerge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
Adam Dickmeiss [Thu, 12 Aug 2010 11:15:36 +0000 (13:15 +0200)]
Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client

11 years agoAdd SOLR (rpn2solr) support.
Dennis Schafroth [Thu, 12 Aug 2010 11:15:12 +0000 (13:15 +0200)]
Add SOLR (rpn2solr) support.

11 years agoMerge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
Adam Dickmeiss [Thu, 12 Aug 2010 11:13:30 +0000 (13:13 +0200)]
Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client

11 years agoSOLR support for ZOOM and yaz-client
Adam Dickmeiss [Thu, 12 Aug 2010 11:08:34 +0000 (13:08 +0200)]
SOLR support for ZOOM and yaz-client

The SOLR requests and responses (search only) are encoded in the
same structures as SRW/SRU, because they are semantically so equal.
It also means minimal change to existing software. However, at this
time decoding of a SOLR search response must be instructed by the client.
Had the SOLR Webservice used a namespace we might have a cleaner
model. For ZOOM, option "sru" may be set to "solr" in which case
ZOOM will contact a SOLR server with the URL with suffix "/select".
So far the following SRU parameters are mapped: query, startRecord,
maximumRecords.

11 years agoMerge branch 'master' into solr_client
Adam Dickmeiss [Thu, 12 Aug 2010 08:20:33 +0000 (10:20 +0200)]
Merge branch 'master' into solr_client

11 years agoFix compilation for without libxml2
Adam Dickmeiss [Thu, 12 Aug 2010 08:20:19 +0000 (10:20 +0200)]
Fix compilation for without libxml2

11 years agoRefactor ZOOM event, hide more definitions
Adam Dickmeiss [Thu, 12 Aug 2010 07:59:29 +0000 (09:59 +0200)]
Refactor ZOOM event, hide more definitions

11 years agoMerge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
Dennis Schafroth [Wed, 11 Aug 2010 14:37:06 +0000 (16:37 +0200)]
Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client

11 years agoTest cases for RPN to SOLR conversion
Dennis Schafroth [Wed, 11 Aug 2010 14:36:56 +0000 (16:36 +0200)]
Test cases for RPN to SOLR conversion

11 years agoAdd SOLR (rpn2solr) support
Dennis Schafroth [Wed, 11 Aug 2010 14:33:30 +0000 (16:33 +0200)]
Add SOLR (rpn2solr) support

Not 100% working, only basic stuff.
TODO: also clean out stuff not needed (based on the CQF files)

11 years agoAdd new SOLR files for parsing from rpn2solr. (based on the rpn2cpf)
Dennis Schafroth [Wed, 11 Aug 2010 14:22:30 +0000 (16:22 +0200)]
Add new SOLR files for parsing from rpn2solr. (based on the rpn2cpf)

Not working 100%. Only very basic parsing.
TODO: clean out unused code.

11 years agoRefactor ZOOM SRU stuff to separate source
Adam Dickmeiss [Wed, 11 Aug 2010 13:59:03 +0000 (15:59 +0200)]
Refactor ZOOM SRU stuff to separate source

11 years agoFix filename in Doxygen comment
Adam Dickmeiss [Wed, 11 Aug 2010 12:26:13 +0000 (14:26 +0200)]
Fix filename in Doxygen comment

11 years agoRefactor record render to separate source
Adam Dickmeiss [Wed, 11 Aug 2010 12:24:15 +0000 (14:24 +0200)]
Refactor record render to separate source

11 years agoRefactor record cache to separate source
Adam Dickmeiss [Wed, 11 Aug 2010 12:03:18 +0000 (14:03 +0200)]
Refactor record cache to separate source

11 years agoRefactor ZOOM_query to separate source
Adam Dickmeiss [Wed, 11 Aug 2010 11:39:37 +0000 (13:39 +0200)]
Refactor ZOOM_query to separate source

11 years agoRefactor ZOOM Z39.50 functions to zoom-z3950.c
Adam Dickmeiss [Wed, 11 Aug 2010 11:09:37 +0000 (13:09 +0200)]
Refactor ZOOM Z39.50 functions to zoom-z3950.c

11 years agoRename some functions to indicate Z39.50 handling
Adam Dickmeiss [Wed, 11 Aug 2010 08:02:15 +0000 (10:02 +0200)]
Rename some functions to indicate Z39.50 handling

11 years agoMerge branch 'master' into solr_client
Adam Dickmeiss [Wed, 11 Aug 2010 07:27:40 +0000 (09:27 +0200)]
Merge branch 'master' into solr_client

11 years agoAvoid buffer[length] construct in yaz-ztest
Adam Dickmeiss [Tue, 10 Aug 2010 13:46:38 +0000 (15:46 +0200)]
Avoid buffer[length] construct in yaz-ztest

11 years agoUpdate Windows makefile for facets
Adam Dickmeiss [Tue, 10 Aug 2010 13:44:27 +0000 (15:44 +0200)]
Update Windows makefile for facets

11 years agoFix leak in parse_facet + compilation on Windows
Adam Dickmeiss [Tue, 10 Aug 2010 13:41:16 +0000 (15:41 +0200)]
Fix leak in parse_facet + compilation on Windows

yaz_pqf_destroy not called. Constructs such as buffer[length] not
supported on Visual Studio 2008.

11 years agoRevert recursive mutex patch
Adam Dickmeiss [Tue, 10 Aug 2010 10:29:21 +0000 (12:29 +0200)]
Revert recursive mutex patch

We don't need recursive mutexes. Interestingly, PTHREAD_MUTEX_NORMAL
and PTHREAD_MUTEX_RECURSIVE from man page pthread_mutexattr_settype
are not defined in header pthread.h by default on my Ubuntu Linux
(possibly others). Some defines may do trigger a definition of it, but
what impact do they have then on other pthread-implementations?
It crashed on FreeBSD - it could be fixed by using PTHREAD_MUTEX_NORMAL
(rather than 0) for pthread_settype (normal mutex).

11 years agoDaemon: make core files work if setuid is in use
Adam Dickmeiss [Mon, 9 Aug 2010 12:29:09 +0000 (14:29 +0200)]
Daemon: make core files work if setuid is in use

11 years agoGFS is using yaz_daemon
Adam Dickmeiss [Mon, 9 Aug 2010 10:12:27 +0000 (12:12 +0200)]
GFS is using yaz_daemon

11 years agoFix wrapper function for creating standard mutex. Fix destruction of Mutex attribute.
Dennis Schafroth [Sat, 7 Aug 2010 10:00:22 +0000 (12:00 +0200)]
Fix wrapper function for creating standard mutex. Fix destruction of Mutex attribute.

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Sat, 7 Aug 2010 09:53:31 +0000 (11:53 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

11 years agoAdd new mutex create where mutex attribute can be set
Dennis Schafroth [Sat, 7 Aug 2010 09:53:07 +0000 (11:53 +0200)]
Add new mutex create where mutex attribute can be set

11 years agoyaz-client: seacrh and show for SOLR
Adam Dickmeiss [Thu, 5 Aug 2010 12:27:32 +0000 (14:27 +0200)]
yaz-client: seacrh and show for SOLR

11 years agoRename a few Z39.50 specific funcs
Adam Dickmeiss [Thu, 5 Aug 2010 09:24:54 +0000 (11:24 +0200)]
Rename a few Z39.50 specific funcs

11 years agoyaz-client: mark priv funcs static
Adam Dickmeiss [Wed, 4 Aug 2010 11:29:14 +0000 (13:29 +0200)]
yaz-client: mark priv funcs static

11 years agoReformat
Adam Dickmeiss [Wed, 4 Aug 2010 11:16:27 +0000 (13:16 +0200)]
Reformat

11 years agoMove otherinfo facet stuff to facet.c
Adam Dickmeiss [Wed, 4 Aug 2010 09:20:22 +0000 (11:20 +0200)]
Move otherinfo facet stuff to facet.c

Reshape functions a little.. No need to pass the facet OID
when it is already given that this is facets etc..

11 years agoyaz_oi_get_facetlist_oid: odr=0 for yaz_oi_update
Adam Dickmeiss [Wed, 4 Aug 2010 08:55:29 +0000 (10:55 +0200)]
yaz_oi_get_facetlist_oid: odr=0 for yaz_oi_update

This is because we do not want otherinformation entries to
be created by this call.

11 years agoyaz-client: otherinfo missing if facet is in use
Adam Dickmeiss [Wed, 4 Aug 2010 08:38:21 +0000 (10:38 +0200)]
yaz-client: otherinfo missing if facet is in use

Do not skip index 0 of user-defined otherinfos if facets is in use.

11 years agoRename attr facet specific functions
Adam Dickmeiss [Tue, 3 Aug 2010 11:32:54 +0000 (13:32 +0200)]
Rename attr facet specific functions

11 years agoReformat. Add YAZ_END_CDECL
Adam Dickmeiss [Tue, 3 Aug 2010 11:21:19 +0000 (13:21 +0200)]
Reformat. Add YAZ_END_CDECL

11 years agoRename struct attrvalues to yaz_facet_attr
Adam Dickmeiss [Tue, 3 Aug 2010 11:10:58 +0000 (13:10 +0200)]
Rename struct attrvalues to yaz_facet_attr

This structure is facet specific and not a generic attribute
container.

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Tue, 3 Aug 2010 11:07:40 +0000 (13:07 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

11 years agoAdd Copyright header and footer
Adam Dickmeiss [Tue, 3 Aug 2010 11:03:10 +0000 (13:03 +0200)]
Add Copyright header and footer

11 years agoAvoid crash if facet use attribute is not supplied
Adam Dickmeiss [Tue, 3 Aug 2010 10:59:03 +0000 (12:59 +0200)]
Avoid crash if facet use attribute is not supplied

11 years agoUpdate expected MARC result due to upd message
Adam Dickmeiss [Mon, 2 Aug 2010 19:00:14 +0000 (21:00 +0200)]
Update expected MARC result due to upd message

MARC results differ a little because warning about MARC directory
has changed.

11 years agoMARC reader: more verbose if dir parsing fails
Adam Dickmeiss [Mon, 2 Aug 2010 10:18:18 +0000 (12:18 +0200)]
MARC reader: more verbose if dir parsing fails

11 years agoAvoid compile problem in eclipse
Dennis Schafroth [Fri, 30 Jul 2010 15:16:39 +0000 (17:16 +0200)]
Avoid compile problem in eclipse

11 years agoMinor changes in build settings
Dennis Schafroth [Fri, 30 Jul 2010 13:12:02 +0000 (15:12 +0200)]
Minor changes in build settings

11 years agoAdd compile defines
Dennis Schafroth [Fri, 30 Jul 2010 13:08:48 +0000 (15:08 +0200)]
Add compile defines

11 years agoCosmetic plus fix of uninitialized variable
Dennis Schafroth [Fri, 30 Jul 2010 13:06:45 +0000 (15:06 +0200)]
Cosmetic plus fix of uninitialized variable

11 years agoFix LOG_* flags to YLOG_ flags. Uncomment unused functions
Dennis Schafroth [Fri, 30 Jul 2010 10:05:33 +0000 (12:05 +0200)]
Fix LOG_* flags to YLOG_ flags. Uncomment unused functions

11 years agoFix: missing init of descriptor and indirect_reference in externally defined
Dennis Schafroth [Thu, 29 Jul 2010 08:48:34 +0000 (10:48 +0200)]
Fix: missing init of descriptor and indirect_reference in externally defined

11 years agoVerbose debug logging on facets. Remove later
Dennis Schafroth [Mon, 26 Jul 2010 14:27:56 +0000 (16:27 +0200)]
Verbose debug logging on facets. Remove later

11 years agoZOOM Facets.
Dennis Schafroth [Mon, 26 Jul 2010 14:26:08 +0000 (16:26 +0200)]
ZOOM Facets.

Fix: initialization of resultset.num_facets.
Add some debug logging.

11 years agoDebug log on facet attribute limit
Dennis Schafroth [Mon, 26 Jul 2010 14:25:33 +0000 (16:25 +0200)]
Debug log on facet attribute limit

11 years agoSupport for skipping facet, if term count is 0.
Dennis Schafroth [Mon, 26 Jul 2010 09:27:47 +0000 (11:27 +0200)]
Support for skipping facet, if term count is 0.

11 years agohelper for init. attribute values struct. Add some debug logging.
Dennis Schafroth [Mon, 26 Jul 2010 09:26:31 +0000 (11:26 +0200)]
helper for init. attribute values struct. Add some debug logging.

11 years agoAdd: method for initializing facet attributes helper struct
Dennis Schafroth [Mon, 26 Jul 2010 09:25:31 +0000 (11:25 +0200)]
Add: method for initializing facet attributes helper struct

11 years agoAdd missing facet function resultset_get_facet_field
Dennis Schafroth [Thu, 22 Jul 2010 15:12:23 +0000 (17:12 +0200)]
Add missing facet function resultset_get_facet_field

11 years agoFix: Uninitialized member of Z_External when creating FacetList
Dennis Schafroth [Thu, 22 Jul 2010 11:24:31 +0000 (13:24 +0200)]
Fix: Uninitialized member of Z_External when creating FacetList

11 years agoAdd help for facets
Dennis Schafroth [Wed, 21 Jul 2010 09:45:14 +0000 (11:45 +0200)]
Add help for facets

11 years agoImplementation of fake facets.
Dennis Schafroth [Tue, 20 Jul 2010 16:10:41 +0000 (18:10 +0200)]
Implementation of fake facets.

Adding dummy facets to result if requesting facets in search.

11 years agoImplemtation of ZOOM Facet API in zoom shell
Dennis Schafroth [Tue, 20 Jul 2010 16:06:14 +0000 (18:06 +0200)]
Implemtation of ZOOM Facet API in zoom shell

New option:
set facets [AttributeList,]* : Defines the facets to be fetched, using comma-separated
AttributeLists (@attr 1=title 2=0 3=0, @attr 1=author 2=0 3=0)

New command:
facets: shows the facets results

11 years agoZOOM Facet API implementation
Dennis Schafroth [Tue, 20 Jul 2010 16:05:13 +0000 (18:05 +0200)]
ZOOM Facet API implementation

Implemented the facet API.

11 years agoFix:
Dennis Schafroth [Tue, 20 Jul 2010 16:02:57 +0000 (18:02 +0200)]
Fix:
The facets_field variable was a pointer too much.
Also not conditional on the ZOOM_RESULT_LIST representation.

Add:
Variables to hold numbers of facets_fields and the array of facets names.

11 years agoFix: use the given OtherInformation. Also set the term when creating the Z_Term
Dennis Schafroth [Tue, 20 Jul 2010 16:01:52 +0000 (18:01 +0200)]
Fix: use the given OtherInformation. Also set the term when creating the Z_Term

11 years agoZOOM Facet API changes
Dennis Schafroth [Tue, 20 Jul 2010 15:56:59 +0000 (17:56 +0200)]
ZOOM Facet API changes

ZOOM_resultset_facets returns a CONST array for interating over all facets.

ZOOM_resultset_facets_names returns a constant array of names (char *)
of the available facets returned in the search.

11 years agoadded helper functions
Dennis Schafroth [Tue, 20 Jul 2010 15:56:17 +0000 (17:56 +0200)]
added helper functions

11 years agoUsing helper functions for facets
Dennis Schafroth [Tue, 20 Jul 2010 07:33:43 +0000 (09:33 +0200)]
Using helper functions for facets

11 years agoFix: set the correct num elements on parsing error
Dennis Schafroth [Tue, 20 Jul 2010 07:32:28 +0000 (09:32 +0200)]
Fix: set the correct num elements on parsing error

11 years agoHelper functions for Facets.
Dennis Schafroth [Tue, 20 Jul 2010 07:28:12 +0000 (09:28 +0200)]
Helper functions for Facets.

11 years agoHelper functions for Facets.
Dennis Schafroth [Tue, 20 Jul 2010 07:27:53 +0000 (09:27 +0200)]
Helper functions for Facets.

11 years agoAdd fake Facet list. Not yet working
Dennis Schafroth [Mon, 19 Jul 2010 15:25:28 +0000 (17:25 +0200)]
Add fake Facet list. Not yet working

11 years agoAdd facet structures
Dennis Schafroth [Mon, 19 Jul 2010 15:24:24 +0000 (17:24 +0200)]
Add facet structures

11 years agoAdd part of Facet API
Dennis Schafroth [Mon, 19 Jul 2010 15:23:27 +0000 (17:23 +0200)]
Add part of Facet API

11 years agoAdd yaz_parse_facet_list with helper functions
Dennis Schafroth [Mon, 19 Jul 2010 15:20:57 +0000 (17:20 +0200)]
Add yaz_parse_facet_list with helper functions

11 years agoAdd yaz_pqf_parse_facet_list
Dennis Schafroth [Mon, 19 Jul 2010 15:18:23 +0000 (17:18 +0200)]
Add yaz_pqf_parse_facet_list

11 years agoCosmetic
Dennis Schafroth [Mon, 19 Jul 2010 15:17:08 +0000 (17:17 +0200)]
Cosmetic

11 years agoAdd facets option
Dennis Schafroth [Mon, 19 Jul 2010 15:08:57 +0000 (17:08 +0200)]
Add facets option

11 years agoRefactor parsing of FacetList out (into pquery.c)
Dennis Schafroth [Mon, 19 Jul 2010 15:06:35 +0000 (17:06 +0200)]
Refactor parsing of FacetList out (into pquery.c)

Also need the parsing in the ZOOM API.

11 years agoReworked as discussed. Keeping the optional for now. Perhaps adding the facet name...
Dennis Schafroth [Mon, 19 Jul 2010 07:59:44 +0000 (09:59 +0200)]
Reworked as discussed. Keeping the optional for now. Perhaps adding the facet name iterator

11 years agoFix serious complaint from heikki
Dennis Schafroth [Thu, 15 Jul 2010 12:55:23 +0000 (14:55 +0200)]
Fix serious complaint from heikki

Show Facets indented.

11 years agoremoved a stray s
Dennis Schafroth [Thu, 15 Jul 2010 12:46:07 +0000 (14:46 +0200)]
removed a stray s

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Dennis Schafroth [Thu, 15 Jul 2010 12:41:09 +0000 (14:41 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz