]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 15:41:26 +0000 (16:41 +0100)
commitaac8c1e36ea84deed0f4b9ad59f9f1bd44ba607f
tree7ad08a1b35cdb3d2872b7ba0197e59b15e555072
parentfdc49e0fb34e138059f7b47b87c66cc8a1347162
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>
Koha/Biblio.pm
t/db_dependent/Koha/Biblio.t