Fix "Journal Title" search hack user/dbs/fix_jtitle_search
authorDan Scott <dscott@laurentian.ca>
Mon, 30 Jul 2012 16:46:11 +0000 (12:46 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 30 Jul 2012 16:46:11 +0000 (12:46 -0400)
Prepending bib_level:s to the query made the search parser very angry,
which seems out of sync with the documented search grammar... but for a
quick fix, just append bib_level:s to the query instead.

<insert "I swear this worked in testing" here>

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 36f3436..682b3e3 100644 (file)
@@ -49,7 +49,7 @@ sub _prepare_biblio_search_basics {
 
         # Hack for journal title - completed!
         if ($q eq 'jtitle') {
-            $query = "bib_level:s $query";
+            $query = "$query bib_level:s";
         }
 
         $bool = ($bool and $bool eq 'or') ? '||' : '&&';