[open-ils-commits] [GIT] Evergreen ILS branch master updated. 3a14a5078160139d6e724dba0f6c295e6ba1f86c

Evergreen Git git at git.evergreen-ils.org
Fri Sep 1 17:05:30 EDT 2017


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  3a14a5078160139d6e724dba0f6c295e6ba1f86c (commit)
      from  a3f854db8c407ccec37ac5728779544c4cd8feca (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 3a14a5078160139d6e724dba0f6c295e6ba1f86c
Author: Cesar Velez <cesar.velez at equinoxinitiative.org>
Date:   Fri Aug 11 17:52:13 2017 -0400

    LP#1599894 - OPAC disable Add to MyList when doing metabib search
    
    Since adding a result to MyList yields to a random title
    (due to bad id) being added to temp. lists, disable MyList if
    metabib search is on, i.e "Group formats and editions"
    checkbox is checked.
    
    Signed-off by: Cesar Velez <cesar.velez at equinoxinitiative.org>
    
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    
    Conflicts:
    	Open-ILS/src/templates/opac/parts/result/table.tt2

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 6cc9437..b95ffc0 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -372,6 +372,7 @@ sub load_rresults {
     $ctx->{records} = [];
     $ctx->{search_facets} = {};
     $ctx->{hit_count} = 0;
+    $ctx->{is_meta} = $is_meta;
 
     # Special alternative searches here.  This could all stand to be cleaner.
     if ($cgi->param("_special")) {
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index ae77275..f9e710f 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -418,6 +418,7 @@ END;
                                                         </div>
                                                         [%- END -%]
 
+                                                    [% IF !ctx.is_meta %]
                                                         <div class="results_aux_utils result_util">
                                                         [% IF !ctx.is_staff %]
                                                             [%  IF ctx.user;
@@ -440,6 +441,7 @@ END;
                                                             [% END %]
                                                         [% END %]
                                                         </div>
+                                                    [% END %]
                                                         [% IF ENV.OILS_CONTENT_CAFE_USER %]
                                                         [% ident = attrs.isbn_clean || attrs.upc %]
                                                         <div class="results_aux_utils result_util">

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    1 +
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list