Release 1.25
[ZOOM-Perl-moved-to-github.git] / lib / Net / Z3950 / ZOOM.pm
index ed8d02f..c4e64f9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: ZOOM.pm,v 1.38 2008-06-09 13:49:32 mike Exp $
+# $Id: ZOOM.pm,v 1.42 2008-09-29 16:22:25 mike Exp $
 
 package Net::Z3950::ZOOM; 
 
@@ -6,7 +6,7 @@ use 5.008;
 use strict;
 use warnings;
 
-our $VERSION = '1.22';
+our $VERSION = '1.25';
 
 require XSLoader;
 XSLoader::load('Net::Z3950::ZOOM', $VERSION);
@@ -155,7 +155,6 @@ sub record_get {
 
     my $simpletype = $type;
     $simpletype =~ s/;.*//;
-    warn "record_get('$rec', '$simpletype' -> '$type')\n";
     if (grep { $type eq $_ } qw(database syntax schema)) {
        return record_get_string($rec, $type);
     } else {
@@ -165,8 +164,10 @@ sub record_get {
            if ($newtype !~ s/.*?;/xml;/) {
                $newtype = "xml";
            }
-           warn "fallback('$rec', '$newtype')\n";
            $val = record_get_binary($rec, $newtype);
+           $val = ("<opacRecord>\n  <bibliographicRecord>\n" . $val .
+                   "  </bibliographicRecord>\n</opacRecord>");
+
        }
        return $val;
     }