Bug 33021: Show an alert when adding a reserved item to an item bundle
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 21 Feb 2023 10:14:06 +0000 (11:14 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 10:50:05 +0000 (12:50 +0200)
commit6561cd84b6036ce1e648bd57fa6d025d3b920868
tree5bb998d13ea2475b134a34d0663d953452fb6827
parenta2a55e284b8f928dfaf2c898e9276164cccd65aa
Bug 33021: Show an alert when adding a reserved item to an item bundle

Test plan:
1. Create an item bundle (see bug 28854 comment 458)
2. Create a biblio with one item and place a hold for this item.
3. Try to add the reserved item to the bundle
   You should see a message saying that the item is reserved. Next to
   this message should be a button "Ignore holds and add to bundle".
4. Click on the button. There should be a message saying that the item
   was added to the bundle.
5. Close the modal window and verify that the item was correctly
   added to the bundle

Signed-off-by: Lucas Gass <lucas@bywatersolutiosn.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Exceptions/Item/Bundle.pm
Koha/Item.pm
Koha/REST/V1/Items.pm
api/v1/swagger/definitions/bundle_link.yaml
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt