diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
index 260d328fd1..cdf3aefb54 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
@@ -1,70 +1,71 @@
[% BLOCK sourcetab %]
-
[% END %]
[% BLOCK mergesource %]
-
+
+ [% WRAPPER tabs id= "tabs" %]
Source records
-
-
- [% IF ( sourcerecords.size ) %]
- [% FOREACH record IN sourcerecords %]
- [% PROCESS sourcetab tabrecord=record %]
+ [% WRAPPER tab_item tabname= "tabrecord${record.recordid}" %]
+ [% record.recordid | html %]
+ [% IF record.reference %](ref)[% END %]
[% END %]
[% END %]
-
-
+ [% END # /WRAPPER tabs_nav %]
+
+ [% WRAPPER tab_panels %]
+ [% IF ( sourcerecords.size ) %]
+ [% FOREACH record IN sourcerecords %]
+ [% WRAPPER tab_panel tabname="tabrecord${record.recordid}" %]
+ [% PROCESS sourcetab tabrecord=record %]
+ [% END %]
+ [% END %]
+ [% END %]
+ [% END # /WRAPPER tab_panels %]
+ [% END # /WRAPPER tabs %]
+
[% END %]
[% BLOCK mergetarget %]