From 349f8a6961aa3c159d1545fb135fa9d4ba3a75d2 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 30 Jul 2021 15:15:31 -0400 Subject: [PATCH] LP1923225 Followup: Record Subjects, Contents, and Summary These 3 parts of the TPAC still had highlighted display fields being run through the html filter, double-escaping them. Signed-off-by: Jason Boyer --- Open-ILS/src/templates/opac/parts/record/contents.tt2 | 7 +------ Open-ILS/src/templates/opac/parts/record/subjects.tt2 | 2 +- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 13 +++---------- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/contents.tt2 b/Open-ILS/src/templates/opac/parts/record/contents.tt2 index c9c38562d8..38f6271516 100644 --- a/Open-ILS/src/templates/opac/parts/record/contents.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/contents.tt2 @@ -190,12 +190,7 @@ BLOCK render_all_contents; content = ''; df = cont.display_field; IF df AND attrs.hl.$df.size; - filtered_hl_df = []; - FOR hl_df IN attrs.hl.$df; - hl_df = hl_df | html; - filtered_hl_df.push(hl_df); - END; - content = '' _ filtered_hl_df.join('
'); + content = '' _ attrs.hl.$df.join('
'); ELSE; content = PROCESS render_contents(xpath=cont.xpath); END; diff --git a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 index 9011853088..f987125c38 100644 --- a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 @@ -91,7 +91,7 @@ ''; %][% s.$f | html %] [%- + -%]">[% s.$f %] [%- ''; END; %] diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 9105e4b8ce..232f239414 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -362,16 +362,9 @@ END; [%- END %] [%- END %] [%- IF attrs.hl.physical_description.size %] - [%- - filtered_hl_phys_desc = []; - FOR hl_phys_desc IN attrs.hl.physical_description; - hl_phys_desc = hl_phys_desc | html; - filtered_hl_phys_desc.push(hl_phys_desc); - END; - -%]
  • [% l("Physical Description:") %] - [% filtered_hl_phys_desc.join('
    ') %]
    + [% attrs.hl.physical_description.join('
    ') %]
  • [%- ELSIF attrs.phys_desc %]
  • @@ -382,7 +375,7 @@ END; [%- IF attrs.hl.edition %]
  • [% l("Edition:") %] - [% attrs.hl.edition | html %] + [% attrs.hl.edition %] [%- ELSIF attrs.edition %]
  • [% l("Edition:") %] @@ -407,7 +400,7 @@ END; [%- IF attrs.hl.publisher %]
  • [% l("Publisher:") %] - [% attrs.hl.publisher | html %] + [% attrs.hl.publisher %]
  • [%- ELSIF attrs.publisher %]
  • -- 2.11.0