From 0c9754c15a5fafbad6818f84a58b6565e51cde72 Mon Sep 17 00:00:00 2001 From: Christine Morgan Date: Wed, 1 Mar 2017 11:12:02 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 4 +++- Open-ILS/src/templates/opac/parts/result/table.tt2 | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 0f09daaa48..6dedd1a461 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 960d8c652f..79f9105e89 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -382,6 +382,7 @@ END;
[%- END -%]
+ [% IF !ctx.is_staff %] [% IF ctx.user; INCLUDE "opac/parts/bookbag_actions.tt2"; %] @@ -400,6 +401,7 @@ END; [% label %] [% END %] + [% END %]
[% IF ENV.OILS_CONTENT_CAFE_USER %] [% ident = attrs.isbn_clean || attrs.upc %] -- 2.11.0