From def7b5d1706fe145c61b18d17fe5251ab92e6dd7 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 --- .../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 73ee97e7e1..0d0a678b59 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -646,7 +646,7 @@ [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]

Enhanced descriptions from Syndetics:

-

[% SYNDETICS_SUMMARY | html %]

+

[% SYNDETICS_SUMMARY | $raw %]

[% END %] [% IF ( MARCNOTES ) %] @@ -678,7 +678,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 %]
@@ -689,7 +689,7 @@

Excerpt provided by Syndetics

- [% SYNDETICS_EXCERPT | html %] + [% SYNDETICS_EXCERPT | $raw %]
[% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %] @@ -704,7 +704,7 @@ [% FOREACH review IN SYNDETICS_REVIEW.reviews %] [% IF ( review.content ) %] - [% review.content | html %] + [% review.content | $raw %] [% END %] [% END %] @@ -720,7 +720,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