From: Victoria Lewis Date: Tue, 22 Mar 2016 16:58:09 +0000 (-0700) Subject: CAT-49 Copy View/Edit Links in Catalog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3502e6407b7fe2af3aa704bfbe8bd7db55f10225;p=working%2FEvergreen.git CAT-49 Copy View/Edit Links in Catalog Add view and edit link next to each copy in the copy gird. Cross-ported this feature. https://bugs.launchpad.net/evergreen/+bug/1346421 Signed-off-by: Victoria Lewis On branch dev/catalyst-vlewis/CAT-49-copy_view_edit_links_in_catalog modified: var/templates_kcls/opac/parts/record/summary.tt2 --- 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 ad76cd3649..412d514f55 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/record/summary.tt2 @@ -164,7 +164,21 @@ class="classic_link">[% org_name %] [% copy_info.call_number_label | html %] - [% copy_info.barcode | 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 %] + [% END %] + [% copy_info.copy_location | html %] [% IF ctx.is_staff %]