Bug 24473: Add $raw filter for Syndetics content
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 21 Jan 2020 17:53:09 +0000 (17:53 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 12:05:21 +0000 (14:05 +0200)
Syndetics offers enhanced content in the OPAC under the tabs 'Title Notes',
'Excerpt', 'About the author', 'Editions'. They provide this info as HTML
therefore we should filter it as $raw so the content shows up without the markup.

Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index e18ab36..224b9b8 100644 (file)
 
                             [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
                                 <h4>Enhanced descriptions from Syndetics:</h4>
-                                <p>[% SYNDETICS_SUMMARY | html %]</p>
+                                <p>[% SYNDETICS_SUMMARY | $raw %]</p>
                             [% END %]
 
                             [% IF ( MARCNOTES ) %]
                                     <h3>Table of contents provided by Syndetics</h3>
                                         <ul>
                                             [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
-                                                <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li>
+                                                <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
                                             [% END %]
                                         </ul>
                                 </div>
                             <div id="excerpt">
                                 <div class="content_set">
                                     <h3>Excerpt provided by Syndetics</h3>
-                                    [% SYNDETICS_EXCERPT | html %]
+                                    [% SYNDETICS_EXCERPT | $raw %]
                                 </div>
                             </div>
                         [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
                                                 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
 
                                                     [% IF ( review.content ) %]
-                                                        [% review.content | html %]
+                                                        [% review.content | $raw %]
                                                     [% END %]
 
                                                 [% END %]
                                     <h3>Author notes provided by Syndetics</h3>
                                     [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
                                         [% IF ( SYNDETICS_ANOTE.content ) %]
-                                            [% SYNDETICS_ANOTE.content | html %]
+                                            [% SYNDETICS_ANOTE.content | $raw %]
                                         [% END %]
                                     [% END %]
                                 </div>