Bugzilla – Attachment 117795 Details for
Bug 26392
Wrap all translatable strings in opac-main.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26392: Fix opac news display issue when there is no author
Bug-26392-Fix-opac-news-display-issue-when-there-i.patch (text/plain), 2.27 KB, created by
Julian Maurice
on 2021-03-05 09:14:19 UTC
(
hide
)
Description:
Bug 26392: Fix opac news display issue when there is no author
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2021-03-05 09:14:19 UTC
Size:
2.27 KB
patch
obsolete
>From 47dbb7e25c05d19a7aebd9586bdb9f415a5cea11 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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 <oleonard@myacpl.org> >--- > 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 faa3a41e31..8633cb2c43 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -107,16 +107,14 @@ > <div class="newsbody">[% koha_new.content | $raw %]</div> > <div class="newsfooter"> > [% 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 %] > [% IF news_item %] > <span class="newsauthor_title">[% koha_new.author.title | html %] </span>[% koha_new.author.firstname | html %] [% koha_new.author.surname | html %] > [% ELSE %] > <span class="newsauthor_title">[% koha_new.author_title | html %] </span>[% koha_new.author_firstname | html %] [% koha_new.author_surname | html %] > [% END %] > [% 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.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26392
:
109666
|
109943
|
109944
|
109947
|
109948
|
117794
| 117795