From: Cesar Velez Date: Fri, 11 Aug 2017 21:52:13 +0000 (-0400) Subject: LP#1599894 - OPAC disable Add to MyList when doing metabib search X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2909d09bafc960f093fbce0dcd5d603a84fc43f9;p=Evergreen.git 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 Signed-off-by: Kathy Lussier Conflicts: Open-ILS/src/templates/opac/parts/result/table.tt2 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 48c218a05b..b6faa32628 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -353,6 +353,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 a7f4c2b6ef..b073f2be95 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -386,6 +386,8 @@ END; alt=""/>[% l('Place Hold') %] [%- END -%] + + [% IF !ctx.is_meta %]
[% IF !ctx.is_staff %] [% IF ctx.user; @@ -408,6 +410,7 @@ END; [% END %] [% END %]
+ [% END %] [% IF ENV.OILS_CONTENT_CAFE_USER %] [% ident = attrs.isbn_clean || attrs.upc %]