From: Jason Boyer Date: Fri, 30 Jul 2021 19:15:31 +0000 (-0400) Subject: LP1923225 Followup: Record Subjects, Contents, and Summary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1cf284f751ca83c1f7ecc00d2290b3728e365743;p=working%2FEvergreen.git 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 --- 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 c321fd8e6b..78c10ef006 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 %]