https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43058

--- Comment #1 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 201885
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201885&action=edit
Bug 43058: Migrate C4::Reserves from get_hostitemnumbers_of to
Koha::Biblio->items

CanBookBeReserved() used C4::Items::get_hostitemnumbers_of to manually
build a combined item search (own items + host items). Replace it with
Koha::Biblio->items({ host_items => 1 }) which encapsulates the same
logic via the MetadataExtractor.

Test plan:
1. Apply this patch
2. Run:
   prove t/db_dependent/Reserves.t
   => SUCCESS: All tests pass
3. Note the new subtest 'CanBookBeReserved() with host items
   (analytical records)' which verifies:
   - Analytic records can be reserved via host items when
     EasyAnalyticalRecords is enabled
   - They cannot when the preference is disabled

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to