View | Details | Raw Unified | Return to bug 18829
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt (-4 / +2 lines)
Lines 1-4 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
❤[% INCLUDE 'doc-head-open.inc' %]
2
[% USE raw %]
2
[% USE raw %]
3
<title>Koha &rsaquo; Catalog &rsaquo; Elasticsearch record</title>
3
<title>Koha &rsaquo; Catalog &rsaquo; Elasticsearch record</title>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Lines 23-32 Link Here
23
23
24
        function display() {
24
        function display() {
25
            let myJSON = JSON.stringify([% esrecord | $raw %], null, '\t');
25
            let myJSON = JSON.stringify([% esrecord | $raw %], null, '\t');
26
            let decode = decodeURIComponent(escape(myJSON));
27
            let para = document.createElement('textarea');
26
            let para = document.createElement('textarea');
28
            para.disabled="yes";
27
            para.disabled="yes";
29
            para.textContent = decode;
28
            para.textContent = myJSON;
30
            document.getElementById('main').appendChild(para);
29
            document.getElementById('main').appendChild(para);
31
        }
30
        }
32
31
33
- 

Return to bug 18829