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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-8 / +9 lines)
Lines 545-562 Link Here
545
                                    checked = 'checked="checked"';
545
                                    checked = 'checked="checked"';
546
                                    any_checked = 1;
546
                                    any_checked = 1;
547
                                }
547
                                }
548
                                [% IF(item.record_type == 'auth') -%]
549
                                    var matching_msg = _("Matches authority %s (score=%s):%s");
550
                                [%- ELSE -%]
551
                                    var matching_msg = _("Matches bibliographic record %s (score=%s):%s");
552
                                [%- END %]
553
                                    var match_option = "";
548
                                    var match_option = "";
554
                                    match_option = '<input type="radio" data-import_record_id="'+aData['import_record_id']+'" class="chosen" name="import_record_id_'+aData['import_record_id']+'_match" value="'+item.candidate_match_id+'" ' + checked + disabled + '> ';
549
                                    match_option = '<input type="radio" data-import_record_id="'+aData['import_record_id']+'" class="chosen" name="import_record_id_'+aData['import_record_id']+'_match" value="'+item.candidate_match_id+'" ' + checked + disabled + '> ';
555
550
556
                                    var diff_url = '/cgi-bin/koha/tools/showdiffmarc.pl?batchid=%s&importid=%s&id=%s&type=%s';
551
                                    var diff_url = '/cgi-bin/koha/tools/showdiffmarc.pl?batchid=%s&importid=%s&id=%s&type=%s';
557
                                    var match_citation = '';
552
                                    var match_citation = '';
558
                                    if( item.title  ){ match_citation += item.title + ' ' }
553
                                    var matching_msg = '';
559
                                    if( item.author ){ match_citation += item.author }
554
                                    if ( item.record_type == 'auth' ){
555
                                        matching_msg = _("Matches authority %s (score=%s):%s");
556
                                        if( item.authorized_heading ){ match_citation += item.authorized_heading }
557
                                    } else {
558
                                        matching_msg = _("Matches bibliographic record %s (score=%s):%s");
559
                                        if( item.title  ){ match_citation += item.title + ' ' }
560
                                        if( item.author ){ match_citation += item.author }
561
                                    }
560
                                $('td:eq(4) ul', nRow).append('<li><label for="import_record_id_'+aData['import_record_id']+'_match_'+index+'">'+match_option+
562
                                $('td:eq(4) ul', nRow).append('<li><label for="import_record_id_'+aData['import_record_id']+'_match_'+index+'">'+match_option+
561
                                    matching_msg.format(item.candidate_match_id, item.score,
563
                                    matching_msg.format(item.candidate_match_id, item.score,
562
                                        '<a target="_blank" href="' + record_details_url
564
                                        '<a target="_blank" href="' + record_details_url
563
- 

Return to bug 32685