From baeff69d324f9edda6086664c5675e8f7090898d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 27 May 2025 15:40:48 +0000 Subject: [PATCH] Bug 39991: Fix MARC record display on showdiffmarc.pl To test: 1. Download a record you already have in Koha 2. Cataloging > Stage MARC records for import 3. Record matching rule: KohaBiblio (99$c) 4. Stage for import > View batch 5. In the table results there should be a link to 'View' in the 'Diff' column. 6. Notice the Record comparison is not side by side. 7. APPLY PATCH 8. Try steps 1 - 6 again, this time the record comparison should be side by side. Signed-off-by: Emily Lamancusa --- .../prog/en/modules/tools/showdiffmarc.tt | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt index c9521745c2..55aef0bcbd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt @@ -59,26 +59,28 @@

[% RECORDTITLE | html %]

-
-

Original

- [% IF ( ERROR_FORMATTED1 ) %] -
-

The record ID [% RECORDID | html %] doesn't match any existing record.

-
- [% ELSE %] -
[% MARC_FORMATTED1 | html %]
- [% END %] -
-
-

Imported

- [% IF ( ERROR_FORMATTED2 ) %] -
-

The import ID number [% IMPORTID | html %] doesn't match any existing record.

-
- [% ELSE %] -

[% IMPORTTITLE | html %]

-
[% MARC_FORMATTED2 | html %] 
- [% END %] +
+
+

Original

+ [% IF ( ERROR_FORMATTED1 ) %] +
+

The record ID [% RECORDID | html %] doesn't match any existing record.

+
+ [% ELSE %] +
[% MARC_FORMATTED1 | html %]
+ [% END %] +
+
+

Imported

+ [% IF ( ERROR_FORMATTED2 ) %] +
+

The import ID number [% IMPORTID | html %] doesn't match any existing record.

+
+ [% ELSE %] +

[% IMPORTTITLE | html %]

+
[% MARC_FORMATTED2 | html %] 
+ [% END %] +
-- 2.34.1