From c6a789933684004926ecab5f9d516049175f3236 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 4 Dec 2015 18:49:39 -0500 Subject: [PATCH] Bug 15314: Use Bootstrap modal for cataloging merge MARC preview In order to reduce the number of dependencies for common interactions we should attempt to use Bootstrap modals in place of Greybox ones. This patch modifies the cataloging merge selection page so that the MARC preview is shown in a Boostrap modal. This patch also changes the preview link to be the text "View MARC" so that it is clear what it does. To test: 1. Apply the patch and navigate to Cataloging. 2. Perform a search which will return results from the catalog. 3. Select two records and click the "Merge selected" button to begin the merge process. 4. Test the "View MARC" link for both merge choices and confirm that the correct data is shown each time. Signed-off-by: Hector Castro Works as advertised Signed-off-by: Jonathan Druart --- .../prog/en/modules/cataloguing/merge.tt | 33 ++++++++++++++++++++-- 1 file changed, 30 insertions(+), 3 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 9ec45c1..deb74ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt @@ -2,7 +2,6 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Cataloging › Merging records -[% INCLUDE 'greybox.inc' %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'merge-record-strings.inc' %] @@ -10,6 +9,7 @@ div.record ul, div.record li { float:none; display:block; } div#result { margin-top: 1em; } /* We use this style "against" the li ui-tabs-nav style automatically applied */ +#dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } } @@ -201,7 +214,7 @@ $(document).ready(function(){ [% FOREACH subtitle IN record.subtitles %] [% subtitle.subfield %] [% END %] - ([% record.biblionumber %]) + ([% record.biblionumber %]) View MARC [% END %] @@ -233,6 +246,20 @@ $(document).ready(function(){ + + + [% ELSE %] [% IF ( errors.size ) %]
-- 2.1.0