Lines 736-742
for (my $i=0;$i<@servers;$i++) {
Link Here
|
736 |
$template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number; |
736 |
$template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number; |
737 |
} |
737 |
} |
738 |
# no hits |
738 |
# no hits |
|
|
739 |
# extracting keywords in case of relaunching search |
739 |
else { |
740 |
else { |
|
|
741 |
(my $query_kw=$query_desc)=~s/ and|or / /g; |
742 |
$query_kw = Encode::decode_utf8($query_kw); |
743 |
my @query_kw=($query_kw=~ /([-\w]+\b)(?:[^,:]|$)/g); |
744 |
$query_kw=join('+',@query_kw); |
745 |
my $nohits=C4::Context->preference('OPACNoResultsFound'); |
746 |
$nohits=~s/{QUERY_KW}/$query_kw/g; |
747 |
$template->param( 'OPACNoResultsFound' =>$nohits); |
740 |
$template->param( |
748 |
$template->param( |
741 |
searchdesc => 1, |
749 |
searchdesc => 1, |
742 |
query_desc => $query_desc, |
750 |
query_desc => $query_desc, |
743 |
- |
|
|