From 22d9db667281319afd9811f75c4e6a0ee298d334 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 12 Dec 2014 09:04:57 -0500 Subject: [PATCH] Bug 13449 - Syndetics TOC will not display in some cases For reasons unknown, the table of contents data from Syndetics will not display if there is no p element, even though within that if for the p element there's a second one for the p element! This is neither good nor necessary. Test Plan: 1) Enable Syndetics 2) Find a record that should have a Syndetics TOC but doesn't 3) Apply this patch 4) Reload the page 5) Note the Syndetics TOC data now displays Signed-off-by: Julius Fleschner Signed-off-by: Katrin Fischer I couldn't test but from reading the code this should not have any negative consequences. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 -- 1 file changed, 2 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 88bbad2bb6..71b022b39f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -728,9 +728,7 @@

Table of contents provided by Syndetics

    [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] - [% IF ( SYNDETICS_TO.p ) %]
  • [% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %][% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]
  • - [% END %] [% END %]
-- 2.39.5