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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-9 / +8 lines)
Lines 325-332 Link Here
325
                    node += '<div class="cover-slider">';
325
                    node += '<div class="cover-slider">';
326
                    row.cover_image_ids.forEach(id => {
326
                    row.cover_image_ids.forEach(id => {
327
                        node += '<div class="cover-image local-coverimg">';
327
                        node += '<div class="cover-image local-coverimg">';
328
                        node += '<a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=%s&amp;imagenumber=%s" title="Local cover image">'.format(id, id);
328
                        node += '<a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=%s&amp;imagenumber=%s" title="%s">'.format(id, id, _("Local cover image"));
329
                        node += '<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=%s" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&amp;imagenumber=%s" />'.format(id, id);
329
                        node += '<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=%s" alt="%s" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&amp;imagenumber=%s" />'.format(id, id, _("Local cover image"));
330
                        node += '</a>';
330
                        node += '</a>';
331
                        node += '</div>';
331
                        node += '</div>';
332
                    });
332
                    });
Lines 690-696 Link Here
690
                orderable: false,
690
                orderable: false,
691
                render: function (data, type, row, meta) {
691
                render: function (data, type, row, meta) {
692
                    if (row.analytics_count == 0) return ""
692
                    if (row.analytics_count == 0) return ""
693
                    return '<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=%s">%s analytics</a>'.format(row.item_id, row.analytics_count);
693
                    return '<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=%s">%s</a>'.format(row.item_id, _("%s analytics").format(row.analytics_count));
694
                }
694
                }
695
            },
695
            },
696
            {
696
            {
Lines 698-704 Link Here
698
                searchable: false,
698
                searchable: false,
699
                orderable: false,
699
                orderable: false,
700
                render: function (data, type, row, meta) {
700
                render: function (data, type, row, meta) {
701
                    return '<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=%s&amp;hostitemnumber=%s">Create analytics</a>'.format(row.biblio_id, row.item_id);
701
                    return '<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=%s&amp;hostitemnumber=%s">%s</a>'.format(row.biblio_id, row.item_id, _("Create analytics"));
702
                }
702
                }
703
            },
703
            },
704
            [% END %]
704
            [% END %]
Lines 745-761 Link Here
745
                    if ( can_edit_items_from[row.holding_library_id] ){
745
                    if ( can_edit_items_from[row.holding_library_id] ){
746
                        [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
746
                        [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
747
                            nodes += '<div class="btn-group">';
747
                            nodes += '<div class="btn-group">';
748
                            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> Edit</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);
748
                            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"));
749
                            nodes += ' <ul class="dropdown-menu pull-right">';
749
                            nodes += ' <ul class="dropdown-menu pull-right">';
750
                            nodes += '  <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=%s&amp;filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>'.format(row.item_id);
750
                            nodes += '  <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=%s&amp;filetype=image"><i class="fa fa-upload"></i> %s</a></li>'.format(row.item_id, _("Upload image"));
751
                            nodes += ' </ul>';
751
                            nodes += ' </ul>';
752
                            nodes += '</div>';
752
                            nodes += '</div>';
753
                        [% ELSE %]
753
                        [% ELSE %]
754
                            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> Edit</a>'.format(row.biblio_id, row.item_id);
754
                            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>'.format(row.biblio_id, row.item_id, _("Edit"));
755
                        [% END %]
755
                        [% END %]
756
                    }
756
                    }
757
                    [% IF bundlesEnabled %]
757
                    [% IF bundlesEnabled %]
758
                        nodes += '<button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle (%s|%s)</button>'.format(escape_str(row.bundle_items_not_lost_count), escape_str(row.bundle_items_lost_count));
758
                        nodes += '<button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> %s</button>'.format(_("Manage bundle (%s|%s)").format(row.bundle_items_not_lost_count, row.bundle_items_lost_count));
759
                    [% END %]
759
                    [% END %]
760
760
761
                    return nodes;
761
                    return nodes;
762
- 

Return to bug 33568