1 # $Id: Record.pm,v 1.5 2006-07-21 11:30:51 mike Exp $
3 package ZOOM::IRSpy::Record;
14 ZOOM::IRSpy::Record - record describing a target for IRSpy
28 my($target, $zeerex) = @_;
30 if (!defined $zeerex) {
31 $zeerex = _empty_zeerex_record($target);
34 my $parser = new XML::LibXML();
37 zeerex => $parser->parse_string($zeerex),
42 sub _empty_zeerex_record {
45 ### Doesn't recognise SRU/SRW URLs
46 my($host, $port, $db) = ZOOM::IRSpy::_parse_target_string($target);
49 <explain xmlns="http://explain.z3950.org/dtd/2.0/">
50 <serverInfo protocol="Z39.50" version="1995">
53 <database>$db</database>
66 Mike Taylor, E<lt>mike@indexdata.comE<gt>
68 =head1 COPYRIGHT AND LICENSE
70 Copyright (C) 2006 by Index Data ApS.
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself, either Perl version 5.8.7 or,
74 at your option, any later version of Perl 5 you may have available.