From: Galen Charlton <gmc@equinoxinitiative.org>
Date: Wed, 31 Mar 2021 15:48:17 +0000 (-0400)
Subject: LP#1902965: removing nesting of accordion() calls
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=35ae2d1300c92a8721e78c84e5e2f1aa316f65c6;p=evergreen%2Fequinox.git

LP#1902965: removing nesting of accordion() calls

This was resulting in double-encoding of content notes, making the public
catalog display things like

<div class="content_field">...</div>

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
---

diff --git a/Open-ILS/src/templates/opac/parts/record/contents.tt2 b/Open-ILS/src/templates/opac/parts/record/contents.tt2
index 8ef1112b72..86c1adb032 100644
--- a/Open-ILS/src/templates/opac/parts/record/contents.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/contents.tt2
@@ -212,7 +212,7 @@ BLOCK render_all_contents;
             IF content.match('\S'); -%]                
                 <tr>
                     <td class='rdetail_content_type'>[% cont.label %]</td>
-                    <td class='rdetail_content_value' property='keywords'>[% accordion(content, trunc_length) %]</td>
+                    <td class='rdetail_content_value' property='keywords'>[% content %]</td>
                 </tr>
             [%- END;
         END;