1 # $Id: Retrieve.pm,v 1.2 2006-10-25 17:16:14 mike Exp $
3 package ZOOM::IRSpy::Task::Retrieve;
10 our @ISA = qw(ZOOM::IRSpy::Task);
14 ZOOM::IRSpy::Task::Retrieve - a searching task for IRSpy
29 my($index0) = shift();
31 my $this = $class->SUPER::new(@_);
33 $this->{index0} = $index0;
42 my $conn = $this->conn();
44 my $index0 = $this->{index0};
45 $this->irspy()->log("irspy_task", $conn->option("host"),
46 " retrieving record $index0 from $rs");
47 $rs->records($index0, 1, 0); # requests record
54 my $syntax = $this->{options}->{preferredRecordSyntax};
55 $syntax = defined $syntax ? "'$syntax'" : "undef";
56 return ref($this) . "(" . $this->{index0} . ", $syntax)";
59 use overload '""' => \&render;
68 Mike Taylor, E<lt>mike@indexdata.comE<gt>
70 =head1 COPYRIGHT AND LICENSE
72 Copyright (C) 2006 by Index Data ApS.
74 This library is free software; you can redistribute it and/or modify
75 it under the same terms as Perl itself, either Perl version 5.8.7 or,
76 at your option, any later version of Perl 5 you may have available.