|
Lines 533-550
Link Here
|
| 533 |
checked = 'checked="checked"'; |
533 |
checked = 'checked="checked"'; |
| 534 |
any_checked = 1; |
534 |
any_checked = 1; |
| 535 |
} |
535 |
} |
| 536 |
[% IF(item.record_type == 'auth') -%] |
|
|
| 537 |
var matching_msg = _("Matches authority %s (score=%s):%s"); |
| 538 |
[%- ELSE -%] |
| 539 |
var matching_msg = _("Matches bibliographic record %s (score=%s):%s"); |
| 540 |
[%- END %] |
| 541 |
var match_option = ""; |
536 |
var match_option = ""; |
| 542 |
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 + '> '; |
537 |
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 + '> '; |
| 543 |
|
538 |
|
| 544 |
var diff_url = '/cgi-bin/koha/tools/showdiffmarc.pl?batchid=%s&importid=%s&id=%s&type=%s'; |
539 |
var diff_url = '/cgi-bin/koha/tools/showdiffmarc.pl?batchid=%s&importid=%s&id=%s&type=%s'; |
| 545 |
var match_citation = ''; |
540 |
var match_citation = ''; |
| 546 |
if( item.title ){ match_citation += item.title + ' ' } |
541 |
var matching_msg = ''; |
| 547 |
if( item.author ){ match_citation += item.author } |
542 |
if ( item.record_type == 'auth' ){ |
|
|
543 |
matching_msg = _("Matches authority %s (score=%s):%s"); |
| 544 |
if( item.authorized_heading ){ match_citation += item.authorized_heading } |
| 545 |
} else { |
| 546 |
matching_msg = _("Matches bibliographic record %s (score=%s):%s"); |
| 547 |
if( item.title ){ match_citation += item.title + ' ' } |
| 548 |
if( item.author ){ match_citation += item.author } |
| 549 |
} |
| 548 |
$('td:eq(4) ul', nRow).append('<li><label for="import_record_id_'+aData['import_record_id']+'_match_'+index+'">'+match_option+ |
550 |
$('td:eq(4) ul', nRow).append('<li><label for="import_record_id_'+aData['import_record_id']+'_match_'+index+'">'+match_option+ |
| 549 |
matching_msg.format(item.candidate_match_id, item.score, |
551 |
matching_msg.format(item.candidate_match_id, item.score, |
| 550 |
'<a target="_blank" href="' + record_details_url |
552 |
'<a target="_blank" href="' + record_details_url |
| 551 |
- |
|
|