@@ -, +, @@ --- .../prog/en/modules/catalogue/detail.tt | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2931,8 +2931,25 @@ [% IF CAN_user_editcatalogue_edit_items %] { data: function( row, type, val, meta ) { - let result = 'Edit + Delete'; // FIXME Add links - return result; + let nodes = ''; + if ( can_edit_items_from[row.holding_library_id] ){ + [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %] + nodes += '
'; + nodes += ' Edit'.format(row.biblio_id, row.item_id); + nodes += ' '; + nodes += '
'; + [% ELSE %] + nodes += ' Edit'.format(row.biblio_id, row.item_id); + [% END %] + } + [% IF bundlesEnabled %] + // FIXME How do we handle that correctly? + //nodes += ''.format(row.bundled, row.bundled_lost); + [% END %] + + return nodes; }, className: "actions", searchable: false, --