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>
This commit is contained in:
phette23 2020-01-12 11:32:53 +01:00 committed by Martin Renvoize
parent 515df43af8
commit 7d78c57d97
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
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>