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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-5 / +15 lines)
Lines 508-513 Link Here
508
                        [% ELSE %]
508
                        [% ELSE %]
509
                            var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=";
509
                            var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=";
510
                        [% END %]
510
                        [% END %]
511
                        [% IF(record_type == 'auth') %]
512
                            var record_edit_url = "/cgi-bin/koha/authorities/authorities.pl?authid=";
513
                        [% ELSE %]
514
                            var record_edit_url = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=";
515
                        [% END %]
511
516
512
                        var additional_details = "";
517
                        var additional_details = "";
513
                        if( aData['author'] ){
518
                        if( aData['author'] ){
Lines 559-568 Link Here
559
                                '<a href="' + aData['diff_url'] + '">' + _("View") + '</a>'
564
                                '<a href="' + aData['diff_url'] + '">' + _("View") + '</a>'
560
                            );
565
                            );
561
                        }
566
                        }
562
                        $('td:eq(6)', nRow).html(
567
                        if (aData['matched']) {
563
                            '<a target="_blank" href="' + record_details_url
568
                            $('td:eq(6)', nRow).html(
564
                            + aData['matched'] + '">' + aData['matched'] + '</a>'
569
                                '<a class="btn btn-default btn-xs" target="_blank" href="' + record_details_url
565
                        );
570
                                + aData['matched'] + '"><i class="fa fa-eye"></i> ' + _("View") + '</a> '
571
                                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
572
                                    + '<a class="btn btn-default btn-xs" target="_blank" href="' + record_edit_url
573
                                    + aData['matched'] + '"><i class="fa fa-pencil"></i> ' + _("Edit") + '</a>'
574
                                [% END %]
575
                            );
576
                        }
566
                    },
577
                    },
567
                }));
578
                }));
568
                $("#import_batch_form").on("submit", function() {
579
                $("#import_batch_form").on("submit", function() {
569
- 

Return to bug 28843