From 5c1241034bfa858913d7d540535c89c126dc4a3e Mon Sep 17 00:00:00 2001 From: hdl Date: Mon, 20 Jun 2005 10:14:12 +0000 Subject: [PATCH] Displaying search results count --- acqui/histsearch.pl | 4 +++- koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl | 2 ++ .../default/en/members/member-quicksearch-results.tmpl | 2 ++ koha-tmpl/intranet-tmpl/default/en/members/member.tmpl | 2 ++ members/member.pl | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index 168b0e6c8b..4bffebfbe1 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -23,7 +23,9 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); my $order_loop= &histsearch($title,$author,$name); -$template->param(suggestions_loop => $order_loop, + +$template->param(numresults => scalar(@$order_loop), + suggestions_loop => $order_loop, title => $title, author => $author, name => $name, diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl index 252ab689c9..096bc18ec3 100644 --- a/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl @@ -1,6 +1,8 @@

Order search

+

orders were found. +

diff --git a/koha-tmpl/intranet-tmpl/default/en/members/member-quicksearch-results.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/member-quicksearch-results.tmpl index 94248369d1..b75938e7ac 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/member-quicksearch-results.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/member-quicksearch-results.tmpl @@ -4,6 +4,8 @@

Member Search

+

records match you search. +

 
diff --git a/koha-tmpl/intranet-tmpl/default/en/members/member.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/member.tmpl index b471c2ef61..c838caed18 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/member.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/member.tmpl @@ -17,6 +17,8 @@
You Searched for
+

members were found. +

 
diff --git a/members/member.pl b/members/member.pl index 1c4565c667..55b6090eb2 100755 --- a/members/member.pl +++ b/members/member.pl @@ -105,6 +105,7 @@ for (my $i=0; $i < $count; $i++){ $template->param( member => $member, + numresults => $count, resultsloop => \@resultsdata ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5
Card