Bugzilla – Attachment 42139 Details for
Bug 14764
Add OPAC News branch selector
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14764: OPAC news selector - Fix RSS feed
Bug-14764-OPAC-news-selector---Fix-RSS-feed.patch (text/plain), 2.02 KB, created by
Martin Persson
on 2015-09-01 09:04:28 UTC
(
hide
)
Description:
Bug 14764: OPAC news selector - Fix RSS feed
Filename:
MIME Type:
Creator:
Martin Persson
Created:
2015-09-01 09:04:28 UTC
Size:
2.02 KB
patch
obsolete
>From e00b75d851bb0c935369a68f25991927d0c4f59e Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >Date: Tue, 1 Sep 2015 11:01:44 +0200 >Subject: [PATCH] Bug 14764: OPAC news selector - Fix RSS feed > >Update opac-main RSS feed to match current branch. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 5 ++--- > opac/opac-main.pl | 1 + > 2 files changed, 3 insertions(+), 3 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 f054091..1772ab3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -56,9 +56,8 @@ > [% END %] > </div> > <div id="rssnews-container"> >- [% SET branchcode = Branches.GetLoggedInBranchcode() %] >- <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a> >- RSS feed for [% IF ( loggedinusername ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news. >+ <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% current_branch %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a> >+ RSS feed for [% IF ( current_branch ) %][% current_branch %] <i>and</i> [% END %] system-wide library news. > </div> > [% END %] > >diff --git a/opac/opac-main.pl b/opac/opac-main.pl >index 480ea9f..578fdd0 100755 >--- a/opac/opac-main.pl >+++ b/opac/opac-main.pl >@@ -66,6 +66,7 @@ $template->param( > display_daily_quote => C4::Context->preference('QuoteOfTheDay'), > daily_quote => $quote, > branches => &GetBranchesLoop($homebranch), >+ current_branch => $homebranch, > ); > > # If GoogleIndicTransliteration system preference is On Set paramter to load Google's javascript in OPAC search screens >-- >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 14764
:
42129
|
42130
|
42131
|
42132
|
42139
|
42146
|
42147
|
55679
|
55680
|
55681
|
55682
|
55724
|
55725
|
55726
|
56107
|
56108
|
56109
|
57058
|
57059
|
57060
|
57061
|
57062
|
57063
|
57110
|
59648
|
59653
|
59827
|
60396
|
60424
|
60425
|
60451
|
60452