Bug 10558: (follow-up) choose label for matching records correctly
authorGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 15:42:24 +0000 (15:42 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 15:51:08 +0000 (15:51 +0000)
This patch ensures that the record type of the import batch (i.e.,
biblio or authority) is consulted in order to choose the "Matches
biblio" or "Matches authority" labels.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt

index 40f916d..0098751 100644 (file)
@@ -88,7 +88,11 @@ $(document).ready(function(){
 
             if ( aData['match_id'] ) {
                 $('td:eq(4)', nRow).html(
+                    [% IF ( record_type == 'auth' ) -%]
+                    _("Matches authority ")
+                    [%- ELSE -%]
                     _("Matches biblio ")
+                    [%- END %]
                     + aData['match_id']
                     + " (" + _("score") + "="
                     + aData['score']