show cart controls on results when logged in user/gmcharlt/lp1721575_batch_actions
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Jun 2018 22:16:56 +0000 (18:16 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Jun 2018 22:16:56 +0000 (18:16 -0400)
Open-ILS/src/templates/opac/parts/result/table.tt2

index 36c26dc..48f2fec 100644 (file)
@@ -476,10 +476,7 @@ END;
                                                     [% IF !ctx.is_meta %]
                                                         <div class="results_aux_utils result_util">
                                                         [% IF !ctx.is_staff %]
-                                                            [%  IF ctx.user;
-                                                                INCLUDE "opac/parts/bookbag_actions.tt2";
-                                                            %]
-                                                            [%  ELSE;
+                                                            [%
                                                                 addhref = mkurl(ctx.opac_root _ '/mylist/add',
                                                                         {record => rec.id, anchor => 'record_' _ rec.id}, 1);
                                                                 delhref = mkurl(ctx.opac_root _ '/mylist/delete',
@@ -499,7 +496,10 @@ END;
                                                                 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
                                                                 [% l("Remove from cart") %]
                                                             </a>
-                                                            [% END %]
+                                                            [%  IF ctx.user;
+                                                                INCLUDE "opac/parts/bookbag_actions.tt2";
+                                                                END;
+                                                            %]
                                                         [% END %]
                                                         </div>
                                                     [% END %]