From d95fffb8eca6cbf94ab758b762c4dfd5a868090f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 24 Jul 2024 15:59:31 +0100 Subject: [PATCH] Bug 37452: Modernise the view in showdiffmarc The showdiffmarc view available from manage stage records when a match is found looks dated. This patch adds a page-section, centers the display as a whole and converts the link back to the staging area to an action button. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- .../prog/en/modules/tools/showdiffmarc.tt | 55 ++++++++++--------- 1 file changed, 29 insertions(+), 26 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 e0176360c9..f722c99af6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt @@ -41,39 +41,42 @@ [% END #/ WRAPPER sub-header.inc %]
+
-
- [% INCLUDE 'messages.inc' %] +
+ [% INCLUDE 'messages.inc' %]

Compare matched records

-
-

Original

- [% IF ( ERROR_FORMATTED1 ) %] -
-

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

+
+

[% RECORDTITLE | html %]

+
+

Original

+ [% IF ( ERROR_FORMATTED1 ) %] +
+

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

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

[% RECORDTITLE | html %]

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

Imported

- [% IF ( ERROR_FORMATTED2 ) %] -
-

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

+
+

Imported

+ [% IF ( ERROR_FORMATTED2 ) %] +
+

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

+
+ [% ELSE %] +

[% IMPORTTITLE | html %]

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

[% IMPORTTITLE | html %]

-
[% MARC_FORMATTED2 | html %] 
- [% END %] +
+
+ Return to staged MARC batch [% batchid | html %] +
- -

Return to staged MARC batch [% batchid | html %]

- -
-
+
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] -- 2.39.5