[open-ils-commits] r8854 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Search

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 3 00:34:01 EST 2008


Author: miker
Date: 2008-03-03 00:01:59 -0500 (Mon, 03 Mar 2008)
New Revision: 8854

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
fixing sort and sort_dir in the advanced query syntax

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-03-03 04:44:33 UTC (rev 8853)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-03-03 05:01:59 UTC (rev 8854)
@@ -496,6 +496,10 @@
             $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};



More information about the open-ils-commits mailing list