X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FSearch%2FBib1.pm;h=56a43fba523ef55bc538ce7e15028813cafd1405;hb=86374b0502e33990e2ef9fd929395b435d084b6e;hp=93bcd7af0ecdf2fbaf562ececbe4eec6a4170b1d;hpb=a8be7db5305925fc720f3dac7e6afc8fba7b9e60;p=irspy-moved-to-github.git
diff --git a/lib/ZOOM/IRSpy/Test/Search/Bib1.pm b/lib/ZOOM/IRSpy/Test/Search/Bib1.pm
index 93bcd7a..56a43fb 100644
--- a/lib/ZOOM/IRSpy/Test/Search/Bib1.pm
+++ b/lib/ZOOM/IRSpy/Test/Search/Bib1.pm
@@ -1,4 +1,4 @@
-# $Id: Bib1.pm,v 1.5 2006-10-06 11:33:08 mike Exp $
+# $Id: Bib1.pm,v 1.6 2006-10-11 16:47:23 mike Exp $
# See the "Main" test package for documentation
@@ -35,12 +35,26 @@ sub found {
my $n = $task->{rs}->size();
$conn->log("irspy_test", "search found $n record", $n==1 ? "" : "s");
- my $rec = $conn->record();
- $rec->append_entry("irspy:status", "" .
- isodate(time()) . "");
+ ### Need to get the BIB-1 attribute into this callback
+ $conn->record()->append_entry("irspy:status",
+ "" .
+ isodate(time()) .
+ "");
return ZOOM::IRSpy::Status::TASK_DONE;
}
+sub error {
+ my($conn, $task, $exception) = @_;
+
+ $conn->log("irspy_test", "error: $exception");
+ $conn->record()->append_entry("irspy:status",
+ "" .
+ isodate(time()) .
+ "");
+ return ZOOM::IRSpy::Status::TASK_DONE;
+}
+
+
1;