fixing sort and sort_dir in the advanced query syntax
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Mar 2008 05:01:59 +0000 (05:01 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Mar 2008 05:01:59 +0000 (05:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8854 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index fa3ba56..2ebaf4a 100644 (file)
@@ -496,6 +496,10 @@ sub multiclass_query {
             $arghash->{language} = [] unless $arghash->{language};
             push(@{$arghash->{language}}, $value);
 
+        } elsif($type =~ /^sort/o) {
+            # sort and sort_dir modifiers
+            $arghash->{$type} = $value;
+
         } else {
             # append the search term to the term under construction
             $search->{$type} =  {} unless $search->{$type};