X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FRecord%2FOPAC.pm;h=40452011861f6da786b609e6712feb85122fd06b;hp=2009750aa6bfe9e5cad2f11dbda1ac7c2e929a06;hb=bedf9cabf4e20c3deb051f7adb0ad88252a27df4;hpb=b52e41236c43f33b04e8372c38d6ec3b7c708e1f diff --git a/lib/ZOOM/IRSpy/Test/Record/OPAC.pm b/lib/ZOOM/IRSpy/Test/Record/OPAC.pm index 2009750..4045201 100644 --- a/lib/ZOOM/IRSpy/Test/Record/OPAC.pm +++ b/lib/ZOOM/IRSpy/Test/Record/OPAC.pm @@ -12,7 +12,7 @@ use ZOOM::IRSpy::Test; our @ISA = qw(ZOOM::IRSpy::Test); my @queries = ( - "\@attr 1=4 mineralazsdfdsf", + "\@attr 1=4 mineral", "\@attr 1=4 computer", "\@attr 1=44 mineral", # Smithsonian doesn't support AP 4! "\@attr 1=1016 water", # Connector Framework only does 1016 @@ -33,6 +33,7 @@ sub start { my $class = shift(); my($conn) = @_; + #$conn->option(apdulog => 1); $conn->option(preferredRecordSyntax => "opac"); $conn->irspy_search_pqf($queries[0], { queryindex => 0 }, \%options, ZOOM::Event::ZEND, \&completed_search, @@ -75,7 +76,7 @@ sub completed_search { # that those records be included in the Search Response using # piggybacking. Was it done? my $rec = $task->{rs}->record_immediate(2); - my $ok = defined $rec; + my $ok = defined $rec && $rec->error() == 0; $task->{rs}->destroy(); $conn->record()->store_result('multiple_opac', 'ok' => $ok);