From cd80329ccf1153dc124811d7ca205fdfe896f50c Mon Sep 17 00:00:00 2001 From: phette23 Date: Mon, 29 Aug 2016 14:04:33 -0700 Subject: [PATCH] Bug 17221: 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 --- 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 161f279..557443a 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 %] Shelves[% END %] - [% IF ( starting_location ) %], Shelving location: [% starting_location %][% END %] - [% IF ( starting_ccode ) %], Collection code: [% starting_ccode %][% END %] + [% IF ( starting_homebranch && ( starting_location || starting_ccode ) ) %], [% END %] + [% IF ( starting_location ) %]Shelving location: [% starting_location %][% END %] + [% IF ( ( starting_homebranch || starting_location ) && starting_ccode ) %], [% END %] + [% IF ( starting_ccode ) %]Collection code: [% starting_ccode %][% END %] Close shelf browser
-- 2.9.3