projects
/
simpleserver-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EXTRA_RESPONSE_DATA in ztest.pl example
[simpleserver-moved-to-github.git]
/
ztest.pl
diff --git
a/ztest.pl
b/ztest.pl
index
c1e648f
..
2239372
100755
(executable)
--- a/
ztest.pl
+++ b/
ztest.pl
@@
-95,6
+95,7
@@
sub my_scan_handler {
$args->{ENTRIES} = $entries;
$args->{STATUS} = Net::Z3950::SimpleServer::ScanPartial;
print "Welcome to scan....\n";
$args->{ENTRIES} = $entries;
$args->{STATUS} = Net::Z3950::SimpleServer::ScanPartial;
print "Welcome to scan....\n";
+ $args->{EXTRA_RESPONSE_DATA} = '<scanextra>b</scanextra>';
print "You scanned for term '$term'\n";
}
print "You scanned for term '$term'\n";
}
@@
-137,6
+138,7
@@
sub my_search_handler {
$args->{OUTPUTFACETS} = $facets;
$args->{OUTPUTFACETS} = $facets;
+ $args->{EXTRA_RESPONSE_DATA} = '<searchextra>b</searchextra>';
$args->{HITS} = $hits;
$session->{$set_id} = $data;
$session->{__HITS} = $hits;
$args->{HITS} = $hits;
$session->{$set_id} = $data;
$session->{__HITS} = $hits;