From 66f7d64215a15289e2b955266981cfc479956aa4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 27 Mar 2023 12:04:56 +0000 Subject: [PATCH] Bug 18829: (follow-up) Don't messup record encoding Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/catalogue/showelastic.tt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt index 53fa8b9ce0..85cde0b247 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt @@ -1,4 +1,4 @@ -[% INCLUDE 'doc-head-open.inc' %] +❤[% INCLUDE 'doc-head-open.inc' %] [% USE raw %] Koha › Catalog › Elasticsearch record @@ -23,10 +23,9 @@ function display() { let myJSON = JSON.stringify([% esrecord | $raw %], null, '\t'); - let decode = decodeURIComponent(escape(myJSON)); let para = document.createElement('textarea'); para.disabled="yes"; - para.textContent = decode; + para.textContent = myJSON; document.getElementById('main').appendChild(para); } -- 2.30.2