[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 0c9754c15a5fafbad6818f84a58b6565e51cde72

Evergreen Git git at git.evergreen-ils.org
Tue Mar 14 11:47:22 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_10 has been updated
       via  0c9754c15a5fafbad6818f84a58b6565e51cde72 (commit)
      from  c532b0a376be74859824b211685b99e99102a7b5 (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 0c9754c15a5fafbad6818f84a58b6565e51cde72
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 0f09daa..6dedd1a 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 960d8c6..79f9105 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;
                                                         </div>
 [%- END -%]
                                                         <div class="results_aux_utils result_util">
+                                                        [% IF !ctx.is_staff %]
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
                                                             %]
@@ -400,6 +401,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