lp1629075: Hide Permalink in Staff Client
authorChristine Morgan <cmorgan@noblenet.org>
Thu, 29 Sep 2016 20:50:24 +0000 (16:50 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 3 Nov 2016 14:55:17 +0000 (10:55 -0400)
This will hide the permalink in the staff client catalog.

Signed-off-by: Christine Morgan <cmorgan@noblenet.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2

index b2bd5e5..4fa0ba8 100644 (file)
             [%- IF ctx.refworks.enabled == 'true' %]
                 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
             [%- END %]
-            <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>
+                       [% 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">