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