[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0bff4ed1efbcd6dedd8398b5080ec0dec2b2cf7c
Evergreen Git
git at git.evergreen-ils.org
Fri Feb 21 14:29:12 EST 2020
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 0bff4ed1efbcd6dedd8398b5080ec0dec2b2cf7c (commit)
from beab6b4daa6409dfd0425ea166ac68bbef6f8d3a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0bff4ed1efbcd6dedd8398b5080ec0dec2b2cf7c
Author: Jeff Davis <jeff.davis at bc.libraries.coop>
Date: Mon Sep 9 16:11:44 2019 -0700
LP#1839684: avoid repeating qtype prefix in query
Signed-off-by: Jeff Davis <jeff.davis at bc.libraries.coop>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Signed-off-by: Gina Monti <gmonti at biblio.org>
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 c21566a628..459e3089b6 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -67,7 +67,7 @@ sub _prepare_biblio_search_basics {
$query = "bib_level(s) $query";
}
- $query = "$qtype:$query" unless $qtype eq 'keyword' and $i == 0;
+ $query = "$qtype:$query" unless ($query =~ /^$qtype:/ or ($qtype eq 'keyword' and $i == 0));
$bool = ($bool and $bool eq 'or') ? '||' : '&&';
$full_query = $full_query ? "($full_query $bool $query)" : $query;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list