From 7d78c57d97b6e5e8e06a753edb8da2e68aab3c4e Mon Sep 17 00:00:00 2001 From: phette23 Date: Sun, 12 Jan 2020 11:32:53 +0100 Subject: [PATCH] Bug 17221: Remove orphan commas in shelf browser This patch adds more conditions to the shelf browser template such that the displayed text reads as a proper list no matter what combination of system preferences are utilized Sponsored-by: California College of the Arts Signed-off-by: Katrin Fischer Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc index 56673513f8..6dc1e66220 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc @@ -3,8 +3,10 @@
[% IF ( starting_homebranch ) %]Browsing [% starting_homebranch | html %] Shelves[% END %] - [% IF ( starting_location ) %], Shelving location: [% starting_location | html %][% END %] - [% IF ( starting_ccode ) %], Collection code: [% starting_ccode | html %][% END %] + [% IF ( starting_homebranch && ( starting_location || starting_ccode ) ) %], [% END %] + [% IF ( starting_location ) %]Shelving location: [% starting_location | html %][% END %] + [% IF ( ( starting_homebranch || starting_location ) && starting_ccode ) %], [% END %] + [% IF ( starting_ccode ) %]Collection code: [% starting_ccode | html %][% END %] Close shelf browser
-- 2.39.5