Bundle implementation in Bug 37996 does not implement marc representation of the relation between bundles and items they contain. Bug 29560 creates a link (773 in MARC21, 461 in UNIMARC) from the item in the bundle to the bundle itself. We also should also add a MARC link from the bundle to the item contained in the dedicated field (774 in MARC21, 462 in UNIMARC).
Created attachment 172395 [details] [review] Bug 38093: Add unit tests
Created attachment 172396 [details] [review] Bug 38093: Bundles: Add MARC link options should also add a link in 462 Bundle implementation in Bug 37996 does not implement marc representation of the relation between bundles and items they contain. Bug 29560 creates a link (773 in MARC21, 461 in UNIMARC) from the item in the bundle to the bundle itself. We also should also add a MARC link from the bundle to the item contained in the dedicated field (774 in MARC21, 462 in UNIMARC). TEST PLAN: 1 - Apply patches 2 - Create a bundle item (cf after for more info on this step if you are unfamiliar with bundles) 3 - Click on "manage bundle", fill with an existing barcode, click on Add marc link 4 - Click on MARC -> tab 7 (on marc21) and tab 4 on unimarc -> there should be a link in field 733 (marc21) or 462 (unimarc) 5 - Go back to the bundle and remove the item from the bundle. 6 - Click again on MARC -> precedent fields should now be empty Create a bundle : 1 - Create a new biblio/Edit an existing one, edit the field 000, the field 7 must be set to c-Collection. 2 - Go on the biblio and create a new item attached to the biblio 3 - You should see an icon "Manage bundle" on the item created
Created attachment 172397 [details] [review] Bug 38093: Bundles: Remove the link created in 462 when removing from the bundle