Bug 17834: Change library news text for single-branch libraries
To test: 1) Log into OPAC, go to home page 2) Confirm that the text shows as 'RSS feed for (branchname) library news' if single-branch library 3) Confirm text shows as normal for libraries with more than one branch Sponsored-by: Catalyst IT Signed-off-by: maricris <mlabancia@gmail.com> Signed-off-by: anafe <anafeazuela@yahoo.com> Signed-off-by: iflora <iflora@unimas.my> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
f7e8391fd3
commit
1417f83e8b
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@
|
|||
<div id="rssnews-container">
|
||||
<!-- Logged in users have a branch code or it could be explicitly set -->
|
||||
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
|
||||
[% IF Branches.all.size == 1 %]
|
||||
RSS feed for [% IF ( branchcode ) %][% Branches.GetName( branchcode ) %][% END %] library news.
|
||||
[% ELSE %]
|
||||
RSS feed for [% IF ( branchcode ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news.
|
||||
[% END %]
|
||||
</div>
|
||||
[% ELSE %]
|
||||
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
|
||||
|
|
Loading…
Reference in a new issue