Bug 18924

Summary: De-activating a course reserve does not update zebraqueue.
Product: Koha Reporter: Barton Chittenden <barton>
Component: Course reservesAssignee: Rogan Hamby <rogan.hamby>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: rogan.hamby
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Barton Chittenden 2017-07-10 15:22:09 UTC
Changes made to an item on course reserve are not reflected in zebra when the course is made inactive.

Steps to reproduce:

1) Set up a course in course reserves
2) Add items to the course reserve
3) Make the course active.
4) Change values at the item level that will show up in the search results -- e.g. shelving location, notforloan. These values will remain until the course is made inactive.
5) Set the course as inactive. The changed values will revert back to their original settings, but search results will still show the values of the active reserves.
6) Note that zebraqueue is not updated for the associated bib.
Comment 1 Rogan Hamby 2020-09-14 18:57:26 UTC
Current testing shows this bug is, at least now, invalid.  Using a test box with master as of 2020-09-11 took an item with location Fiction and item type BK and added it to a course as a reserve.  The item type and location appropriately changed, zebraqueue updated with it and search verified the change.  Upon removing the item it returned to the original attributes, a new entry to put into zebraqueue for the bib and search verified the change.
Comment 2 Katrin Fischer 2020-09-14 20:16:43 UTC
Hi Rogan, would you mind testing the deactivation too?

Edit the course and change the checkbox setting. The items remain on the course, but they should still change back to the original value and get reindexed while the course is inactive.
Comment 3 Rogan Hamby 2020-09-18 18:44:54 UTC
Hi Katrin,

Testing deactivating and reactivating the course this is what I see:

I took an item, itype BK and as a course make it MU.  For convenience it's the only item in my test DB (making testing easy).  My max row in zebraqueue is 310.  

I add the item to the course.  It's changed to MU, row 311 is added to zebraqueue and searching finds it as an MU itype.  

I deactivate the course via the checkbox, item changes back to BK, row 312 is added to zebraqueue and search finds it as BK.

This is the behavior I would expect unless I'm missing something (always possible).
Comment 4 Katrin Fischer 2020-09-18 20:16:42 UTC
Rogan, that sounds perfect actually. I am closing this bug as WORKSFORME. I could imagine it was fixed as part of other work on the course reserves.
Thx for testing!