View | Details | Raw Unified | Return to bug 37300
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-3 / +2 lines)
Lines 300-306 Link Here
300
                searchable: false,
300
                searchable: false,
301
                orderable: false,
301
                orderable: false,
302
                render: function (data, type, row, meta) {
302
                render: function (data, type, row, meta) {
303
                    if ( can_edit_items_from[row.holding_library_id] ){
303
                    if ( can_edit_items_from[row.home_library_id] ){
304
                        if ( items_selection[tab_id].includes(row.item_id) ) {
304
                        if ( items_selection[tab_id].includes(row.item_id) ) {
305
                            return '<input type="checkbox" value="%s" name="itemnumber" checked />'.format(row.item_id);
305
                            return '<input type="checkbox" value="%s" name="itemnumber" checked />'.format(row.item_id);
306
                        } else {
306
                        } else {
Lines 752-758 Link Here
752
            {
752
            {
753
                data: function( row, type, val, meta ) {
753
                data: function( row, type, val, meta ) {
754
                    let nodes = '';
754
                    let nodes = '';
755
                    if ( can_edit_items_from[row.holding_library_id] ){
755
                    if ( can_edit_items_from[row.home_library_id] ){
756
                        [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
756
                        [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
757
                            nodes += '<div class="btn-group">';
757
                            nodes += '<div class="btn-group">';
758
                            nodes += ' <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=%s&itemnumber=%s#edititem"><i class="fa-solid fa-pencil"></i> %s</a><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>'.format(row.biblio_id, row.item_id, _("Edit"));
758
                            nodes += ' <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=%s&itemnumber=%s#edititem"><i class="fa-solid fa-pencil"></i> %s</a><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>'.format(row.biblio_id, row.item_id, _("Edit"));
759
- 

Return to bug 37300