]> git.koha-community.org Git - koha.git/commit
Bug 26302: (QA follow-up) Prevent empty call numbers
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 9 Aug 2021 11:55:11 +0000 (11:55 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 30 Aug 2021 15:04:31 +0000 (17:04 +0200)
commiteb752d7e245eb458db5788db75eecb883f2f47b6
treedb0b66d48f93cb0a4cc65b88412386a07fe494ae
parent174554bb4da10d602ef8fe0d6ef15e18de89ba3c
Bug 26302: (QA follow-up) Prevent empty call numbers

This does not make the code easier, but here we go:

Suppose resultsMaxItems == 2.
If we would normally list two call numbers like:
    Liberty (2) [Call number: PERL F 1, PERL F 2].
If one call number would be empty, we now list:
    Liberty (2) [Call number: PERL F 1, ...].
And when both are empty, we only show a number:
    Liberty (2).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl