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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Jul 2023 13:08:36 +0000 (10:08 -0300)
commit8ff2e962b2e8e41db60cbc746a849287a83ccb65
tree7768aa00929aff6aa12636b27c4772bf369536fb
parent68aeaf5c4c6aeeca4347995e5f74464929c20ac5
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>
Koha/Biblio.pm
t/db_dependent/Koha/Biblio.t