Deleting items with checked out status?

Bug #603775 reported by tji@sitka.bclibraries.ca
This bug report is a duplicate of:  Bug #857401: Staff can delete checked out copy.. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

Bug Description

Evergreen allows items with checked out status to be deleted (with prompt for confirmation). After the deletion the circulation record is still open. The item can not be checked in on Check In screen, due to "Item not found".

Thinking of the library workflow, this could cause much confusion. On one hand an item shown up in the bookdrop can not be checked in or found in the catalogue. On the other hand returned items are not cleared from patron accounts, as the item can only be checked in from the patron account.

So we need some enhancement. Two options may be considered:

1. give libraries the option of blocking deleting items with checked out status
2. close the circulation record when a checked out item is deleted

These options may be on the Library Settings Editor, so individual library can make their own choice.

Revision history for this message
Jason Etheridge (phasefx) wrote : Re: [Bug 603775] [NEW] Deleting items with checked out status?

> 1. give libraries the option of blocking deleting items with checked out status
> 2. close the circulation record when a checked out item is deleted

This even more fun if the item barcode gets re-used for a different item.

Check-In from the patron Items Out interface also fails to work with
deleted items, since the underlying API makes use of item barcode
instead of a circ or item id, so that's another thing to consider,
more API support.

Revision history for this message
Galen Charlton (gmc) wrote :

> 1. give libraries the option of blocking deleting items with checked out status
> 2. close the circulation record when a checked out item is deleted

I think that the default behavior should be to block the deletion in this case - in no event should there be an open circulation on a deleted item. Any options supplied should be concerned with whether to allow an operator to override and and mark the loan as returned before deleting the item. There is an edge case to consider. If a cataloger has an item in hand to weed and delete that is still marked as out on loan, a library may want to waive all overdue fines as (apparently) the item was not properly marked as returned in Evergreen.

Revision history for this message
tji@sitka.bclibraries.ca (tji) wrote :

>Check-In from the patron Items Out interface also fails to work with
>deleted items, since the underlying API makes use of item barcode
>instead of a circ or item id, so that's another thing to consider,
>more API support.

CheckIn on Items Out screen works (tested on 1.6.0.2). This helps us solve the issue without going to db to close the circs.

I agree with Galen. Blocking deletion should be the default behaviour. Considering the workflow in the big libraries, permission controlled deletion can be allowed. But the outstanding transactions should be taken care of.

Revision history for this message
Jason Etheridge (phasefx) wrote : Re: [Bug 603775] Re: Deleting items with checked out status?

> CheckIn  on Items Out screen works (tested on 1.6.0.2). This helps us
> solve the issue without going to db to close the circs.

This should not work currently. :( Is it possible that the item
barcode was re-used and you accidentally checked in a different
circulation involving the new item?

> I agree with Galen. Blocking deletion should be the default behaviour.

I'm in favor of this.

Revision history for this message
tji@sitka.bclibraries.ca (tji) wrote :

>> CheckIn on Items Out screen works

>This should not work currently. :( Is it possible that the item
>barcode was re-used and you accidentally checked in a different
>circulation involving the new item?

This does work. My latest test was done this morning with a dummy item. Before I checked it in on Item Out, I searched for the item on F5. I got a Not Catalogued prompt.

Revision history for this message
Jason Etheridge (phasefx) wrote :

> This does work. My latest test was done this morning with a dummy item.
> Before I checked it in on Item Out, I searched for the item on F5. I got
> a Not Catalogued prompt.

Ah, it looks like at some point we did augment the API to accept copy
id's in addition to barcodes. I just don't remember doing it. Ignore
me. :)

James Fournie (jfournie)
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Michael Peters (mrpeters) wrote :

I was giving some thought to this today and decided to try deleting a copy via the database that still had an open circ.

To my surprise, it was successful in marking the item deleted = true (following the "protect_copy_delete" rule, of course). I think this is what then frees up the barcode for use elsewhere, like the situation Jason presented.

Would a new rule on asset.copy, preventing you from marking an item "deleted = true" when it's referenced by an action.circulation row that is unclosed appropriately resolve this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.