ZOOM-Perl-moved-to-github.git
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"

18 years agoNew.
mike [Mon, 24 Oct 2005 16:42:31 +0000 (16:42 +0000)]
New.

18 years agoHorrible, horrible support for set_callback(). I can hear them coming
mike [Mon, 24 Oct 2005 16:42:16 +0000 (16:42 +0000)]
Horrible, horrible support for set_callback().  I can hear them coming
to get me.  The rats ... the rats are in the walls!  IN THE WALLS!

(Also, the first few lines of ZOOM::Query support.)

18 years agoMore belt-and-braces copying of values passed into
mike [Mon, 24 Oct 2005 16:39:55 +0000 (16:39 +0000)]
More belt-and-braces copying of values passed into
ZOOM_options_set_callback().  This is ugly and leaky, but
works, more or less.  I feel bad about it.  I need a hug.

18 years agoComments fixed. No functional changes.
mike [Wed, 19 Oct 2005 15:14:26 +0000 (15:14 +0000)]
Comments fixed.  No functional changes.

18 years agoInclude "t/20-options.t"
mike [Wed, 19 Oct 2005 13:54:44 +0000 (13:54 +0000)]
Include "t/20-options.t"

18 years agoNew.
mike [Wed, 19 Oct 2005 13:53:47 +0000 (13:53 +0000)]
New.

18 years agoMany changes to the ZOOM::Options class:
mike [Wed, 19 Oct 2005 13:53:35 +0000 (13:53 +0000)]
Many changes to the ZOOM::Options class:
- constructor now accepts one or two optional parents.
- _opts() now dies if the object's been destroy()ed.
- Added option(), option_binary(), bool(), int(), set_int(), destroy().

18 years agoInclude "t/10-options.t" and "t/11-option-callback.t"
mike [Tue, 18 Oct 2005 17:02:43 +0000 (17:02 +0000)]
Include "t/10-options.t" and "t/11-option-callback.t"

18 years agoNew
mike [Tue, 18 Oct 2005 17:01:55 +0000 (17:01 +0000)]
New

18 years agoZOOM_connection_option_getl() now correctly sets its $len parameter.
mike [Tue, 18 Oct 2005 17:00:28 +0000 (17:00 +0000)]
ZOOM_connection_option_getl() now correctly sets its $len parameter.
Support for ZOOM_options_set_callback() -- *complicated*
Support for ZOOM_options_getl() and ZOOM_options_setl().
### Some memory-management issues remain.
Comment that ZOOM_record_get() should _sometimes_(!) use datachunk.
Testing complete for all other option-block functions:
ZOOM_options_create_with_parent()
ZOOM_options_create_with_parent2()
ZOOM_options_get()
ZOOM_options_set()
ZOOM_options_destroy()
ZOOM_options_get_bool()
ZOOM_options_get_int()
ZOOM_options_set_int()

18 years agouse warnings;
mike [Tue, 18 Oct 2005 16:27:58 +0000 (16:27 +0000)]
use warnings;
Remove extraneous comments.

18 years agouse warnings;
mike [Tue, 18 Oct 2005 16:27:29 +0000 (16:27 +0000)]
use warnings;
Comment now correctly names program.
Remove extraneous comments.

18 years agogetl() test emits recovered length in commentary.
mike [Mon, 17 Oct 2005 16:18:27 +0000 (16:18 +0000)]
getl() test emits recovered length in commentary.

18 years agoThree new tests of connectionless create and explicit connect.
mike [Mon, 17 Oct 2005 13:50:06 +0000 (13:50 +0000)]
Three new tests of connectionless create and explicit connect.
Two new tests of option setting/getting in text and binary mode.
Four new tests of consistency of error functions.

18 years agoTwo new tests of option setting/getting in text and binary mode.
mike [Mon, 17 Oct 2005 13:49:23 +0000 (13:49 +0000)]
Two new tests of option setting/getting in text and binary mode.
Four new tests of consistency of error functions.

18 years agoSupport for T_OPAQUECHAR (input only)
mike [Mon, 17 Oct 2005 13:48:08 +0000 (13:48 +0000)]
Support for T_OPAQUECHAR (input only)
Support for T_DATACHUNK (output only)

18 years agoNote that ZOOM::Exception should support diagnostic set.
mike [Mon, 17 Oct 2005 13:47:25 +0000 (13:47 +0000)]
Note that ZOOM::Exception should support diagnostic set.
Add new class ZOOM::Options (with minimal support).
Add error_x(), errcode(), errmsg(), addinfo() methods to ZOOM::Connection.
Add connectionless create() and explcit connect() to ZOOM::Connection.
Add option_binary() to ZOOM::Connection -- should it be default?

18 years agoFix error in comment.
mike [Mon, 17 Oct 2005 13:44:52 +0000 (13:44 +0000)]
Fix error in comment.

18 years agoRevert "const char*" arguments to their original const-qualified
mike [Mon, 17 Oct 2005 13:42:43 +0000 (13:42 +0000)]
Revert "const char*" arguments to their original const-qualified
types, now that I have modified the typemap to support this.
Add "opaquechar" and "struct datachunk" types, used to get binary data
strings in and out of C respectively.
These are used by ZOOM_connection_option_setl() and
ZOOM_connection_option_getl() respectively.
Implemented ZOOM_connection_error_x().
Tested ZOOM_connection_{errcode,errmsg,addinfo)().
Tested ZOOM_options_create().
Add explicit "UNTESTED" markers to not-yet-tested functions.

18 years agoClearer commentary.
mike [Thu, 13 Oct 2005 16:01:48 +0000 (16:01 +0000)]
Clearer commentary.

18 years agoFormatting.
mike [Thu, 13 Oct 2005 13:48:08 +0000 (13:48 +0000)]
Formatting.

18 years agoRemove extraneous output.
mike [Thu, 13 Oct 2005 13:33:55 +0000 (13:33 +0000)]
Remove extraneous output.

18 years agoCorrect number of tests.
mike [Thu, 13 Oct 2005 13:32:00 +0000 (13:32 +0000)]
Correct number of tests.

18 years agoThree more functions tested:
mike [Thu, 13 Oct 2005 13:30:52 +0000 (13:30 +0000)]
Three more functions tested:
options_create(), connection_create(), connection_connect()

18 years agoTweak commentary -- no functional changes.
mike [Thu, 13 Oct 2005 13:27:27 +0000 (13:27 +0000)]
Tweak commentary -- no functional changes.

18 years agoDistribute lib/Net/Z3950.pm
mike [Thu, 13 Oct 2005 13:12:16 +0000 (13:12 +0000)]
Distribute lib/Net/Z3950.pm

18 years agoNew
mike [Thu, 13 Oct 2005 13:11:17 +0000 (13:11 +0000)]
New

18 years agoAdd diag_str() test.
mike [Wed, 12 Oct 2005 16:13:34 +0000 (16:13 +0000)]
Add diag_str() test.

18 years agoAdd diag_str() function.
mike [Wed, 12 Oct 2005 16:13:20 +0000 (16:13 +0000)]
Add diag_str() function.

18 years agoTested ZOOM_diag_str()
mike [Wed, 12 Oct 2005 16:13:00 +0000 (16:13 +0000)]
Tested ZOOM_diag_str()

18 years agoRemove repeated "my".
mike [Wed, 12 Oct 2005 14:36:17 +0000 (14:36 +0000)]
Remove repeated "my".

18 years agoExplicitly print number of records found.
mike [Wed, 12 Oct 2005 14:35:23 +0000 (14:35 +0000)]
Explicitly print number of records found.

18 years agoRemove AutoLoader, which we don't use, and all the associated gunk.
mike [Wed, 12 Oct 2005 14:35:01 +0000 (14:35 +0000)]
Remove AutoLoader, which we don't use, and all the associated gunk.
Remove reference to @ISA.
Add constant definitions for error-codes and event-types.
Fill in PerlDoc documentation.

18 years agoAdded enumerations ZOOM::Error and ZOOM::Event.
mike [Wed, 12 Oct 2005 14:33:40 +0000 (14:33 +0000)]
Added enumerations ZOOM::Error and ZOOM::Event.
Fixed ZOOM::Exception access methods -- were calling themselves!

18 years agoRenamed t/Net-Z3950-ZOOM.t to t/1-Net-Z3950-ZOOM.t
mike [Wed, 12 Oct 2005 14:32:42 +0000 (14:32 +0000)]
Renamed t/Net-Z3950-ZOOM.t to t/1-Net-Z3950-ZOOM.t
Added t/2-ZOOM.t
Added "samples" directory and its contents.

18 years agoNow runs in parallel to 1-Net-Z3950-ZOOM.t: 11 tests, no output.
mike [Wed, 12 Oct 2005 14:31:53 +0000 (14:31 +0000)]
Now runs in parallel to 1-Net-Z3950-ZOOM.t: 11 tests, no output.

18 years agoException-handling.
mike [Wed, 12 Oct 2005 13:44:05 +0000 (13:44 +0000)]
Exception-handling.

18 years agoProper test-suite -- eleven tests, no unauthorised output.
mike [Wed, 12 Oct 2005 13:26:26 +0000 (13:26 +0000)]
Proper test-suite -- eleven tests, no unauthorised output.

18 years agoDo not print to STDERR.
mike [Wed, 12 Oct 2005 11:56:27 +0000 (11:56 +0000)]
Do not print to STDERR.

18 years agoNew
mike [Wed, 12 Oct 2005 11:53:00 +0000 (11:53 +0000)]
New

18 years agoNew
mike [Wed, 12 Oct 2005 09:48:21 +0000 (09:48 +0000)]
New

18 years agoRename Net-Z3950-ZOOM.t to 1-Net-Z3950-ZOOM.t
mike [Wed, 12 Oct 2005 09:48:05 +0000 (09:48 +0000)]
Rename Net-Z3950-ZOOM.t to 1-Net-Z3950-ZOOM.t

18 years agouse strict;
mike [Wed, 12 Oct 2005 09:47:11 +0000 (09:47 +0000)]
use strict;
(Temporarily) use local server.
Check that preferredRecordSyntax option can be get()ted after set()ting.

18 years agoTested ZOOM_connection_option_get()
mike [Wed, 12 Oct 2005 09:45:36 +0000 (09:45 +0000)]
Tested ZOOM_connection_option_get()

18 years agoFix typo in ResultSet::_rs()
mike [Wed, 12 Oct 2005 09:44:46 +0000 (09:44 +0000)]
Fix typo in ResultSet::_rs()
Use ZOOM::Record->_new() instead of "indirect object" syntax (why?!)
Connection::option_set() replaced by option() which gets and sets.
Add _rec(), render() and raw() methods to ZOOM::Record.
Add destroy() methods for Connection and ResultSet.
Attempts to use destroy()ed Connection and ResultSet cause die()
Clearer commentary on naming conventions.

18 years agoInitial, unfinished, version.
mike [Tue, 11 Oct 2005 16:23:32 +0000 (16:23 +0000)]
Initial, unfinished, version.

18 years agoAdd ZOOM_ prefixes removed from function calls.
mike [Tue, 11 Oct 2005 15:48:15 +0000 (15:48 +0000)]
Add ZOOM_ prefixes removed from function calls.
Use a query that gets a hit on the testing database.
connection_option_set() now used to request USMARC records.
Each record is now fetched and displayed in two forms: "render"
(human-readable) and "raw" (not).

18 years agoNote that connection_new(), connection_destroy(), connection_error(),
mike [Tue, 11 Oct 2005 15:44:33 +0000 (15:44 +0000)]
Note that connection_new(), connection_destroy(), connection_error(),
connection_search_pqf(), destroy_size(), resultset_resultset() are now
all tested.
Fix connection_option_set(), record_get(), resultset_record()

18 years agoconst char * is now a T_PV.
mike [Tue, 11 Oct 2005 15:40:14 +0000 (15:40 +0000)]
const char * is now a T_PV.
As originally autogenerated by h2xs, this file gave the type of "const
char *" as T_PTROBJ -- a pointer to an opaque object.  This prevented
the return value of ZOOM_record_get() from being translated into a
Perl string.  Instead, I am using T_PV, which works properly.

18 years agoAdd "PREFIX=ZOOM_"
mike [Tue, 11 Oct 2005 12:11:17 +0000 (12:11 +0000)]
Add "PREFIX=ZOOM_"
This is nice, as it means all those ZOOM-C functions mapped into the
Net::Z3950::ZOOM Perl module no longer have "ZOOM_" prefixes.

18 years agoConnect to test-server on indexdata.com, not a local one.
mike [Tue, 11 Oct 2005 11:44:48 +0000 (11:44 +0000)]
Connect to test-server on indexdata.com, not a local one.

18 years agoIgnore META.yml
mike [Tue, 11 Oct 2005 11:40:41 +0000 (11:40 +0000)]
Ignore META.yml

18 years agoCVS Id.
mike [Tue, 11 Oct 2005 11:35:37 +0000 (11:35 +0000)]
CVS Id.