From b7df7b128197eac03b201a88c2def19e27425cf5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 24 Apr 2023 19:09:00 +0000 Subject: [PATCH] Bug 33596: Merge result page is missing page-section This patch adds a "page-section" container around the contents of the page seen when you complete the process of merging catalog records. The patch also adds the "merge was successful" message into the standard message dialog. Perform a catalog search which will return more than one record. - Select two records in your search results and click "Edit" -> "Merge records." - Complete the process of merging your selected records. - On the last page you should see a "merge was successful" message styled as the standard information box. - The "Report" section should be shown inside a "page-section" div. Signed-off-by: Lucas Gass Signed-off-by: David Nind --- .../prog/en/modules/cataloguing/merge.tt | 76 ++++++++++--------- 1 file changed, 39 insertions(+), 37 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt index 672fe421c5..995321b4aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt @@ -50,48 +50,50 @@ div#result { margin-top: 1em; } [% END %] [% ELSE %] -

The merge was successful. View the merged record.

-

Report

- - - - - [% FOREACH key IN report_header.keys.sort %] - [% tag = key.substr(0, 3) %] - [% code = key.substr(3, 1) %] - [% IF code == '@' %] - [% header = tag %] - [% ELSE %] - [% header = tag _ '$' _ code %] - [% END %] - - [% END %] - - - - [% FOREACH record IN report_records %] +
The merge was successful. View the merged record.
+
+

Report

+
Biblionumber[% header | html %]
+ - + [% FOREACH key IN report_header.keys.sort %] + [% tag = key.substr(0, 3) %] + [% code = key.substr(3, 1) %] + [% IF code == '@' %] + [% header = tag %] + [% ELSE %] + [% header = tag _ '$' _ code %] + [% END %] + + [% END %] + + + + [% FOREACH record IN report_records %] + - [% END %] - - [% END %] - -
- [% record.biblionumber | html %] - [% IF loop.first %] - (record kept) - [% END %] - Biblionumber[% header | html %]
- [% values = record.fields.$key %] - [% IF values %] - [% FOREACH value IN record.fields.$key %] - [% value | html %] - [% UNLESS loop.last %]
[% END %] - [% END %] + [% record.biblionumber | html %] + [% IF loop.first %] + (record kept) [% END %]
+ [% FOREACH key IN report_header.keys.sort %] + + [% values = record.fields.$key %] + [% IF values %] + [% FOREACH value IN record.fields.$key %] + [% value | html %] + [% UNLESS loop.last %]
[% END %] + [% END %] + [% END %] + + [% END %] + + [% END %] + + + [% END %] [% ELSE %] -- 2.30.2