fix sort and dir adv search syntax
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 31 May 2008 19:45:10 +0000 (19:45 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 31 May 2008 19:45:10 +0000 (19:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9754 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 1671861..0b5b269 100644 (file)
@@ -493,6 +493,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};