From a55d9ff0baddf77d5456c0f219daa91f5b141ac2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Nov 2019 09:19:31 +0100 Subject: [PATCH] Bug 23777: Fix for the advanced editor Signed-off-by: Hayley Mapley Signed-off-by: Martin Renvoize --- .../en/modules/authorities/blinddetail-biblio-search.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt index 8d2749170d..083eda7c18 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt @@ -32,9 +32,9 @@ [% ELSE %] var new_line = " [%- FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP -%]‡ - [%- SUBFIELD_LOO.marc_subfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r ') | html -%] + [%- To.json( SUBFIELD_LOO.marc_subfield ) | $raw -%] [%- FOREACH marc_value IN SUBFIELD_LOO.marc_values -%] - [%- marc_value |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html -%] + [%- To.json( marc_value ) | $raw -%] [%- END -%] [%- END -%]‡9[% authid | html %]"; [% END %] @@ -137,7 +137,7 @@ if (subfield){subfield.value="" ;} [% ELSE %] if(code.value=='9'){ - subfield.value = "[% authid |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; + subfield.value = "[% To.json(authid) | $raw %]"; break; } [% END %] -- 2.39.5