Bug 2696: Fine payments should show what was paid for
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / showdiffmarc.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Tools &rsaquo; Manage staged MARC records &rsaquo; Compare matched records</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style type="text/css">
7     ins { background-color: #e6ffe6; }
8     del { background-color: #ffe6e6; }
9     #col1 ins, #col2 del { display: none; }
10     pre { padding: 10px; overflow: scroll; }
11 </style>
12 </head>
13
14 <body id="tools_compare-marc-import" class="tools">
15
16 [% INCLUDE 'header.inc' %]
17
18 <div id="breadcrumbs">
19     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Batch [% batchid %]</a> &rsaquo; Compare matched records
20 </div>
21
22 <div id="doc3">
23     <div class="yui-g">
24         <div id="col1" class="yui-u first">
25             <h1>Original</h1>
26             [% IF ( ERROR_FORMATTED1 ) %]
27                 <div class="dialog alert">
28                     <p>The biblionumber <em>[% BIBLIONUMBER %]</em> doesn't match any existing record.</p>
29                 </div>
30             [% ELSE %]
31                 <h2>[% BIBLIOTITLE %]</h2>
32                 <pre>[% MARC_FORMATTED1 %]</pre>
33             [% END %]
34         </div>
35         <div id="col2" class="yui-u">
36             <h1>Imported</h1>
37             [% IF ( ERROR_FORMATTED2 ) %]
38                 <div class="dialog alert">
39                     <p>The import id number <em>[% IMPORTID %]</em> doesn't match any existing record.</p>
40                 </div>
41             [% ELSE %]
42                 <h2>[% IMPORTTITLE %]</h2>
43                 <pre>[% MARC_FORMATTED2 %] </pre>
44             [% END %]
45         </div>
46     </div>
47
48 <p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Return to staged MARC batch [% batchid %]</a></p>
49
50 [% MACRO jsinclude BLOCK %]
51     [% Asset.js("js/tools-menu.js") %]
52     [% Asset.js("lib/jsdiff/jsdiff.min.js") %]
53     <script type="text/javascript">
54         $(document).ready(function(){
55           var diff1 = $("#col1 pre").text();
56           var diff2 = $("#col2 pre").text();
57           var diffs = diffString(diff1,diff2);
58           $("#col1 pre,#col2 pre").html(diffs);
59         });
60     </script>
61 [% END %]
62
63 [% INCLUDE 'intranet-bottom.inc' %]