[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5787a0ffb34f19f432fac8a9c112b8d2170501f0

Evergreen Git git at git.evergreen-ils.org
Wed Oct 5 15:43:56 EDT 2011


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  5787a0ffb34f19f432fac8a9c112b8d2170501f0 (commit)
      from  b808c3860cc23513aaa061398a0b4f7b5895bbc5 (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 5787a0ffb34f19f432fac8a9c112b8d2170501f0
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Oct 5 15:16:17 2011 -0400

    Avoid collecting facet data for non-facet fields
    
    If a config.metabib_field (Admin -> Server Admin -> MARC Search/Facet
    Fields) starts out as a facet field but is later changed, data for that
    facet can still bubble up since it has already been extracted.  This
    patch prevents facets for config.metabib_field entries whose
    facet_field=false from getting collected/cached for search results.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
index ac8046b..3423932 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
@@ -1512,7 +1512,7 @@ sub cache_facets {
             },
             where   => {
                 '+mmrsm' => { $count_field => $results },
-                '+cmf'   => { field_class => { 'not in' => $ignore } }
+                '+cmf'   => { field_class => { 'not in' => $ignore }, facet_field => 't' }
             }
         }
     );

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Search/Biblio.pm       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list