[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 8c0dd0a784f62e93790252d25996b69b61e6c09d

Evergreen Git git at git.evergreen-ils.org
Fri Feb 21 14:29:59 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, rel_3_3 has been updated
       via  8c0dd0a784f62e93790252d25996b69b61e6c09d (commit)
      from  0a87c9f53a43b80808f3103d0990d19aaf0f3d77 (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 8c0dd0a784f62e93790252d25996b69b61e6c09d
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