From 3d61ff3e5da5b8ce9fee7b7f1eb04189c7f83f24 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 20 Apr 2017 03:12:14 +0000 Subject: [PATCH] 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 Signed-off-by: anafe Signed-off-by: iflora Signed-off-by: Kyle M Hall Signed-off-by: Mason James --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 6 +++++- 1 file changed, 5 insertions(+), 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 2ec85cf321..dbada14372 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -52,7 +52,11 @@
- RSS feed for [% IF ( branchcode ) %][% Branches.GetName( branchcode ) %] and [% END %] system-wide library news. + [% 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 ) %] and [% END %] system-wide library news. + [% END %]
[% END %] -- 2.39.5