Bugzilla – Attachment 148760 Details for
Bug 18829
Elasticsearch - Add ability to view the ES indexed record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18829: (follow-up) Don't messup record encoding
Bug-18829-follow-up-Dont-messup-record-encoding.patch (text/plain), 1.34 KB, created by
Nick Clemens (kidclamp)
on 2023-03-27 12:10:26 UTC
(
hide
)
Description:
Bug 18829: (follow-up) Don't messup record encoding
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-03-27 12:10:26 UTC
Size:
1.34 KB
patch
obsolete
>From c5eda39cd77ca1bfca86386a5e9663799a1106a8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 27 Mar 2023 12:04:56 +0000 >Subject: [PATCH] Bug 18829: (follow-up) Don't messup record encoding > >--- > .../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 %] > <title>Koha › Catalog › Elasticsearch record</title> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18829
:
64456
|
89001
|
89007
|
89248
|
89249
|
89250
|
90370
|
108103
|
108104
|
108191
|
108944
|
108945
|
148757
|
148758
|
148759
|
148760
|
149400
|
149401
|
149402
|
149403
|
149404
|
149745