- Add new function Net::Z3950::ZOOM::query_ccl2rpn(), for
[ZOOM-Perl-moved-to-github.git] / lib / Net / Z3950 / ZOOM.pm
index fda0107..e45a470 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: ZOOM.pm,v 1.16 2006-04-07 12:05:41 mike Exp $
+# $Id: ZOOM.pm,v 1.23 2006-06-13 16:44:21 mike Exp $
 
 package Net::Z3950::ZOOM; 
 
@@ -6,17 +6,17 @@ use 5.008;
 use strict;
 use warnings;
 
-our $VERSION = '1.05';
+our $VERSION = '1.09';
 
 require XSLoader;
 XSLoader::load('Net::Z3950::ZOOM', $VERSION);
 
 my($vs, $ss) = ("x" x 100, "x" x 100); # allocate space for these strings
 my $version = Net::Z3950::ZOOM::yaz_version($vs, $ss);
-if ($version < 0x02010B && ! -f "/tmp/ignore-ZOOM-YAZ-version-mismatch") {
+if ($version < 0x020115 && ! -f "/tmp/ignore-ZOOM-YAZ-version-mismatch") {
     warn <<__EOT__;
 *** WARNING!
-ZOOM-Perl requires at least version 2.0.11 of YAZ, but is currently
+ZOOM-Perl requires at least version 2.1.21 of YAZ, but is currently
 running against only version $vs (sys-string '$ss').
 Some things may not work.
 __EOT__
@@ -40,6 +40,8 @@ sub ERROR_UNSUPPORTED_QUERY { 10009 }
 sub ERROR_INVALID_QUERY { 10010 }
 sub ERROR_CQL_PARSE { 10011 }
 sub ERROR_CQL_TRANSFORM { 10012 }
+sub ERROR_CCL_CONFIG { 10013 }
+sub ERROR_CCL_PARSE { 10014 }
 
 # Event types, as returned from connection_last_event()
 sub EVENT_NONE { 0 }
@@ -52,7 +54,7 @@ sub EVENT_SEND_APDU { 6 }
 sub EVENT_RECV_APDU { 7 }
 sub EVENT_RECV_RECORD { 8 }
 sub EVENT_RECV_SEARCH { 9 }
-sub EVENT_RECV_END { 10 }      # In YAZ 2.1.17 and later
+sub EVENT_END { 10 }           # In YAZ 2.1.17 and later
 
 
 =head1 NAME
@@ -111,8 +113,8 @@ sub event_str {
        return "receive record";
     } elsif ($code == EVENT_RECV_SEARCH) {
        return "receive search";
-    } elsif ($code == EVENT_RECV_END) {
-       return "receive end";
+    } elsif ($code == EVENT_END) {
+       return "end";
     }
     return "impossible event " . $code;
 }