It would be helpful to libraries if Claims Returned was moved out of the Lost Value. It is confusing for patrons and staff to see a Claims Return as a Lost item, and there are times when an item needs to be marked both as Lost and as Claim Return, and combining those into one field can be a challenge.
Hi Donna, can you explain the use cases a bit more? For me claims returned is something like a "maybe lost". So it fits where it is now. In which situation would you mark it return claimed and lost? Or only return claimed?
We'd like to have Claims Returned (CR) be a separate category. An item can be both checked out, Overdue, or Lost (i.e.: Lost, Long Overdue (Lost)) and CR at the same time; however, they are currently sharing the "Lost Status" field. We view the claim as separate from an item's status.
I would agree too. Why is claims returned a "Lost" status?
Agreed. Our library system has wrestled with this as well.
I'm broadly in favor of this change. It seems like divorcing CR from Lost would allow more flexibility in how CR works.
Everyone says it's bad... but could you detail where it gets in the way? Maybe giving some example?
If an item is marked long overdue lost, then is claimed returned, then is returned, the lost fine won't be refunded, even if the circulation rules say it should be.
(In reply to Lisette Scheer from comment #7) > If an item is marked long overdue lost, then is claimed returned, then is > returned, the lost fine won't be refunded, even if the circulation rules say > it should be. Another example: If an item is marked as claim returned and then changed to a different lost status when it isn't found, it doesn't charge the patron because it's already in a lost status.
Created attachment 167443 [details] [review] Bug 27919: Return claims shouldn't change lost status if already set This patch prevents a return claim from changing the lost status if it has already been set. Test plan: 1) In system preferences, set the ClaimReturnedLostValue syspref to any value 2) Checkout an item to a patron 3) Set that item as lost, using a different status to the one you set in step 1 4) Create a return claim on the item 5) Check the item's lost status, it should now have been set to the value you set in step 1 6) Apply patch 7) reset_all 8) Repeat steps 1-5, this time the status should remain at the value you set in step 3 and not be overwritten by the return claim 9) Repeat steps 1,2,4 and 5 - this time the lost status should be set to the value you set in step 1 as we didn't have a pre-existing lost status
(In reply to Lisette Scheer from comment #7) > If an item is marked long overdue lost, then is claimed returned, then is > returned, the lost fine won't be refunded, even if the circulation rules say > it should be. I cannot recreate this behavior on main. I checked out an item, marked it lost and confirmed the creation of a charge, marked it claimed, and checked it in. Koha gave me its standard "A refund for the lost item charge has been applied ..." message and cleared the charge.
(In reply to Lisette Scheer from comment #8) > Another example: > > If an item is marked as claim returned and then changed to a different lost > status when it isn't found, it doesn't charge the patron because it's > already in a lost status. This one is still valid, sort of. If I: 1a - set the ClaimReturnedLostValue syspref to any value, 1b - set ClaimReturnedChargeFee to No, 1c - set WhenLostChargeReplacemement fee to Charge, 1d - set MarkLostItemAsReturned to never mark a lost item as returned (no options selected) 2 - check an item out to a patron 3 - mark item claimed 4 - resolve claim, setting item to Lost 5 - confirm patron is not charged the replacement cost 6 - edit item, changing itemlost to Missing 7 - confirm patron *has* been charged the replacement cost So you *can* get Koha to charge a patron for something they've previously claimed returned, but it's confusingly difficult
Created attachment 167496 [details] [review] Bug 27919: Return claims shouldn't change lost status if already set This patch prevents a return claim from changing the lost status if it has already been set. Test plan: 1) In system preferences, set the ClaimReturnedLostValue syspref to any value 2) Checkout an item to a patron 3) Set that item as lost, using a different status to the one you set in step 1 4) Create a return claim on the item 5) Check the item's lost status, it should now have been set to the value you set in step 1 6) Apply patch 7) reset_all 8) Repeat steps 1-5, this time the status should remain at the value you set in step 3 and not be overwritten by the return claim 9) Repeat steps 1,2,4 and 5 - this time the lost status should be set to the value you set in step 1 as we didn't have a pre-existing lost status Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Everything in this test plan worked as described. With this patch, an item "can be both checked out, Overdue, or Lost (i.e.: Lost, Long Overdue (Lost)) and CR at the same time" as described by Rebecca in comment 2. This patch does not address the issue raised by Lisette in comment 8.
I think I'd like the make this change clear in the system preference description too pretty please.. else it'll be a hidden feature/function. We went round and round in circles in this one together Matt and I and this seemed to be the most pragmatic approach we could come up with in the end. We came up with a few other options, but all of them required a lot more code and actually obfuscated the problem further. There's a lot of preferences involved and there are attached bugs that try to make some of those preferences clearer too down the line.
Created attachment 167527 [details] [review] Bug 27919: Update syspref description
While this does allow for retaining original lost status when marking an item claims returned, it doesn't allow staff to see the return claim beyond the patrons checkout page. On the details page: We show only the Lost status - we need to alert if there is a claim as well On the items tab: We show only the lost status - we need to alert if there is a claim as well For items in the claimed return status, I cannot change the lost value For items with a claim and another lost status, I can alter the lost status We need to reconcile this behavior This feels a bit like a bandaid - can you elaborate on the other options that made this worse?I am not blocking, but I think displaying the claim if not reflected in the lost status would be a requirement here.
Created attachment 168309 [details] [review] Bug 27919: (QA follow-up): Add alerts to the UI to show there are return claims This patch adds info to the UI to show when there is a return claim. It also reconciles the behaviour for allowing the lost status to be changed. Previously the lost status could not be changed if there was a return claim. This is now possible and a message is shown highlighting the fact that there is a return claim as well as the new lost status. Test plan: 1) Add a return claim to an item. 2) Check the holdings table on the record page and observe that the "Status" column now shows that there is a return claim 3) Click on the barcode for that item in the table to get to the item editing page 4) Observe that the select for the item lost status is not disabled 5) Change the status and save - the form should save correctly and display both the new status as well as a message showing that there is a return claim.
Created attachment 168310 [details] [review] Bug 27919: (QA follow-up): Add unit tests prove t/db_dependent/Circulation/ReturnClaims.t
(In reply to Nick Clemens (kidclamp) from comment #16) > While this does allow for retaining original lost status when marking an > item claims returned, it doesn't allow staff to see the return claim beyond > the patrons checkout page. > > On the details page: > We show only the Lost status - we need to alert if there is a claim as well Done > On the items tab: > We show only the lost status - we need to alert if there is a claim as well Done > For items in the claimed return status, I cannot change the lost value > For items with a claim and another lost status, I can alter the lost status > We need to reconcile this behavior The default behaviour currently is that you can't change the lost status if there is a return claim. I've changed this so you can now change it even when a return claim exists. The alerts above will be visible to show the return claim if it the status is changed > > This feels a bit like a bandaid - can you elaborate on the other options > that made this worse?I am not blocking, but I think displaying the claim if > not reflected in the lost status would be a requirement here. I initially started down the process of completely stripping the return claims feature out of the lost status entirely and using a method to check for both lost status and any return claims to determine the item status. That became incredibly complicated as there are 100s of instances of 'itemlost' that would need refactoring to now use this logic and would probably introduce technical debt as most community devs might not be aware of this new method when writing code down the line. Amending how return claims govern the lost status seemed like the best method to allow the two to co-exist without completely re-writing the entire concept.
Created attachment 171833 [details] [review] Bug 27919: Return claims shouldn't change lost status if already set This patch prevents a return claim from changing the lost status if it has already been set. Test plan: 1) In system preferences, set the ClaimReturnedLostValue syspref to any value 2) Checkout an item to a patron 3) Set that item as lost, using a different status to the one you set in step 1 4) Create a return claim on the item 5) Check the item's lost status, it should now have been set to the value you set in step 1 6) Apply patch 7) reset_all 8) Repeat steps 1-5, this time the status should remain at the value you set in step 3 and not be overwritten by the return claim 9) Repeat steps 1,2,4 and 5 - this time the lost status should be set to the value you set in step 1 as we didn't have a pre-existing lost status Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 171834 [details] [review] Bug 27919: Update syspref description Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 171835 [details] [review] Bug 27919: (QA follow-up): Add alerts to the UI to show there are return claims This patch adds info to the UI to show when there is a return claim. It also reconciles the behaviour for allowing the lost status to be changed. Previously the lost status could not be changed if there was a return claim. This is now possible and a message is shown highlighting the fact that there is a return claim as well as the new lost status. Test plan: 1) Add a return claim to an item. 2) Check the holdings table on the record page and observe that the "Status" column now shows that there is a return claim 3) Click on the barcode for that item in the table to get to the item editing page 4) Observe that the select for the item lost status is not disabled 5) Change the status and save - the form should save correctly and display both the new status as well as a message showing that there is a return claim. Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 171836 [details] [review] Bug 27919: (QA follow-up): Add unit tests prove t/db_dependent/Circulation/ReturnClaims.t Signed-off-by: Nick Clemens <nick@bywatersolutions.com>