From 34127f17bf9c12ed67250a366836a8bf4ef20f29 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 21 Jan 2020 17:53:09 +0000 Subject: [PATCH] Bug 24473: Add $raw filter for Syndetics content 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 6b9572e0c8fb9f1ad1e60ed5db50e69c60ac1a00) Signed-off-by: Lucas Gass (cherry picked from commit def7b5d1706fe145c61b18d17fe5251ab92e6dd7) Signed-off-by: Aleisha Amohia --- .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 81777cd1de..3b385b40d8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -725,7 +725,7 @@ [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]

Enhanced descriptions from Syndetics:

-

[% SYNDETICS_SUMMARY | html %]

+

[% SYNDETICS_SUMMARY | $raw %]

[% END %] [% IF ( MARCNOTES ) %] @@ -757,7 +757,7 @@

Table of contents provided by Syndetics

    [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] -
  • [% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %][% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]
  • +
  • [% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %][% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]
  • [% END %]
@@ -768,7 +768,7 @@

Excerpt provided by Syndetics

- [% SYNDETICS_EXCERPT | html %] + [% SYNDETICS_EXCERPT | $raw %]
[% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %] @@ -783,7 +783,7 @@ [% FOREACH review IN SYNDETICS_REVIEW.reviews %] [% IF ( review.content ) %] - [% review.content | html %] + [% review.content | $raw %] [% END %] [% END %] @@ -799,7 +799,7 @@

Author notes provided by Syndetics

[% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %] [% IF ( SYNDETICS_ANOTE.content ) %] - [% SYNDETICS_ANOTE.content | html %] + [% SYNDETICS_ANOTE.content | $raw %] [% END %] [% END %] -- 2.39.5