X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=ztest.pl;h=22393729b35b964e9c3b6e6bb6c7ad2110988013;hb=b0ff44d2746db5d63f69513ac2879a30bfe69e1f;hp=10ca66766b03305a40f9a09346bd962afc564e6a;hpb=0d2c0f1cdeaec0675cbd0d2463858ecf834effec;p=simpleserver-moved-to-github.git
diff --git a/ztest.pl b/ztest.pl
index 10ca667..2239372 100755
--- a/ztest.pl
+++ b/ztest.pl
@@ -70,6 +70,7 @@ sub my_scan_handler {
my $term = $args->{TERM};
my $entries = [
{ TERM => 'Number 1',
+ DISPLAY_TERM => 'Number .1',
OCCURRENCE => 10 },
{ TERM => 'Number 2',
OCCURRENCE => 8 },
@@ -94,6 +95,7 @@ sub my_scan_handler {
$args->{ENTRIES} = $entries;
$args->{STATUS} = Net::Z3950::SimpleServer::ScanPartial;
print "Welcome to scan....\n";
+ $args->{EXTRA_RESPONSE_DATA} = 'b';
print "You scanned for term '$term'\n";
}
@@ -136,6 +138,7 @@ sub my_search_handler {
$args->{OUTPUTFACETS} = $facets;
+ $args->{EXTRA_RESPONSE_DATA} = 'b';
$args->{HITS} = $hits;
$session->{$set_id} = $data;
$session->{__HITS} = $hits;