@@ -, +, @@ performing batch record modifications results and confirm that the correct data is shown each time. the modification template. correctly modified by your newly chosen template. Works as described. No regression. --- .../en/modules/tools/batch_record_modification.tt | 51 ++++++++++++++++++---- 1 file changed, 43 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -2,7 +2,6 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch record modification [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'greybox.inc' %] [% INCLUDE 'datatables.inc' %] @@ -55,15 +54,23 @@ $(document).ready(function() { $("#marc_modification_template_id").change(function(){ var url = "/cgi-bin/koha/svc/records/preview?" var mmtid = $(this).val(); - $("a.preview").each(function(){ + $("a.previewMARC").each(function(){ $(this).attr("href", url + "record_type=" + $(this).attr("data-record_type") + "&record_id=" + $(this).attr("data-record_id") + "&mmtid=" + mmtid); }); }); - $("a.preview").click(function(){ - // Equivalent to rel="gb_page_center[600,500]" - return GB_showCenter(_("Preview MARC"), this.href , 600, 500); - }); + $("body").on("click",".previewMARC", function(e){ + e.preventDefault(); + var ltitle = $(this).text(); + var page = $(this).attr("href"); + $("#marcPreviewLabel").text(ltitle); + $("#marcPreview .modal-body").load(page + " div"); + $('#marcPreview').modal({show:true}); + }); + $("#marcPreview").on("hidden", function(){ + $("#marcPreviewLabel").html(""); + $("#marcPreview .modal-body").html("
\"\" "+_("Loading")+"
"); + }); }); //]]> @@ -191,12 +198,26 @@ $(document).ready(function() { [% biblio.biblionumber %] [% biblio.title %] - Preview MARC + Preview MARC [% END %]
Reminder: this action will modify all selected biblios!
+ + + [% ELSE %]
Select all @@ -217,13 +238,27 @@ $(document).ready(function() { [% authority.authid %] [% PROCESS authresult summary=authority.summary %] - Preview MARC + Preview MARC [% END %]
Reminder: this action will modify all selected authorities!
[% END %] + + +
--