From df74ffc84b782eec48cd3287cec9846649d7c129 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 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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..f220204a2b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1476,25 +1476,30 @@ ( ) - + Call number: Collection code, call number: Location, call number: + - - , - - , .. + + + , + + + , .. + + . -- 2.20.1