[open-ils-commits] [GIT] Evergreen ILS branch master updated. 54374902d89b5f11e22ef2c6e10433aa2e94aa51

Evergreen Git git at git.evergreen-ils.org
Tue Mar 14 11:19:06 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, master has been updated
       via  54374902d89b5f11e22ef2c6e10433aa2e94aa51 (commit)
      from  bb5d651c44d0f3e04a358ef3e0ab176f7ad5802d (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 54374902d89b5f11e22ef2c6e10433aa2e94aa51
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>

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index b125b03..33af39f 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -80,44 +80,46 @@
             </div>
             [%- END -%]
             <div class="rdetail_aux_utils toggle_list">
-			[%  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"); 
-			%]
-				<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 %]
-			</div>
-			<div class="rdetail_aux_utils toggle_list">
-					[% IF ctx.mylist.size %]
-						[%- IF ctx.user; %]
-						<a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Lists') %]" />[% l(' View My Lists') %]</a>
-						[%- ELSE %]
-						<a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Temporary List') %]" />[% l(' View My Temporary List') %]</a>
-						[%- END %]
-					[% END %]
-				</div>
-				<div class="rdetail_aux_utils">
-					<img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
-					<a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
-					<a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
-				</div>
-				[%- IF ctx.refworks.enabled == 'true' %]
-					[%- INCLUDE 'opac/parts/record/refworks.tt2' %]
-				[%- END %]
-                         [% IF !ctx.is_staff %]
-				<div class="rdetail_aux_utils share_record">
-					<a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
-						 <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
-						 [% l('Permalink') %]
-					</a>
-				</div>
-			[% 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");
+            %]
+                <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 toggle_list">
+                     [% IF ctx.mylist.size %]
+                        [%- IF ctx.user; %]
+                        <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Lists') %]" />[% l(' View My Lists') %]</a>
+                        [%- ELSE %]
+                        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Temporary List') %]" />[% l(' View My Temporary List') %]</a>
+                        [%- END %]
+                    [% END %]
+                </div>
+                <div class="rdetail_aux_utils">
+                    <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
+                    <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
+                    <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
+                </div>
+                [%- IF ctx.refworks.enabled == 'true' %]
+                    [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
+                [%- END %]
+            [% IF !ctx.is_staff %]
+                <div class="rdetail_aux_utils share_record">
+                    <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
+                         <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
+                         [% l('Permalink') %]
+                    </a>
+                </div>
+            [% END %]
             [%- IF ctx.is_staff %]
             <div class="rdetail_aux_utils clear_addedcontent_cache">
                 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index ddfeacb..989f7e0 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -422,6 +422,7 @@ END;
                                                         </div>
 [%- END -%]
                                                         <div class="results_aux_utils result_util">
+                                                        [% IF !ctx.is_staff %]
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
                                                             %]
@@ -440,6 +441,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    |   78 ++++++++++----------
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 +
 2 files changed, 42 insertions(+), 38 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list