Bug 33497: Use 'host_items' param to fetch all items at once
authorNick Clemens <nick@bywatersolutions.com>
Fri, 10 Mar 2023 12:40:30 +0000 (12:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 15:41:29 +0000 (16:41 +0100)
commitdc273a8dfe384b7c847a23b842f1dde601537d82
tree14260729cc644c40d69d927a2c37b79faac9bcdc
parent552c25f4f95e0ab6f70d93e5581f0acff4f66d7e
Bug 33497: Use 'host_items' param to fetch all items at once

This patch adjusts the detail page to fetch items and host items
together, and prefetches transfers and checkouts

To test:
1 - Enable easy analytics
2 - Attach some items to a bib
3 - Checkout an item on the bib
4 - View the details page
5 - Apply patch
6 - View details page, confirm nothing has changed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2cf00f1a49a7b9f8d5ca105e2dd1add5d5d95198)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
catalogue/detail.pl