From 4018976810ad749d879261d3950d54008d2ba5e4 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 30 Jul 2012 12:46:11 -0400 Subject: [PATCH] Fix "Journal Title" search hack 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. Signed-off-by: Dan Scott --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index 36f3436320..682b3e3e8d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -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') ? '||' : '&&'; -- 2.11.0