[Koha-patches] [PATCH] (bug #3584) use default index, if not specified

LAURENT Henri-Damien henridamien.laurent at biblibre.com
Mon Sep 7 20:50:48 CEST 2009


Nahuel ANGELINETTI a écrit :
> This select a default index to search on, if there is none.
> ---
>  C4/Search.pm |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/C4/Search.pm b/C4/Search.pm
> index 21eb767..aa9fb99 100644
> --- a/C4/Search.pm
> +++ b/C4/Search.pm
> @@ -929,6 +929,10 @@ sub buildQuery {
>                  my $operand = $operands[$i];
>                  my $index   = $indexes[$i];
>  
> +                if(not $index){
> +                    $index = 'kw';
> +                } 
> +
>                  # Add index-specific attributes
>                  # Date of Publication
>                  if ( $index eq 'yr' ) {
>   
This patch is not to be applied.
The solution it brings is partial.
A work on Queries building wil be sent later.




More information about the Koha-patches mailing list