From 0d99dcf1496aba84aa0f8bfd9ee764dfe7b0d5e4 Mon Sep 17 00:00:00 2001 From: rangi Date: Mon, 13 Mar 2006 23:17:26 +0000 Subject: [PATCH] Testing sorting result sets --- C4/SearchMarc.pm | 9 +++++++++ misc/zebra/usmarc/collection.abs | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/C4/SearchMarc.pm b/C4/SearchMarc.pm index a0c809914f..8870433d83 100644 --- a/C4/SearchMarc.pm +++ b/C4/SearchMarc.pm @@ -245,6 +245,7 @@ sub catalogsearch { } # warn "$i : ".@$tags[$i]. "=> $tag / $subfield = ".$tagslib->{$tag}->{$subfield}->{kohafield}; } +# $query.= " ordered title"; warn "QUERY : $query"; my $Zconn = C4::Context->Zconn or die "unable to set Zconn"; my $q = new ZOOM::Query::CQL2RPN( $query, $Zconn); @@ -255,6 +256,14 @@ sub catalogsearch { } else { warn "$numresults records found, retrieving them (max 80)\n"; } + # sort result set + # in theory this should sort by title + if ($rs->sort("yaz", "1=4