Lines 62-70
$(document).ready(function(){
Link Here
|
62 |
[% END %] |
62 |
[% END %] |
63 |
|
63 |
|
64 |
$('td:eq(1)', nRow).html( |
64 |
$('td:eq(1)', nRow).html( |
65 |
'<a href="javascript:void(0)" onclick="show_marc(' |
65 |
'<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData['import_record_id'] + '" class="previewMARC">' + aData['citation'] + '</a>' |
66 |
+ aData['import_record_id'] |
|
|
67 |
+ ')">' + aData['citation'] + '</a>' |
68 |
); |
66 |
); |
69 |
|
67 |
|
70 |
$('td:eq(2)', nRow).html( |
68 |
$('td:eq(2)', nRow).html( |
Lines 103-131
$(document).ready(function(){
Link Here
|
103 |
}, |
101 |
}, |
104 |
})); |
102 |
})); |
105 |
[% END %] |
103 |
[% END %] |
|
|
104 |
$("body").on("click",".previewMARC", function(e){ |
105 |
e.preventDefault(); |
106 |
var ltitle = $(this).text(); |
107 |
var page = $(this).attr("href"); |
108 |
$("#marcPreviewLabel").text(ltitle); |
109 |
$("#marcPreview .modal-body").load(page + " pre"); |
110 |
$('#marcPreview').modal({show:true}); |
111 |
}); |
112 |
$("#marcPreview").on("hidden", function(){ |
113 |
$("#marcPreviewLabel").html(""); |
114 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
115 |
}); |
106 |
}); |
116 |
}); |
107 |
|
117 |
|
108 |
function show_marc( id ) { |
|
|
109 |
var page = "/cgi-bin/koha/catalogue/showmarc.pl?importid=" + id; |
110 |
|
111 |
var $dialog = $('<div></div>') |
112 |
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>') |
113 |
.dialog({ |
114 |
autoOpen: false, |
115 |
modal: true, |
116 |
height: 625, |
117 |
width: 500, |
118 |
title: _("MARC Preview") |
119 |
}); |
120 |
|
121 |
$dialog.dialog('open'); |
122 |
} |
123 |
//]]> |
118 |
//]]> |
124 |
</script> |
119 |
</script> |
125 |
<style type="text/css"> |
120 |
<style type="text/css"> |
126 |
#jobpanel,#jobstatus,#jobfailed { display : none; } |
121 |
#jobpanel,#jobstatus,#jobfailed { display : none; } |
127 |
#jobstatus { margin:.4em; } |
122 |
#jobstatus { margin:.4em; } |
128 |
#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; }</style> |
123 |
#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; } } |
|
|
124 |
</style> |
129 |
</head> |
125 |
</head> |
130 |
<body id="tools_manage-marc-import" class="tools"> |
126 |
<body id="tools_manage-marc-import" class="tools"> |
131 |
[% INCLUDE 'header.inc' %] |
127 |
[% INCLUDE 'header.inc' %] |
Lines 452-457
Page
Link Here
|
452 |
</tr> |
448 |
</tr> |
453 |
</thead> |
449 |
</thead> |
454 |
</table> |
450 |
</table> |
|
|
451 |
|
452 |
<div id="marcPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> |
453 |
<div class="modal-header"> |
454 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
455 |
<h3 id="marcPreviewLabel">MARC preview</h3> |
456 |
</div> |
457 |
<div class="modal-body"> |
458 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
459 |
</div> |
460 |
<div class="modal-footer"> |
461 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
462 |
</div> |
463 |
</div> |
455 |
[% END %] |
464 |
[% END %] |
456 |
|
465 |
|
457 |
</div> |
466 |
</div> |
458 |
- |
|
|