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