https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42548
--- Comment #1 from Thibaud Guillot (thibaud_g) <[email protected]> --- Created attachment 198712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198712&action=edit Bug 42548: Refactor Koha::Items->move_to_biblio with extended options New optional parameters: merge_biblio_holds, delete_empty_source_biblios, callback (reference invoked once per item to see background jobs report progress). The method now returns ( $report, $self ) following the same convention as Koha::Items->batch_update. Test plan ========= 1. Apply this patch and restart_all 2. Open record B, Edit -> "Attach items". 2 options here: - by item barcodes -> The form now has a textarea. Paste 3 barcodes for example and submit them. - by biblionumber -> Add destination biblionumber record to move all items. Both : processes are separated so you perform both options in same time. Note that you will see "Delete record" button per source biblio that became empty. 3. Include a barcode of an item linked to an order line and another linked to a serial issue: page reloads with a modal introduced by bug 42451. 4. prove t/db_dependent/Koha/BackgroundJob/BatchMoveItem.t prove t/db_dependent/Koha/Items.t Notice that I used AI to perform some checks and help me to improve feature without crashing a Koha part behavior. Also for building unit tests. This is the first time on a patch, so I made it also by curiosity. Assisted-by: Opus 4.7 (Anthropic) Sponsored-by: Université Côte d'Azur -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
