Bug 28299: Make buildKohaItemsNamespace accept Koha::Items
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 10 May 2021 08:01:02 +0000 (10:01 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Jul 2021 17:48:57 +0000 (13:48 -0400)
commit968c3251fb93240ef08f8337a60decc05b7a09bc
treea0dd4769a39896938aecaf513eab3505a255be61
parent82cf4b82c2e1842cec4b0c5beb055179a31cb512
Bug 28299: Make buildKohaItemsNamespace accept Koha::Items

This patch makes buildKohaItemsNamespace (and its only caller,
XSLTParse4Display) accept a an optional Koha::Items resultset.

This way we don't need to calculate (from the DB) the list of hidden
itemnumbers, but solve it in one query.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/XSLT.pm
opac/opac-shelves.pl