Bug 21526: uri escape TT variables when used in 'a href'
[koha_ffzg] / 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 type="text/css">
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 id="doc3">
24     <div class="yui-g">
25         <div id="col1" class="yui-u first">
26             <h1>Original</h1>
27             [% IF ( ERROR_FORMATTED1 ) %]
28                 <div class="dialog alert">
29                     <p>The record id <em>[% RECORDID | html %]</em> doesn't match any existing record.</p>
30                 </div>
31             [% ELSE %]
32                 <h2>[% RECORDTITLE | html %]</h2>
33                 <pre>[% MARC_FORMATTED1 | html %]</pre>
34             [% END %]
35         </div>
36         <div id="col2" class="yui-u">
37             <h1>Imported</h1>
38             [% IF ( ERROR_FORMATTED2 ) %]
39                 <div class="dialog alert">
40                     <p>The import id number <em>[% IMPORTID | html %]</em> doesn't match any existing record.</p>
41                 </div>
42             [% ELSE %]
43                 <h2>[% IMPORTTITLE | html %]</h2>
44                 <pre>[% MARC_FORMATTED2 | html %] </pre>
45             [% END %]
46         </div>
47     </div>
48
49 <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>
50
51 [% MACRO jsinclude BLOCK %]
52     [% Asset.js("js/tools-menu.js") | $raw %]
53     [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
54     <script type="text/javascript">
55         $(document).ready(function(){
56           var diff1 = $("#col1 pre").text();
57           var diff2 = $("#col2 pre").text();
58           var diffs = diffString(diff1,diff2);
59           $("#col1 pre,#col2 pre").html(diffs);
60         });
61     </script>
62 [% END %]
63
64 [% INCLUDE 'intranet-bottom.inc' %]