+[% BLOCK final_match_link %]
+ [% IF ( record.record_type == 'biblio' ) %]
+ <a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record.final_match_id %]">[% record.final_match_id %]</a>
+ [% ELSIF ( record.record_type == 'auth' ) %]
+ <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% record.final_match_id %]">[% record.final_match_id %]</a>
+ [% END %]
+[% END %]
+[% BLOCK match_link %]
+ [% IF ( record_lis.match_id ) %]
+ <tr>
+ <td />
+ [% IF ( record.record_type == 'biblio' ) %]
+ <td colspan="5">Matches biblio [% record_lis.match_id %] (score = [% record_lis.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record_lis.match_id %]">[% record_lis.match_citation %]</a></td>
+ [% ELSIF ( record.record_type == 'auth' ) %]
+ <td colspan="5">Matches authority [% record_lis.match_id %] (score = [% record_lis.match_score %]): <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% record_lis.match_id %]">[% record_lis.match_citation %]</a> |
+ <a href="/cgi-bin/koha/authorities/merge.pl?mergereference=breeding&authid=[% record_lis.match_id %]&authid=[% record_lis.import_record_id %]">Merge</a>
+ </td>
+ [% END %]
+ </tr>
+ [% ELSIF ( record.record_type == 'auth') %]
+ <tr data-authid="[% record_lis.import_record_id %]">
+ <td />
+ <td colspan="4"><a href="#" class="merge_auth">Search for a record to merge in a new window</a></td>
+ </tr>
+ [% END %]
+[% END %]
+