Bugzilla – Attachment 72065 Details for
Bug 14272
Allow OPAC to show a single news entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14272: [FOLLOW-UP] Show single news item
Bug-14272-FOLLOW-UP-Show-single-news-item.patch (text/plain), 2.37 KB, created by
Dilan Johnpullé
on 2018-02-22 03:39:53 UTC
(
hide
)
Description:
Bug 14272: [FOLLOW-UP] Show single news item
Filename:
MIME Type:
Creator:
Dilan Johnpullé
Created:
2018-02-22 03:39:53 UTC
Size:
2.37 KB
patch
obsolete
>From 8a5dc17545185a45538d278f4ce24ab2e039f5c8 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 24 Jan 2017 03:31:59 +0000 >Subject: [PATCH] Bug 14272: [FOLLOW-UP] Show single news item >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Patch applies successfully and behaves as expected. > >Sponsored-by: Catalyst IT >Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> >--- > C4/NewsChannels.pm | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/NewsChannels.pm b/C4/NewsChannels.pm >index 5228804..d9463c7 100644 >--- a/C4/NewsChannels.pm >+++ b/C4/NewsChannels.pm >@@ -207,7 +207,7 @@ sub GetNewsToDisplay { > FROM opac_news > LEFT JOIN borrowers on borrowers.borrowernumber = > opac_news.borrowernumber >- WHERE (}; >+ WHERE }; > > if ( defined $id ) { > $query .= q{ opac_news.idnew = ? } if defined $id; >@@ -216,7 +216,7 @@ sub GetNewsToDisplay { > > unless ( defined $time ) { > $query .= q{ AND } if defined $id; >- $query .= q{ >+ $query .= q{ ( > expirationdate >= CURRENT_DATE() > OR expirationdate IS NULL > OR expirationdate = '00-00-0000' >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 b31e1c1..5a908c8 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -68,7 +68,7 @@ > [% FOREACH koha_new IN koha_news %] > <div class="newsitem"> > <a name="newsitem[% koha_new.idnew %]" href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.idnew %]"><h4 class="newsheader">[% koha_new.title %]</h4></a> >- <div class="newsbody">[% koha_new.new %]</div> >+ <div class="newsbody">[% koha_new.content %]</div> > <div class="newsfooter">(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])</div> > </div> > [% END %] >-- >2.1.4
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 14272
:
45721
|
45740
|
45741
|
45818
|
45820
|
45845
|
45846
|
45935
|
45936
|
45937
|
47556
|
47557
|
47558
|
47665
|
47666
|
47667
|
47668
|
47669
|
47670
|
47671
|
47672
|
47673
|
50557
|
50558
|
50559
|
59483
|
70728
|
70729
|
70730
|
70731
|
72065
|
72548
|
72549
|
72550
|
72551
|
76015
|
76307
|
76580
|
76662
|
77546
|
77564
|
77565
|
77566
|
77567
|
77568
|
77569
|
78104
|
78206
|
78207
|
78208
|
78231
|
81643
|
82713
|
83425
|
83426
|
83427
|
83428
|
83429
|
83430
|
84868
|
84869
|
84870
|
84871
|
84872
|
84873
|
84874