View | Details | Raw Unified | Return to bug 7620
Collapse All | Expand All

(-)a/opac/opac-search.pl (-1 / +7 lines)
Lines 670-676 for (my $i=0;$i<@servers;$i++) { Link Here
670
            $template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number;
670
            $template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number;
671
         }
671
         }
672
        # no hits
672
        # no hits
673
        # scdlyon3 extracting keywords in case of relaunching search
673
        else {
674
        else {
675
            (my $query_kw=$query_desc)=~s/ and|or / /g;
676
            my @query_kw=($query_kw=~ /([-\w]+\b)(?:[^,:]|$)/g);
677
            $query_kw=join('+',@query_kw);
678
	    my $nohits=C4::Context->preference('OPACNoResultsFound');
679
	    $nohits=~s/query_kw/$query_kw/g;
680
	    $template->param( 'OPACNoResultsFound' =>$nohits);
674
            $template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc);
681
            $template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc);
675
        }
682
        }
676
    } # end of the if local
683
    } # end of the if local
677
- 

Return to bug 7620