X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=catalogue%2Fsearch.pl;h=902318a91dada668418294d258681eba29283f3b;hb=990e315471c8c7995985ba9588f6dfc49ef37211;hp=014d4f6e34077b234bd5c9b0d9d572924b0f4a9a;hpb=31c6cd032bd897e8a57da511f2fcc16182705091;p=koha.git diff --git a/catalogue/search.pl b/catalogue/search.pl index 014d4f6e34..902318a91d 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -534,6 +534,9 @@ for (my $i=0;$i<@servers;$i++) { } exit; } + + + if ($hits) { $template->param(total => $hits); my $limit_cgi_not_availablity = $limit_cgi; @@ -580,6 +583,9 @@ for (my $i=0;$i<@servers;$i++) { } } + + + # now, show twenty pages, with the current one smack in the middle else { for (my $i=$current_page_number; $i<=($current_page_number + 20 );$i++) { @@ -597,10 +603,20 @@ for (my $i=0;$i<@servers;$i++) { previous_page_offset => $previous_page_offset) unless $pages < 2; $template->param( next_page_offset => $next_page_offset) unless $pages eq $current_page_number; } + + + + + # no hits else { $template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc); } + + + + + } # end of the if local # asynchronously search the authority server