Displaying search results count
authorhdl <hdl>
Mon, 20 Jun 2005 10:14:12 +0000 (10:14 +0000)
committerhdl <hdl>
Mon, 20 Jun 2005 10:14:12 +0000 (10:14 +0000)
acqui/histsearch.pl
koha-tmpl/intranet-tmpl/default/en/acqui/histsearch.tmpl
koha-tmpl/intranet-tmpl/default/en/members/member-quicksearch-results.tmpl
koha-tmpl/intranet-tmpl/default/en/members/member.tmpl
members/member.pl

index 168b0e6..4bffebf 100755 (executable)
@@ -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,
index 252ab68..096bc18 100644 (file)
@@ -1,6 +1,8 @@
 <!-- TMPL_INCLUDE NAME="acquisitions-top.inc" -->
 <div id="mainbloc">
        <h1 class="acquisition">Order search</h1>
+       <p class="resultcount"><!-- TMPL_VAR Name ="numresults" --> orders were found.
+        </p>
        <table>
                <tr>
                        <th class="acquisition">&nbsp;</th>
index 9424836..b75938e 100644 (file)
@@ -4,6 +4,8 @@
 <h1>Member Search</h1>
 
 <div class="bloc100">
+       <p><!-- TMPL_VAR Name ="numresults" --> records match you search.
+        </p>
        <table>
                <tr>
                        <th>&nbsp;</th>
index b471c2e..c838cae 100644 (file)
@@ -17,6 +17,8 @@
 
 <div class="bloc100">
        <div class="bloctitle">You Searched for <!-- TMPL_VAR NAME="member" --></div>
+       <p class="resultcount"><!-- TMPL_VAR Name ="numresults" --> members were found.
+        </p>
        <table>
                <tr>
                        <th>Card</th>
index 1c4565c..55b6090 100755 (executable)
@@ -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;