From: Bill Erickson Date: Mon, 24 Sep 2018 15:52:04 +0000 (-0400) Subject: CAT-188 Copy table view/edit links browser support X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c049ddaaf194b3124528a9501cce9fea46038d98;p=working%2FEvergreen.git CAT-188 Copy table view/edit links browser support Signed-off-by: Bill Erickson --- diff --git a/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 b/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 index c9e6cf5af1..63f8a44190 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 @@ -166,17 +166,26 @@ [% copy_info.call_number_label | html %] [% copy_info.barcode | html %] [% IF ctx.is_staff %] - [% l('view') %] - [%# if the user can edit copies, show the copy edit link %] - [% IF ctx.has_perm('UPDATE_COPY', copy_info.circ_lib) - OR ctx.has_perm('UPDATE_COPY', copy_info.call_number_owning_lib) %] - | - - [% l(' edit') %] - - [% END %] + [%- IF ctx.is_browser_staff %] + [% l('view') %] + [% IF ctx.has_perm('UPDATE_COPY', copy_info.circ_lib) + OR ctx.has_perm('UPDATE_COPY', copy_info.call_number_owning_lib) %] + | + [% l('edit') %] + [% END %] + [% ELSE %] + [% l('view') %] + + [% IF ctx.has_perm('UPDATE_COPY', copy_info.circ_lib) + OR ctx.has_perm('UPDATE_COPY', copy_info.call_number_owning_lib) %] + | + + [% l(' edit') %] + + [% END %] + [% END %] [% END %] [% copy_info.copy_location | html %]