Bug 35654 - Add option to delete_items.pl to delete record if existing item getting deleted is the only one attached to the bib
Summary: Add option to delete_items.pl to delete record if existing item getting delet...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-27 14:19 UTC by Enica Davis
Modified: 2024-04-05 17:21 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enica Davis 2023-12-27 14:19:09 UTC
Apologies if there's a duplicate bug.

It would be great to add a parameter to delete_items.pl to delete the record if the last item getting deleted is the only one that remains.
Comment 1 Magnus Enger 2024-04-04 08:41:06 UTC
Sorry, what steps do you take to get to delete_items.pl?
Comment 2 Katrin Fischer 2024-04-04 19:59:04 UTC
It's a CLI script in misc/cronjobs :)
Comment 3 Angela Berrett 2024-04-05 17:11:40 UTC
Would this be optional or be coded to always happen?  We would definitely want to choose when to delete the record or not.
Comment 4 Katrin Fischer 2024-04-05 17:21:13 UTC
Hi Angela, I believe that this was filed with the idea to make it an option for the CLI script, so you'd add it or not as needed, similar to how you can check the checkbox in the GUI or leave it off.