Bug 34773: (follow-up) Missed templates
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / showdiffmarc.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% PROCESS 'i18n.inc' %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7     [% t("Compare matched records") | html %] &rsaquo;
8     [% tx("Batch {batch_id}", { batch_id = batchid }) | html %] &rsaquo;
9     [% t("Manage staged MARC records") | html %] &rsaquo;
10     [% t("Cataloging") | html %] &rsaquo;
11     [% t("Koha") | html %]
12 [% END %]</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 <style>
15     ins { background-color: #e6ffe6; }
16     del { background-color: #ffe6e6; }
17     #col1 ins, #col2 del { display: none; }
18     pre { padding: 10px; overflow: scroll; }
19 </style>
20 </head>
21
22 <body id="tools_compare-marc-import" class="tools">
23
24 [% INCLUDE 'header.inc' %]
25
26 [% WRAPPER 'sub-header.inc' %]
27     [% WRAPPER breadcrumbs %]
28         [% WRAPPER breadcrumb_item %]
29             <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
30         [% END %]
31         [% WRAPPER breadcrumb_item %]
32             <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>
33         [% END %]
34         [% WRAPPER breadcrumb_item %]
35             <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid | uri %]">[% tx("Batch {batch_id}", { batch_id = batchid }) | html %]</a>
36         [% END %]
37         [% WRAPPER breadcrumb_item bc_active= 1 %]
38             <span>Compare matched records</span>
39         [% END %]
40     [% END #/ WRAPPER breadcrumbs %]
41 [% END #/ WRAPPER sub-header.inc %]
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                 <h3>[% RECORDTITLE | html %]</h3>
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                 <h3>[% IMPORTTITLE | html %]</h3>
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' %]