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 <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
fdda5d7d7c
commit
497cd04df0
2 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,6 @@
|
|||
[% 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.
|
||||
</div>
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue