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 <katrin.fischer.83@web.de>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 091133983b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
phette23 2020-01-12 11:32:53 +01:00 committed by Lucas Gass
parent ff7f0a867c
commit 1160ef6fd5
1 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,10 @@
<div id="shelfbrowser">
<h5 style="text-align: center;">
[% 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 %]
<a style="font-size: 75%;" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]" class="close_shelf" >Close shelf browser</a>
</h5>