Markdown
[ZOOM-Perl-moved-to-github.git] / Changes
1 Revision history for Perl extension Net::Z3950::ZOOM.
2
3 1.30  Wed Mar 12 14:08:26 CET 2014
4         - Update test 19-events.t and 29-events.t
5           Events check: allow for multiple Connect events
6         - Require YAZ 4 or later
7         - Require perl-XML-LibXML-XPathContext on RHEL/CentOS v5 only.
8
9 1.29  Mon Oct 14 10:41:28 CEST 2013
10         - Debian/RPM packages now built with YAZ 5.
11         - Do not depend on libyaz4-devel in Debian package
12           (only required for building)  
13         - Include the useful example program
14           samples/zoom-delete-records which is installed as part of
15           "make install".
16         - Fix documentation of connect() method so that it doesn't
17           imply that it can accept options.
18
19 1.28  Fri Oct 15 13:34:41 BST 2010
20         - In the test-suite, provide a more explicit report when the
21           scan identity test (display term == term) fails.
22         - The displayTerm==term assertion is now case-insensitive, as
23           it ought always to have been: previously, the test-suite
24           relied on a specific implementaton detail of the
25           test-server, which has recently changed causing extraneous
26           test-suite failures.
27         - Also in the test-suite for scan, remove the test that all
28           title-terms are in the general-term list, an assumption that
29           should never have been made.
30
31 1.27  Wed Aug 11 17:13:07 BST 2010
32         - Support for Index Data build procedures, including making
33           Debian/Ubuntu and Red Hat packages from clean tarballs.
34         - No upstream changes -- packaging only.
35
36 1.26  Tue Jun  8 16:43:29 BST 2010
37         - Tweak the test-suite so that it works correctly on Fedora
38           Core 12 (2.6.31.5-127.fc12.x86_64).  For some reason,
39           attempts to connect to a non-existent host can fail with
40           ERROR_TIMEOUT and no addinfo, rather than ERROR_CONNECT and
41           the hostname as addinfo; and the number of terms to request
42           in a scan needs to be explicitly specified in an option.
43         - Add "debclean" target to generated Makefile.
44         - Remove extraneous and misleading old CVS IDs.
45
46 1.25  Fri Feb 19 15:04:26 GMT 2010
47         - Fix test-suite not to run the "packages" tests against
48           test.indexdata.com, which has gone away, but against
49           z3950.indexdata.com, like the other tests.  A new server
50           runs on a different port for these tests.
51         - Rename zdump.pl to zoomdump, and add it to the set of
52           programs installed.
53         - Switch to git for version control.  Not that it should make
54           any difference to the Perl distribution.
55         - Add semicolons to the commented-out sample configuration
56           lines for Windows in Makefile.PL
57
58 1.24  Tue Jun 17 11:31:08 BST 2008
59         - When Net::Z3950::ZOOM::record_get() fetches an XML record
60           because the requested OPAC record is empty,  it now wraps it
61           in an OPAC wrapper, making the difference invisible to
62           application code.
63
64 1.23  Mon Jun  9 14:53:15 BST 2008
65         - Net::Z3950::ZOOM::record_get() now patches around the
66           problem of naughty servers that refuse to return anything
67           for an OPAC record when there is no non-bibliographic part,
68           by falling back on requesting an XML record in such cases.
69
70 1.22  Tue May 27 14:00:12 BST 2008
71         - Fix Net::Z3950::ZOOM::record_get() to use a struct datachunk
72           _when_ appropriate, e.g. for "render" not for "database" and
73           "syntax".
74         - Remove the unused $len reference parameter from record_get()
75           and $record->get(): this is now used in the underlying C
76           layer to make Perl strings of the right length, and is of no
77           value higher up the stack.
78         - Fix a bug in ZOOM::ResultSet::records(): requests including
79           the last record in the set were incorrectly declined.
80         - Better Debian packaging: use "make debian" to create new
81           "debian/output" directory containing .deb package file,
82           changes file, etc.
83         - Clear up a few warnings in ZOOM.xs
84         - Minor documentation improvements.
85
86 1.21  Mon Oct 29 12:07:25 GMT 2007
87         - In the "typemap" file's handling of opaquechar*, use STRLEN
88           type for _unused_len in instead of unsigned: this prevents a
89           (possibly serious) warning on some 64-bit architectures,
90           although applications that do not use the option_binary()
91           methods will be safe with the previous release.
92         - Add explicit "#include <yaz/log.h>" to ZOOM.xs in the hope
93           of preventing undeclared-function warnings that some users
94           have reported but which I have been unable to reproduce.
95
96 1.20  Fri Sep 21 17:51:55 BST 2007
97         - Add new sample program, samples/zoom/zoomscan.pl
98         - samples/zoom/zoomtst1.pl now accepts arbitrary options at
99           the end of the command-line, so that (for example) you can
100           specify a non-USMARC record syntax.
101         - Add new functions Net::Z3950::ZOOM::diag_srw_str() and
102           ZOOM::diag_srw_str() to map SRW diagnostic codes into
103           human-readable messages.
104         - ZOOM::Exception() constructor uses diag_srw_str() to fill in
105           the error message, if it is undefined, for SRW errors.
106         - The render() method of ZOOM::Exception(), and therefore the
107           overloaded stringifying operator, deals with exceptions that
108           have no message().
109         - Corrected the scan parts of the test-suite that use CQL so
110           that they explicitly perform client-side CQL compilation and
111           send the resulting Type-1 query.  Previously, these tests
112           were (accidentally) requesting that CQL be sent as-is to the
113           server, but this mistake was being masked by an error in
114           older versions of ZOOM-C that compiled client-side anyway!
115
116 1.19  Mon Jul  9 14:09:31 BST 2007
117         - Add $conn->exception() method.
118         - Set version number for Net::Z3950 to 0.99 -- less than the
119           1.0 version number that will be used when it successfully
120           emulates the old Net::Z3950 module, but superseding the last
121           release, 0.51, of that module.
122         - Include samples/zoom/zdump.pl in distribution.
123         - Add "irspy" namespace to samples/zoom/zselect
124
125 1.18  Mon Feb 26 14:57:48 GMT 2007
126         - When a connection is in asynchronous mode, failing
127           operations (search, scan, etc.) no longer throw exceptions.
128           This is because the event-loop in asychronous applications
129           needs to check for errors anyway, in case the server has
130           returned high-level diagnostics such as "unsupported use
131           attribute".  So this check within the event-loop is now the
132           only place where error-checking need be done.
133         - Add new public ZOOM::Connection() function, check(), which
134           throws an exception if an error is pending (even if the
135           connection is asynchronous).
136         - New YAZ logging level, "zoom_check", notes when errors are
137           detected and either left unreported (asynchronous
138           connections) or thrown as exception (synchronous).
139
140 1.17  Thu Feb 22 20:38:45 GMT 2007
141         - Change Net::Z3950::ZOOM::event() to allocate its array of
142           connection pointers dynamically, so there is no longer an
143           arbitrary limit of 100.
144         - New connection-level option "_check_debug" emits messages on
145           standard error when checking a connection find an error that
146           is about to result in throwing an exception.  There is no
147           reason for you ever to use this, though -- pretend you don't
148           know about it.
149
150 1.16  Tue Jan 16 11:18:34 GMT 2007
151         - Require version 2.1.41 or better of YAZ, so that Init
152           Response options are available using
153           $conn->option("init_opt_sort") etc.
154         - Include samples/zoom/zhello.pl to exercise these options.
155         - Add ZOOM_connection_peek_event() and $conn->peek_event().
156         - Require YAZ version 2.1.45, which is the first to provide
157           ZOOM_connection_peek_event().
158
159 1.15  Fri Dec  1 14:17:49 GMT 2006
160         - ZOOM::Error::INIT is renamed to ZOOM::Error::ZINIT, since
161           INIT is a reserved word in Perl.  In version 1.14 and
162           earlier, "require ZOOM" would fail, saying "Too late to run
163           INIT block", and "use ZOOM" would result in
164           ZOOM::Error::INIT having a value equal to its name (why?!)
165           rather than, as intended, Net::Z3950::ZOOM::ERROR_INIT.
166         - Belatedly added documentation for $rec->error() and
167           $rec->exception().
168
169 1.14  Tue Nov 28 17:33:07 GMT 2006
170         - Add $record->error() to return non-surrogate diagnostics,
171           and $record->exception() to return the same information
172           wrapped in a ZOOM::Exception object.
173         - Requires YAZ 2.1.40, which provides ZOOM_record_error().
174         - $conn->error_x() now returns the error-code when called in
175           scalar context, rather than the diagnostic set name.
176
177 1.13  Sat Nov  4 16:47:00 GMT 2006
178         - ZOOM::Connection::create() may now take either a single
179           argument, which is a ZOOM::Options object, or any even
180           number of argument (including zero), which are key => value
181           pairs of options to set.
182         - ZOOM::Connection::new(), having been refactored to use
183           create(), can now also take a ZOOM::Options argument.
184         - Documentation now includes information on specifying SRW,
185           SRU-over-GET and SRU-over-POST connections.
186         - ZOOM::ResultSet::record() throws a diagnostic if asked to
187           retrieve records out of range for the result-set.
188         - All tests against indexdata.com are now explicitly against
189           z3950.indexdata.com, as the identity of the former name has
190           recently changed.
191
192 1.12  (NEVER PUBLICLY RELEASED; these changes are included in 1.13)
193         - Include the useful example program samples/zoom/zselect,
194           which is installed as part of "make install".
195         - Add ZOOM_connection_is_idle() and $conn->is_idle().
196         - Require YAZ version 2.1.35, which is the first to provide
197           ZOOM_connection_is_idle().
198         - Fix bug in ZOOM::Connection class code that made the
199           difficult to subclass -- when called as
200           $class->SUPER::new(@_), the constructor blessed the new
201           object into ZOOM::Connection rather than info the subclass.
202
203 1.11  Thu Aug 31 16:47:53 BST 2006
204         - Require YAZ version 2.1.17, which has important ZOOM-C
205           bug-fixes.
206         - Do not use "-Wdeclaration-after-statement" compiler option,
207           since this supported only by GCC (and only recent versions).
208
209 1.10  Thu Jun 15 16:42:47 BST 2006
210         - No functional changes, but use Adam's modified API to
211           ZOOM_query_ccl2rpn().  This incompatible change means that
212           RELEASE 1.09 WILL NOT BUILD against any recent YAZ.
213
214 1.09  Tue Jun 13 17:44:43 2006
215         - Add new function Net::Z3950::ZOOM::query_ccl2rpn(), for
216           client-side CCL compilation.
217         - Add new ZOOM::Query::CCL2RPN class, encapsulating CCL
218           compiler functionality as a Query subclass.  This allows
219           client-side CCL to be used for both search and scan.
220         - Add two new error-codes, CCL_CONFIG and CCL_PARSE,
221           returned by the client-side CCL facilities.
222         - Supply a sample CCL profile file: samples/ccl/default.bib,
223           copied from the same-named file distributed with YAZ.
224         - The test-scripts t/12-query.t and t/22-query.t are extended
225           to also test client-side CCL searching.
226         - The test-scripts t/15-scan.t and t/25-scan.t are extended
227           to also test client-side CCL scanning.
228         - Documentation updated to describe use of CCL.
229         - Add a nice, simple update client: samples/zoom/update.pl
230
231 1.08  Thu May 11 22:40:41 BST 2006
232         - Requires version 2.1.11 of YAZ, not 2.0.11.  This is a
233           bugfix: the old reliance on 2.0.11 was merely a typo.
234
235 1.07  Thu May 11 17:45:37 BST 2006
236         - Makefile.PL checks for at least version 2.1.11 of YAZ, and
237           refuses to build if it's not present.  Thanks to "gregor"
238           (an otherwise anonymous CPAN tester) for notifying me of the
239           previously poor reporting of failure when running against an
240           earlier YAZ.
241         - No changes to functionality or documentation.
242
243 1.06  Wed Apr 19 21:11:52 BST 2006
244         - Avoid mixed statement/declaration in ZOOM.xs.  *sigh*  Why
245           the heck GCC allows this by default I will never understand.
246         - Add (commented out) OPTIMIZE option to Makefile.PL, to turn
247           on -Wdeclaration-after-statement, which makes mixed
248           statement/declaration illegal.
249
250 1.05  Wed Apr 12 13:31:27 BST 2006
251         - Implementation of asynchronous events!  The Net::Z3950::ZOOM
252           interface provides this through the event, last_event() and
253           event_str() functions.  The ZOOM interface provides it
254           through the ZOOM::event() and ZOOM:event_str() functions,
255           and the ZOOM::Connection class's last_event() function.
256         - New sample programs added illustrating both asynchronous
257           interfaces: samples/net-z3950-zoom/zoomtst3.pl and
258           samples/zoom/zoomtst3.pl respectively.  Additional sample
259           programs "async.pl" and "trivial-async.pl" for the ZOOM
260           interface only, the latter being a "shortest possible
261           broadcast search application".
262         - Added documentation on writing asynchronous applications.
263         - Added test-scripts "t/19-events.t" and "t/29-event.t" for
264           events on an asynchronous connection.
265         - Fix ZOOM::Connection::new so that options are handled in
266           accordance with the documentation: applied _before_ the
267           connection is forged, so that "async" and similar options
268           can take effect.
269
270 1.04  Mon Apr  3 14:56:11 BST 2006
271         - The ZOOM-Perl layer now provides access to the underlying
272           ZOOM-C's character-translation functionality, through new
273           optional arguments to ZOOM::Record's render() and raw()
274           methods, and a new underlying get() method.
275
276 1.03  Thu Mar  9 12:55:23 GMT 2006
277         - Allow additional key => value pairs as arguments to the
278           ZOOM::Connectoion constructor; these are added as Connection
279           options before the protocol connection is forged.
280
281 1.02  Thu Mar  9 11:36:55 GMT 2006
282         - Add interface to yaz_version().
283         - Emit big warning at startup time if YAZ version is less than
284           2.0.11 (which is what ZOOM-Perl 1.02 requires) unless the
285           file /tmp/ignore-ZOOM-YAZ-version-mismatch exists.
286         - Fix incorrect ZOOM-package URL in documentation.
287         - Fix typo ("createdb" package) in documentation.
288         - The ZOOM::Connection constructor may now be called with only
289           a single argument (host-string) and does not require a
290           dummy port-number argument.
291
292 1.01  Thu Dec 22 14:13:34 GMT 2005
293         - Place some CODE: chunks in "ZOOM.xs" inside curly brackets
294           so that the declarations they begin with are at the start of
295           the block.  This avoid mixed code/declarations.  (The
296           "correct" solution is to use INIT: clauses in the XS file,
297           but they don't seem to work: the code in them is slapped
298           down right next to the CODE:, so declarations are not
299           acceptable there either.)
300         - Add new function Net::Z3950::ZOOM::connection_scan1(), which
301           uses a query object to indicate the start-term.  This opens
302           the way for using CQL queries for scanning once the
303           underlying ZOOM-C code supports this.
304         - NOTE BACKWARDS-INCOMPATIBLE CHANGE: The ZOOM::Connection
305           method scan() is renamed scan_pqf(), and a new scan() method
306           is introduced which calls the underlying scan1() function.
307           Thus the scan()/scan_pqf() dichotomy is consistent with that
308           between search()/search_pqf().
309         - The tests t/15-scan.t and t/25-scan.t now also test for
310           scanning by CQL query.  To support these tests, a new files
311           is added to the distribution, "samples/cql/pqf.properties"
312         - Remove nonsensical clause about CQL sort-specifications from
313           the documentation.
314         - Add new function Net::Z3950::ZOOM::query_cql2rpn(), for
315           client-side CQL compilation.
316         - Add new ZOOM::Query::CQL2RPN class, encapsulating CQL
317           compiler functionality as a Query subclass.
318         - Add two new error-codes, CQL_PARSE and CQL_TRANSFORM,
319           returned by the client-side CQL facilities.
320         - The test-scripts t/12-query.t and t/22-query.t are extended
321           to also test client-side CQL compilation.
322         - Add all the yaz_log*() functions within the Net::Z3950::ZOOM
323           namespace. 
324         - Add new ZOOM::Log class for logging, providing aliases for
325           the functions in the Net::Z3950::ZOOM layer.
326         - Add diagnostic set to rendering of Exception objects.
327         - Documentation added for CQL compilation and logging.
328
329 1.00  Wed Dec 14 11:18:33 GMT 2005
330         - First distributed version.
331
332 0.01  Fri Oct  7 16:14:20 2005
333         - original version; created by h2xs 1.23 with options
334                 --name=Net::Z3950::ZOOM --compat-version=5.8.0 \
335                 --omit-constant --skip-exporter --skip-ppport \
336                 --autogen-xsubs yaz/zoom.h -lyaz -lxml2
337
338 --
339
340 To be done in future releases:
341         - Complete, test and document "update.pl"
342         - Create old-style Net::Z3950 compatibility layer.
343         - Fix memory leaks in callback functions for option sets.
344         - Fix limitation that option-set callback functions must be
345           specified as strings containing package-qualified function
346           names.
347