From 3a14a5078160139d6e724dba0f6c295e6ba1f86c Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Fri, 11 Aug 2017 17:52:13 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 1 + Open-ILS/src/templates/opac/parts/result/table.tt2 | 2 ++ 2 files changed, 3 insertions(+) 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 6cc94373b8..b95ffc0557 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 ae77275f78..f9e710f9b7 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; [%- END -%] + [% IF !ctx.is_meta %]
[% IF !ctx.is_staff %] [% IF ctx.user; @@ -440,6 +441,7 @@ END; [% END %] [% END %]
+ [% END %] [% IF ENV.OILS_CONTENT_CAFE_USER %] [% ident = attrs.isbn_clean || attrs.upc %]
-- 2.43.2