From 497cd04df0dc68b2c3972343a64f0f5221cc6d70 Mon Sep 17 00:00:00 2001 From: Martin Persson Date: Tue, 18 Aug 2015 23:03:54 +0200 Subject: [PATCH] Bug 14305: View arbitrary branch's news, RSS fix This fix changes the RSS link to reflect the URL paramter override. This is less elegant than the existing solution which uses the Branches TT module, perhaps there is a better way? Sponsored-By: Halland County Library Test plan: * Follow instructions in the original patch but also check the URLs and contents of the RSS link at the bottom the OPAC page. Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 1 - opac/opac-main.pl | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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 798c90e9da..4a95df979a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -50,7 +50,6 @@ [% END %]
- [% SET branchcode = Branches.GetLoggedInBranchcode() %] RSS feed for [% IF ( loggedinusername ) %][% Branches.GetName( branchcode ) %] and [% END %] system-wide library news.
diff --git a/opac/opac-main.pl b/opac/opac-main.pl index c79afb4352..d586a7cb2b 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -59,6 +59,7 @@ my $quote = GetDailyQuote(); # other options are to pass in an exact quote id $template->param( koha_news => $all_koha_news, koha_news_count => $koha_news_count, + branchcode => $homebranch, display_daily_quote => C4::Context->preference('QuoteOfTheDay'), daily_quote => $quote, ); -- 2.39.5