diff --git a/C4/Koha.pm b/C4/Koha.pm index 72321537bf..2fe06cfca9 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -791,8 +791,8 @@ sub displaySortby { value => "1=32 <i", label => "   Acquisition Date: Oldest to Newest" }, - { value => "1=36 <i", label => "Title (A-Z)" }, - { value => "1=36 >i", label => "Title (Z-A)" }, + { value => "1=4 <i", label => "Title (A-Z)" }, + { value => "1=4 >i", label => "Title (Z-A)" }, ]; for my $hash (@$sort_by_loop) { diff --git a/C4/Search.pm b/C4/Search.pm index 1af36e31ea..526bc9d2f0 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -238,7 +238,7 @@ sub getRecords { $expanded_facet, $branches, $query_type, $scan ) = @_; - + warn "Query : $koha_query"; my @servers = @$servers_ref; my @sort_by = @$sort_by_ref; @@ -1427,7 +1427,7 @@ sub NZorder { # # ORDER BY title # - } elsif ($ordering =~ /1=36/) { + } elsif ($ordering =~ /1=4/) { # the title is in the biblionumbers string, so we just need to build a hash, sort it and return my %result; foreach (split /;/,$biblionumbers) { @@ -1441,7 +1441,7 @@ sub NZorder { # sort the hash and return the same structure as GetRecords (Zebra querying) my $result_hash; my $numbers=0; - if ($ordering eq '1=36 {'RECORDS'}[$numbers++] = $result{$key}; }