From b2e2fd990b1a3972e26472c37fa1369a5ead635f Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 11 Sep 2020 17:28:41 +0400 Subject: [PATCH] Bug 26392: Fix opac news display issue when there is no author Signed-off-by: Owen Leonard --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index d08c886d45..fcdfaaaa08 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -107,12 +107,10 @@
[% koha_new.content | $raw %]
[% published_on = BLOCK %][% koha_new.published_on | $KohaDates %][% END %] - [% author = BLOCK %] - [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] + [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] + [% author = BLOCK %] [% koha_new.author_title | html %] [% koha_new.author_firstname | html %] [% koha_new.author_surname | html %] [% END %] - [% END %] - [% IF author %] [% t('Published on {published_on} by {author}') | html | $Expand published_on = published_on, author = author %] [% ELSE %] [% t('Published on {published_on}') | html | $Expand published_on = published_on %] -- 2.11.0