Bug 33496: Add 'host_items' param to Koha::Biblio->items
authorNick Clemens <nick@bywatersolutions.com>
Fri, 10 Mar 2023 12:37:49 +0000 (12:37 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 13:27:57 +0000 (13:27 +0000)
commit9d2f2a812433672965d2f818c9043a361931ef82
treeae402b4f6ab74e02861d8de81702c97d85567fd5
parent7bf9398954db2dfb211a23dd0097bd15c17c6312
Bug 33496: Add 'host_items' param to Koha::Biblio->items

This patch adds an option to the $biblio->items method to allow
retrieving the items and analytic items for a record. This is intended
to allow fetching a single Items object, and related object, rather than
having to fetch the items, and the host items, and push them together

This is step towards being able to fetch items using API/DataTables directly

To test:
1 - prove -v t/db_dependent/Koha/Biblio.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 8ff2e962b2e8e41db60cbc746a849287a83ccb65)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit aac8c1e36ea84deed0f4b9ad59f9f1bd44ba607f)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/Biblio.pm
t/db_dependent/Koha/Biblio.t