From b4e4553eb1b739c51715f2ca65648edb3363d3e8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 9 Aug 2021 11:55:11 +0000 Subject: [PATCH] Bug 26302: (QA follow-up) Prevent empty call numbers Content-Type: text/plain; charset=utf-8 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 --- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index d2867e54fe..9d058df7a8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1476,7 +1476,7 @@ ( ) - + Call number: @@ -1484,16 +1484,21 @@ Location, call number: - + - , + + + , + + + , .. + - , .. -- 2.20.1