In process items with edited lib search issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When an in process status item is edited to change the owning and circ library, searches scoped for the new library fail to retrieve the bib record.
Workflow:
Item cataloged for branch A and is in process.
Searching for title/author/
Item library edited to Branch B, still in process status.
Searching for title/author/
12/16 @Consortium
0/1 @System
0/0 @System-BranchA
Checking the item in so status is available, resolves the issue.
It looks like that a search index isn't updating for in process items?
This can negatively impact patrons and staffs when trying to place holds on new items still in process.
Thanks for the detailed report, Elaine! I happened to look over at my bug email right as this popped up and took a quick look.
The cause of this that we're trying to be as economical as possible when updating the state information for a copy, and didn't anticipate someone both changing a field on a copy /and/ moving it from one call number object to another on the same bib at the same time (in the same database transaction). When you change the owning lib on a call number, that is effectively what happens if there is a conflicting target call number.
The solution is relatively straight forward, but I don't have enough time to test all possible inputs well enough for a pullrequest this afternoon. I'll post the branch here for others to test, though.