From: Christine Morgan Date: Wed, 1 Mar 2017 16:12:02 +0000 (-0500) Subject: lp1629016: Hide List Option In Staff Client X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=57193060ce3ffc26b9b753a94d581f89f1ea739d;p=Evergreen.git lp1629016: Hide List Option In Staff Client This will hide the option to add to Lists when in the staff client. Signed-off-by: Christine Morgan Signed-off-by: Terran McCanna Signed-off-by: Kathy Lussier Conflicts: Open-ILS/src/templates/opac/parts/record/summary.tt2 --- diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index fc03026f97..535134b721 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -56,18 +56,20 @@ [%- END -%]
+ [% 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"); %] [% label %] [% END %] + [% END %]
[% l('Print / Email Actions Image') %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 02fe684ec4..a7f4c2b6ef 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -387,6 +387,7 @@ END;
[%- END -%]
+ [% IF !ctx.is_staff %] [% IF ctx.user; INCLUDE "opac/parts/bookbag_actions.tt2"; %] @@ -405,6 +406,7 @@ END; [% label %] [% END %] + [% END %]
[% IF ENV.OILS_CONTENT_CAFE_USER %] [% ident = attrs.isbn_clean || attrs.upc %]