Bugzilla – Attachment 41639 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), 1.99 KB, created by
Martin Persson
on 2015-08-18 21:06:57 UTC
(
hide
)
Description:
Bug 14305: View arbitrary branch's news, RSS fix
Filename:
MIME Type:
Creator:
Martin Persson
Created:
2015-08-18 21:06:57 UTC
Size:
1.99 KB
patch
obsolete
>From a77de2ed8c6b034090a9bb62612dba4a949bd841 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. >--- > 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 %] > </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 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
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