[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. 57193060ce3ffc26b9b753a94d581f89f1ea739d

Evergreen Git git at git.evergreen-ils.org
Tue Mar 14 11:45:53 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_11 has been updated
       via  57193060ce3ffc26b9b753a94d581f89f1ea739d (commit)
      from  45f3a75b182a58546db5edacdd622b45973adb2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 57193060ce3ffc26b9b753a94d581f89f1ea739d
Author: Christine Morgan <cmorgan at noblenet.org>
Date:   Wed Mar 1 11:12:02 2017 -0500

    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 <cmorgan at noblenet.org>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    
    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 fc03026..535134b 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 @@
             </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') %]" />
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index 02fe684..a7f4c2b 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;
                                                         </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 %]

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/summary.tt2    |    4 +++-
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list