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 <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0cafda92b6)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lucas Gass 2025-05-27 15:40:48 +00:00 committed by Paul Derscheid
parent b801888856
commit 56f329e843
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 22 additions and 20 deletions

View File

@ -59,26 +59,28 @@
<div class="page-section col-sm-12">
<h2>[% RECORDTITLE | html %]</h2>
<div id="col1" class="col-sm-6">
<h3>Original</h3>
[% IF ( ERROR_FORMATTED1 ) %]
<div class="alert alert-warning">
<p>The record ID <em>[% RECORDID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<pre>[% MARC_FORMATTED1 | html %]</pre>
[% END %]
</div>
<div id="col2" class="col-sm-6">
<h3>Imported</h3>
[% IF ( ERROR_FORMATTED2 ) %]
<div class="alert alert-warning">
<p>The import ID number <em>[% IMPORTID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<h3>[% IMPORTTITLE | html %]</h3>
<pre>[% MARC_FORMATTED2 | html %] </pre>
[% END %]
<div class="row">
<div id="col1" class="col-sm-6">
<h3>Original</h3>
[% IF ( ERROR_FORMATTED1 ) %]
<div class="alert alert-warning">
<p>The record ID <em>[% RECORDID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<pre>[% MARC_FORMATTED1 | html %]</pre>
[% END %]
</div>
<div id="col2" class="col-sm-6">
<h3>Imported</h3>
[% IF ( ERROR_FORMATTED2 ) %]
<div class="alert alert-warning">
<p>The import ID number <em>[% IMPORTID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<h3>[% IMPORTTITLE | html %]</h3>
<pre>[% MARC_FORMATTED2 | html %] </pre>
[% END %]
</div>
</div>
</div>
<fieldset class="action">