Bugzilla – Attachment 49918 Details for
Bug 14305
Public way to look at the Opac News of different branches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14305: View arbitrary branch's news, RSS fix
Bug-14305-View-arbitrary-branchs-news-RSS-fix.patch (text/plain), 2.04 KB, created by
Mark Tompsett
on 2016-04-05 15:59:05 UTC
(
hide
)
Description:
Bug 14305: View arbitrary branch's news, RSS fix
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-04-05 15:59:05 UTC
Size:
2.04 KB
patch
obsolete
>From 170cab16d78deafc9217e2e07c6a9a1545cc2e18 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >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 <mtompset@hotmail.com> >--- > 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 798c90e..4a95df9 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 %] > </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> >diff --git a/opac/opac-main.pl b/opac/opac-main.pl >index c79afb4..d586a7c 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.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 14305
:
41638
|
41639
|
45650
|
45673
|
49917
|
49918
|
49919
|
49920
|
50152
|
50186
|
50187
|
50188