From a77de2ed8c6b034090a9bb62612dba4a949bd841 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. --- 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 a8bd6f8..2af8092 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -49,7 +49,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 0f691ed..c97fc7f 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -62,6 +62,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.1.4