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