LP#1902965: removing nesting of accordion() calls
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 31 Mar 2021 15:48:17 +0000 (11:48 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 31 Mar 2021 18:41:15 +0000 (11:41 -0700)
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>
Open-ILS/src/templates/opac/parts/record/contents.tt2

index 8ef1112..86c1adb 100644 (file)
@@ -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;