lp1629016: Hide List Option In Staff Client
authorChristine Morgan <cmorgan@noblenet.org>
Wed, 1 Mar 2017 16:12:02 +0000 (11:12 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 14 Mar 2017 15:44:01 +0000 (11:44 -0400)
This will hide the option to add to Lists when in the staff client.

Signed-off-by: Christine Morgan <cmorgan@noblenet.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/templates/opac/parts/record/summary.tt2

Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index fc03026..535134b 100644 (file)
             </div>
             [%- END -%]
             <div class="rdetail_aux_utils toggle_list">
+        [% IF !ctx.is_staff %]
             [%  IF ctx.user;
                 INCLUDE "opac/parts/bookbag_actions.tt2";
             %]
             [%  ELSE;
                 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
-                label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); 
+                label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
             %]
                 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
                     <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
                     [% label %]
                 </a>
             [% END %]
+        [% END %]
             </div>
             <div class="rdetail_aux_utils">
                 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
index 02fe684..a7f4c2b 100644 (file)
@@ -387,6 +387,7 @@ END;
                                                         </div>
 [%- END -%]
                                                         <div class="results_aux_utils result_util">
+                                                        [% IF !ctx.is_staff %]
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
                                                             %]
@@ -405,6 +406,7 @@ END;
                                                                 [% label %]
                                                             </a>
                                                             [% END %]
+                                                        [% END %]
                                                         </div>
                                                         [% IF ENV.OILS_CONTENT_CAFE_USER %]
                                                         [% ident = attrs.isbn_clean || attrs.upc %]