LP#1599894 - OPAC disable Add to MyList when doing metabib search
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 11 Aug 2017 21:52:13 +0000 (17:52 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 1 Sep 2017 21:02:59 +0000 (17:02 -0400)
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@equinoxinitiative.org>

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/templates/opac/parts/result/table.tt2

Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
Open-ILS/src/templates/opac/parts/result/table.tt2

index 6cc9437..b95ffc0 100644 (file)
@@ -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")) {
index ae77275..f9e710f 100644 (file)
@@ -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">