Bug 30952: Staff interface redesign (header)
[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>Compare matched records &rsaquo; Manage staged MARC records &rsaquo; Tools &rsaquo; Koha</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 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21     <ol>
22         <li>
23             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
24         </li>
25         <li>
26             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
27         </li>
28         <li>
29             <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>
30         </li>
31         <li>
32             <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid | uri %]">Batch [% batchid | html %]</a>
33         </li>
34         <li>
35             <a href="#" aria-current="page">
36                 Compare matched records
37             </a>
38         </li>
39     </ol>
40 </nav>
41 [% END %]
42
43 <div class="main container-fluid">
44     <div class="row">
45             <main>
46             <h1>Compare matched records</h1>
47
48         <div id="col1" class="col-sm-6">
49             <h2>Original</h2>
50             [% IF ( ERROR_FORMATTED1 ) %]
51                 <div class="dialog alert">
52                     <p>The record id <em>[% RECORDID | html %]</em> doesn't match any existing record.</p>
53                 </div>
54             [% ELSE %]
55                 <h2>[% RECORDTITLE | html %]</h2>
56                 <pre>[% MARC_FORMATTED1 | html %]</pre>
57             [% END %]
58         </div>
59         <div id="col2" class="col-sm-6">
60             <h2>Imported</h2>
61             [% IF ( ERROR_FORMATTED2 ) %]
62                 <div class="dialog alert">
63                     <p>The import id number <em>[% IMPORTID | html %]</em> doesn't match any existing record.</p>
64                 </div>
65             [% ELSE %]
66                 <h2>[% IMPORTTITLE | html %]</h2>
67                 <pre>[% MARC_FORMATTED2 | html %] </pre>
68             [% END %]
69         </div>
70     </div>
71
72 <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>
73
74             </main>
75         </div>
76
77 [% MACRO jsinclude BLOCK %]
78     [% Asset.js("js/tools-menu.js") | $raw %]
79     [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
80     <script>
81         $(document).ready(function(){
82           var diff1 = $("#col1 pre").text();
83           var diff2 = $("#col2 pre").text();
84           var diffs = diffString(diff1,diff2);
85           $("#col1 pre,#col2 pre").html(diffs);
86         });
87     </script>
88 [% END %]
89
90 [% INCLUDE 'intranet-bottom.inc' %]