[open-ils-commits] [GIT] Evergreen ILS branch rel_2_9 updated. 7d6f447ad6ff796d5112ba616f09d6ad25a69961

Evergreen Git git at git.evergreen-ils.org
Tue May 24 13:54:38 EDT 2016


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_2_9 has been updated
       via  7d6f447ad6ff796d5112ba616f09d6ad25a69961 (commit)
      from  0491c69c64a1478a548f41ddb827b527e15fca86 (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 7d6f447ad6ff796d5112ba616f09d6ad25a69961
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Mon May 23 10:29:09 2016 -0400

    LP#1584801: fix tagging of previous circs in metarecord search results
    
    This patch fixes a bug where previously-checked-out items were not
    indicated as such in search results when doing a metarecord search.
    
    To test:
    
    [1] Ensure that the opac.search.tag_circulated_items library setting
        is enabled and that you are testing with a user that has opted-in
        to retaining circ history.
    [2] Make a couple loans to that user.
    [3] Log into the public catalog using that user.
    [4] Perform a catalog search, choosing search terms such that
        the previously-loaned items appear in results.
    [5] Verify that "I have checked this item out before" is displayed
        on the relevant hits.
    [6] Click the "Group Formats and Editions" checkbox; note that
        after the page refreshes, previously-borrowed hits are /not/
        tagged.
    [7] Apply the patch and restart the open-ils.search service.
    [8] Repeat step 6; verify that this time previously-borrowed hits
        are tagged.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

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 777ef7e..bc9b9c2 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
@@ -1472,8 +1472,8 @@ sub tag_circulated_records {
 
     if ($metabib) {
         $query = {
-            select   => { mmsm => [{ column => 'metarecord', alias => 'tagme' }] },
-            from     => 'mmsm',
+            select   => { mmrsm => [{ column => 'metarecord', alias => 'tagme' }] },
+            from     => 'mmrsm',
             where    => { source => { in => $query } },
             distinct => 1
         };

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list