[Koha-bugs] [Bug 26302] OPAC XSLT Results: List variable number of itemcallnumbers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 29 14:27:21 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26302

--- Comment #27 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 122487
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122487&action=edit
Bug 26302: (follow-up) Handle zero callnumbers-case

As David observed while testing, we should differentiate between
the pref value 1 and 0 (or undef).
This patch does no longer convert the value to 1 as default.
And it removes an empty [ Call number: ] suffix.

Test plan:
Set resultsMaxItems or ..Unavailable to zero and check search results.
Verify that you see something like:
    Availability: Items available for loan: Centerville (3) . Items available
for reference: Centerville Staff Collection (1) . Not available: TEST (2).
MOVING (1). Withdrawn (2).

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list