ZOOM-Perl-moved-to-github.git
18 years agosamples/records/esdd0006.grs
mike [Fri, 9 Dec 2005 10:34:31 +0000 (10:34 +0000)]
samples/records/esdd0006.grs

18 years agoComplete rewrite as OO version of 16-packages.t
mike [Fri, 9 Dec 2005 10:33:48 +0000 (10:33 +0000)]
Complete rewrite as OO version of 16-packages.t

18 years agoRemove obsolete comment.
mike [Fri, 9 Dec 2005 10:17:35 +0000 (10:17 +0000)]
Remove obsolete comment.

18 years agoTypo.
mike [Wed, 7 Dec 2005 18:04:47 +0000 (18:04 +0000)]
Typo.

18 years agoMuch more good stuff: now adds new records and searches for them.
mike [Wed, 7 Dec 2005 17:46:00 +0000 (17:46 +0000)]
Much more good stuff: now adds new records and searches for them.

18 years agoNew
mike [Wed, 7 Dec 2005 15:28:34 +0000 (15:28 +0000)]
New

18 years agoMany improvements -- now does good database-creation stuff.
mike [Wed, 7 Dec 2005 15:28:07 +0000 (15:28 +0000)]
Many improvements -- now does good database-creation stuff.
Record update doesn't work, though.

18 years agoChanged sign of (unused) `len' argument to SvPV()
mike [Tue, 6 Dec 2005 23:15:56 +0000 (23:15 +0000)]
Changed sign of (unused) `len' argument to SvPV()
-- I think the newer Perl distribution of Ubuntu 5.10 has changed this.

18 years agoNew
mike [Tue, 6 Dec 2005 22:47:19 +0000 (22:47 +0000)]
New

18 years agoMuch new material (from yesterday).
mike [Sat, 26 Nov 2005 16:59:53 +0000 (16:59 +0000)]
Much new material (from yesterday).

18 years agoRemove extraneous declaration.
mike [Sat, 26 Nov 2005 16:58:03 +0000 (16:58 +0000)]
Remove extraneous declaration.

18 years agoMuch new text.
mike [Thu, 24 Nov 2005 17:35:29 +0000 (17:35 +0000)]
Much new text.

18 years agoComment.
mike [Thu, 24 Nov 2005 15:39:20 +0000 (15:39 +0000)]
Comment.

18 years agoRolling.
mike [Fri, 18 Nov 2005 17:55:08 +0000 (17:55 +0000)]
Rolling.

18 years agoPass sort-type "yaz" instead of "dummy".
mike [Fri, 18 Nov 2005 17:53:16 +0000 (17:53 +0000)]
Pass sort-type "yaz" instead of "dummy".

18 years agoFinished section on the Connection class
mike [Thu, 17 Nov 2005 15:31:06 +0000 (15:31 +0000)]
Finished section on the Connection class
... except discussion of Scan options.

18 years agoRolling. Much new material.
mike [Thu, 17 Nov 2005 13:32:30 +0000 (13:32 +0000)]
Rolling.  Much new material.

18 years agoNew error-code SCANTERM.
mike [Wed, 16 Nov 2005 17:27:07 +0000 (17:27 +0000)]
New error-code SCANTERM.

18 years ago$rs->record() and its variants now throw exceptions.
mike [Wed, 16 Nov 2005 17:26:23 +0000 (17:26 +0000)]
$rs->record() and its variants now throw exceptions.
New error-code SCANTERM, can be thrown by $ss->term() and display_term().

18 years agoZOOM::Exception class now carries a diagnostic-set: it can be passed
mike [Wed, 16 Nov 2005 16:48:11 +0000 (16:48 +0000)]
ZOOM::Exception class now carries a diagnostic-set: it can be passed
into the constructor and retrieved using $exception->diagset().
Add $conn->diagset(), which exercises new ZOOM_connection_diagnet().
Simplify error-handling through new $conn->_check() method.

18 years agoSpace for $conn->diagset()
mike [Wed, 16 Nov 2005 16:39:25 +0000 (16:39 +0000)]
Space for $conn->diagset()

18 years agoAdd test for ZOOM::Connection::diagset()
mike [Wed, 16 Nov 2005 16:25:02 +0000 (16:25 +0000)]
Add test for ZOOM::Connection::diagset()

18 years agoAdd test for ZOOM_connection_diagset()
mike [Wed, 16 Nov 2005 16:24:42 +0000 (16:24 +0000)]
Add test for ZOOM_connection_diagset()

18 years agoAdd ZOOM_connection_diagset()
mike [Wed, 16 Nov 2005 16:10:13 +0000 (16:10 +0000)]
Add ZOOM_connection_diagset()

18 years agoRolling.
mike [Wed, 16 Nov 2005 15:36:16 +0000 (15:36 +0000)]
Rolling.

18 years agoMany huge changes.
mike [Wed, 16 Nov 2005 14:54:43 +0000 (14:54 +0000)]
Many huge changes.

18 years agoAdd render() method to ZOOM::Exception.
mike [Wed, 16 Nov 2005 14:49:30 +0000 (14:49 +0000)]
Add render() method to ZOOM::Exception.
Overload '""' to use render()
ZOOM::Connection::new() is now OK with no second argument passed.
Three new comments about places where we should throw exceptions.

18 years agoRolling.
mike [Tue, 15 Nov 2005 17:33:04 +0000 (17:33 +0000)]
Rolling.

18 years agoRemove extraneous print.
mike [Tue, 15 Nov 2005 17:26:24 +0000 (17:26 +0000)]
Remove extraneous print.

18 years agoAdd lib/ZOOM.pod
mike [Tue, 15 Nov 2005 17:25:20 +0000 (17:25 +0000)]
Add lib/ZOOM.pod

18 years agoWe now attempt to create a new DB (but this fails because I don't know
mike [Tue, 15 Nov 2005 17:24:42 +0000 (17:24 +0000)]
We now attempt to create a new DB (but this fails because I don't know
the right parameters to set.  We await Adam's sample ZOOM-C XS
client.)

18 years agoROlling.
mike [Tue, 15 Nov 2005 17:23:45 +0000 (17:23 +0000)]
ROlling.

18 years agoTested ZOOM_scanset_option_get() and ZOOM_scanset_option_set()
mike [Tue, 15 Nov 2005 11:31:52 +0000 (11:31 +0000)]
Tested ZOOM_scanset_option_get() and ZOOM_scanset_option_set()
This means all functions have been tested except
ZOOM_event()
ZOOM_connection_last_event()
which are to do with asynchronous functioning.  Since I don't properly
understand yet how this works in ZOOM-C, trying to test the Perl
interface would be premature :-)

18 years agoMany additional tests, for field-specific scanning, non-default
mike [Wed, 9 Nov 2005 17:08:31 +0000 (17:08 +0000)]
Many additional tests, for field-specific scanning, non-default
scanset size, follow-up scans with seed-term position=0, and option
setting/getting.

18 years agoSupport for ScanSet options.
mike [Wed, 9 Nov 2005 17:08:03 +0000 (17:08 +0000)]
Support for ScanSet options.

18 years agoFix typo in diagnostic.
mike [Wed, 9 Nov 2005 17:03:15 +0000 (17:03 +0000)]
Fix typo in diagnostic.

18 years agoNicer option-setting syntax.
mike [Wed, 9 Nov 2005 17:00:43 +0000 (17:00 +0000)]
Nicer option-setting syntax.

18 years agoMany additional tests, for field-specific scanning, non-default
mike [Wed, 9 Nov 2005 16:47:42 +0000 (16:47 +0000)]
Many additional tests, for field-specific scanning, non-default
scanset size, follow-up scans with seed-term position=0, and option
setting/getting.

18 years agoFirst version -- embryonic.
mike [Wed, 9 Nov 2005 11:32:12 +0000 (11:32 +0000)]
First version -- embryonic.

18 years agoAdjust count of tests.
mike [Tue, 8 Nov 2005 16:49:06 +0000 (16:49 +0000)]
Adjust count of tests.

18 years agoZOOM::ResultSet::sort() now uses Net::Z3950::ZOOM::resultset_sort1()
mike [Tue, 8 Nov 2005 16:42:08 +0000 (16:42 +0000)]
ZOOM::ResultSet::sort() now uses Net::Z3950::ZOOM::resultset_sort1()
rather then ...::sort(), and returns its status.

18 years agoTwo new tests: resultset_sort1() rejects a syntactically invalid sort
mike [Tue, 8 Nov 2005 16:40:06 +0000 (16:40 +0000)]
Two new tests: resultset_sort1() rejects a syntactically invalid sort
specification, and accepts a good one.

18 years agoAdd ZOOM_resultset_sort1()
mike [Tue, 8 Nov 2005 16:39:23 +0000 (16:39 +0000)]
Add ZOOM_resultset_sort1()

18 years agoAdd t/16-packages.t and t/26-packages.t
mike [Tue, 8 Nov 2005 15:57:20 +0000 (15:57 +0000)]
Add t/16-packages.t and t/26-packages.t

18 years agoTested package functions, so far as possible.
mike [Tue, 8 Nov 2005 15:56:44 +0000 (15:56 +0000)]
Tested package functions, so far as possible.

18 years agoNew
mike [Tue, 8 Nov 2005 15:56:05 +0000 (15:56 +0000)]
New

18 years agoAs far as I can tell, I have added Extended Services support, in the
mike [Tue, 8 Nov 2005 15:55:45 +0000 (15:55 +0000)]
As far as I can tell, I have added Extended Services support, in the
form of the ZOOM::Connection::package() method and the ZOOM::Package
class (and, OK, the ZOOM::Error::PACKAGE error-code if you want to be
pedantic).  But it's hard to know whether that's meaningfully true as
I don't yet know how to _use_ these functions.

18 years agoNicer option-setting syntax.
mike [Tue, 8 Nov 2005 14:46:31 +0000 (14:46 +0000)]
Nicer option-setting syntax.

18 years agoNew -- initial version exercises all the functions, but doesn't
mike [Tue, 8 Nov 2005 13:47:11 +0000 (13:47 +0000)]
New -- initial version exercises all the functions, but doesn't
actually _do_ anything yet.  I need more information.

18 years agoMove package-related function (not yet implemented) below
mike [Tue, 8 Nov 2005 11:51:57 +0000 (11:51 +0000)]
Move package-related function (not yet implemented) below
option-related function (tested).

18 years agoSupport for scanning: Connnection::scan() and the ScanSet class.
mike [Tue, 8 Nov 2005 11:46:59 +0000 (11:46 +0000)]
Support for scanning: Connnection::scan() and the ScanSet class.

18 years agoAdd t/25-scan.t
mike [Tue, 8 Nov 2005 11:46:07 +0000 (11:46 +0000)]
Add t/25-scan.t

18 years agoNew
mike [Tue, 8 Nov 2005 11:45:51 +0000 (11:45 +0000)]
New

18 years agoAdd no-op final test mirroring scanset re-destruction in OO API.
mike [Tue, 8 Nov 2005 11:45:29 +0000 (11:45 +0000)]
Add no-op final test mirroring scanset re-destruction in OO API.

18 years agoRemove extraneous "use MARC::Record".
mike [Tue, 8 Nov 2005 10:37:31 +0000 (10:37 +0000)]
Remove extraneous "use MARC::Record".

18 years agoInclude t/15-scan.t
mike [Tue, 8 Nov 2005 10:23:23 +0000 (10:23 +0000)]
Include t/15-scan.t

18 years agoTested scan-related functions other than option_get/set:
mike [Tue, 8 Nov 2005 10:23:02 +0000 (10:23 +0000)]
Tested scan-related functions other than option_get/set:
connection_scan(), scanset_term(), scanset_display_term(),
scanset_size() and scanset_destroy()

18 years agoNew.
mike [Tue, 8 Nov 2005 10:20:59 +0000 (10:20 +0000)]
New.

18 years agoRemove outdated comment about sorting not working.
mike [Mon, 7 Nov 2005 16:30:41 +0000 (16:30 +0000)]
Remove outdated comment about sorting not working.

18 years agoTesting for record cloning and deletion.
mike [Mon, 7 Nov 2005 15:48:21 +0000 (15:48 +0000)]
Testing for record cloning and deletion.

18 years agoSupport for record cloning and deletion.
mike [Mon, 7 Nov 2005 15:48:08 +0000 (15:48 +0000)]
Support for record cloning and deletion.
(This includes a new private error-code.)
Corrections to commenting on PRIVATE methods.

18 years agoTested record_clone() and record_destroy()
mike [Mon, 7 Nov 2005 14:27:43 +0000 (14:27 +0000)]
Tested record_clone() and record_destroy()

18 years agoInclude t/14-sorting.t and t/24-sorting.t.
mike [Fri, 4 Nov 2005 17:08:48 +0000 (17:08 +0000)]
Include t/14-sorting.t and t/24-sorting.t.

18 years agoNew
mike [Fri, 4 Nov 2005 17:08:20 +0000 (17:08 +0000)]
New

18 years agoAdd ZOOM::ResultSet::sort()
mike [Fri, 4 Nov 2005 17:08:00 +0000 (17:08 +0000)]
Add ZOOM::ResultSet::sort()

18 years agoTested ZOOM_resultset_sort()
mike [Fri, 4 Nov 2005 17:07:13 +0000 (17:07 +0000)]
Tested ZOOM_resultset_sort()

18 years agoTest for success of sortby() call.
mike [Fri, 4 Nov 2005 16:59:55 +0000 (16:59 +0000)]
Test for success of sortby() call.

18 years agoTypo.
mike [Fri, 4 Nov 2005 16:34:16 +0000 (16:34 +0000)]
Typo.

18 years agoRemoved unusued my($errcode, $errmsg, $addinfo);
mike [Fri, 4 Nov 2005 16:21:04 +0000 (16:21 +0000)]
Removed unusued my($errcode, $errmsg, $addinfo);

18 years agoNew -- doesn't yet pass, but I think that's Adam's fault :-)
mike [Fri, 4 Nov 2005 16:13:42 +0000 (16:13 +0000)]
New -- doesn't yet pass, but I think that's Adam's fault :-)

18 years agoReorder XSUBs -- no other changes.
mike [Thu, 3 Nov 2005 16:42:22 +0000 (16:42 +0000)]
Reorder XSUBs -- no other changes.

18 years agoAdd t/23-resultset.t
mike [Thu, 3 Nov 2005 16:33:06 +0000 (16:33 +0000)]
Add t/23-resultset.t

18 years agoNew -- tests OO interface to advanced result-set functionality.
mike [Thu, 3 Nov 2005 16:32:41 +0000 (16:32 +0000)]
New -- tests OO interface to advanced result-set functionality.

18 years agoAdd new methods to the ZOOM::ResultSet class:
mike [Thu, 3 Nov 2005 16:32:10 +0000 (16:32 +0000)]
Add new methods to the ZOOM::ResultSet class:
option(), record_immediate(), cache_reset(), records()
Add check for undefined return from Net::Z3950::ZOOM::resultset_record()

18 years agoRename `return_values' parameters to `return_records'.
mike [Thu, 3 Nov 2005 16:23:36 +0000 (16:23 +0000)]
Rename `return_values' parameters to `return_records'.
No substantive changes.

18 years agoExtra test: not-previously-fetched record works with _immediate after
mike [Thu, 3 Nov 2005 16:04:04 +0000 (16:04 +0000)]
Extra test: not-previously-fetched record works with _immediate after
having been included in a records() request.

18 years agoReinstate resultset_records() tests that were commented out before
mike [Thu, 3 Nov 2005 15:58:53 +0000 (15:58 +0000)]
Reinstate resultset_records() tests that were commented out before
that function worked properly.

18 years agoFixed resultset_records()
mike [Thu, 3 Nov 2005 15:58:09 +0000 (15:58 +0000)]
Fixed resultset_records()

18 years agoInclude t/13-resultset.t
mike [Wed, 2 Nov 2005 18:24:57 +0000 (18:24 +0000)]
Include t/13-resultset.t

18 years agoAdditional tests for resultset_records().
mike [Wed, 2 Nov 2005 18:24:32 +0000 (18:24 +0000)]
Additional tests for resultset_records().

18 years agoMuch work on ZOOM_resultset_records(). It now has a different,
mike [Wed, 2 Nov 2005 18:23:10 +0000 (18:23 +0000)]
Much work on ZOOM_resultset_records().  It now has a different,
Perl-friendly, signature, and works correctly in the case where it is
not asked to actually return the records that it fetches.  However,
when asked to do so, while it does return an array of the correct
number of entries, these are all undefined values.  D'oh!

18 years agoMany more tests -- still not complete as resultset_records() doesn't work.
mike [Wed, 2 Nov 2005 17:24:27 +0000 (17:24 +0000)]
Many more tests -- still not complete as resultset_records() doesn't work.

18 years agoTested resultset_record_immediate() and resultset_cache_reset().
mike [Wed, 2 Nov 2005 17:23:50 +0000 (17:23 +0000)]
Tested resultset_record_immediate() and resultset_cache_reset().
Steps towards a working ZOOM_resultset_records()

18 years agoModified in accordance with Per's suggestions.
mike [Tue, 1 Nov 2005 15:59:32 +0000 (15:59 +0000)]
Modified in accordance with Per's suggestions.

18 years agoNew (but not really complete)
mike [Tue, 1 Nov 2005 11:55:07 +0000 (11:55 +0000)]
New (but not really complete)

18 years agoTested ZOOM_resultset_option_get() and ZOOM_resultset_option_set()
mike [Tue, 1 Nov 2005 11:54:42 +0000 (11:54 +0000)]
Tested ZOOM_resultset_option_get() and ZOOM_resultset_option_set()

18 years agoInclude t/22-query.t in distribution.
mike [Mon, 31 Oct 2005 15:11:45 +0000 (15:11 +0000)]
Include t/22-query.t in distribution.

18 years agoNew/
mike [Mon, 31 Oct 2005 15:11:08 +0000 (15:11 +0000)]
New/

18 years agoAdded new, OO-specific, error-codes to the ZOOM::Error class
mike [Mon, 31 Oct 2005 15:10:49 +0000 (15:10 +0000)]
Added new, OO-specific, error-codes to the ZOOM::Error class
CREATE_QUERY, QUERY_CQL, QUERY_PQF, SORTBY
Added support for these to ZOOM::diag_str()
Moved that function after the enumerations.
Added utility function _oops() for throwing exceptions.
Fix typo in Connection::destroy() error message.
Added Connection::search(), with Query object as its argument.
Added Query class, with Query::CQL and Query::PQF subclasses.

18 years agoCheck size of result-set arising from search on created query, check
mike [Mon, 31 Oct 2005 15:04:04 +0000 (15:04 +0000)]
Check size of result-set arising from search on created query, check
returned record, destroy all objects.

18 years agoStricter checking of retrieved record.
mike [Mon, 31 Oct 2005 15:02:41 +0000 (15:02 +0000)]
Stricter checking of retrieved record.

18 years agoTweaks.
mike [Wed, 26 Oct 2005 16:31:39 +0000 (16:31 +0000)]
Tweaks.

18 years agoAdd t/12-query.t
mike [Wed, 26 Oct 2005 16:30:55 +0000 (16:30 +0000)]
Add t/12-query.t

18 years agoDo not include the "archive" directory in distributions.
mike [Wed, 26 Oct 2005 16:30:39 +0000 (16:30 +0000)]
Do not include the "archive" directory in distributions.

18 years agoNew -- autogenerated by "make dist" in recent Perl versions, including
mike [Wed, 26 Oct 2005 16:30:00 +0000 (16:30 +0000)]
New -- autogenerated by "make dist" in recent Perl versions, including
v5.8.4 onwards, but not be older versions, including v5.8.0.  So it
needs to be included in the distribution and in CVS for the benefit of
the older versions.

18 years agoDo not omit META.yml
mike [Wed, 26 Oct 2005 16:28:45 +0000 (16:28 +0000)]
Do not omit META.yml

18 years agoNew -- not to be included in distributions
mike [Wed, 26 Oct 2005 16:27:53 +0000 (16:27 +0000)]
New -- not to be included in distributions

18 years agoTested connection_search(), query_create(), query_destroy(),
mike [Wed, 26 Oct 2005 16:27:25 +0000 (16:27 +0000)]
Tested connection_search(), query_create(), query_destroy(),
query_cql(), query_prefix() and query_sortby().

18 years agoTest-script for query object (not yet complete).
mike [Wed, 26 Oct 2005 16:25:50 +0000 (16:25 +0000)]
Test-script for query object (not yet complete).

18 years agoInclude "t/21-option-callback.t"
mike [Mon, 24 Oct 2005 16:42:57 +0000 (16:42 +0000)]
Include "t/21-option-callback.t"