diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 3d5f01d582..2b4684a53c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -62,9 +62,7 @@ $(document).ready(function(){ [% END %] $('td:eq(1)', nRow).html( - '' + aData['citation'] + '' + '' + aData['citation'] + '' ); $('td:eq(2)', nRow).html( @@ -103,29 +101,27 @@ $(document).ready(function(){ }, })); [% END %] + $("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 + " pre"); + $('#marcPreview').modal({show:true}); + }); + $("#marcPreview").on("hidden", function(){ + $("#marcPreviewLabel").html(""); + $("#marcPreview .modal-body").html("
\"\" "+_("Loading")+"
"); + }); }); -function show_marc( id ) { - var page = "/cgi-bin/koha/catalogue/showmarc.pl?importid=" + id; - - var $dialog = $('
') - .html('') - .dialog({ - autoOpen: false, - modal: true, - height: 625, - width: 500, - title: _("MARC Preview") - }); - - $dialog.dialog('open'); -} //]]> + #jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('[% interface %]/[% theme %]/img/progress.png') -300px 0px no-repeat; } span.change-status { font-style:italic; color:#666; display:none; }#marcPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #marcPreview { margin: 0; width : auto; } } + [% INCLUDE 'header.inc' %] @@ -452,6 +448,19 @@ Page + + [% END %]