Bug 14210

Summary: Manage staged MARC records deletes replaced item when undoing import into catalog
Product: Koha Reporter: Nick Clemens <nick>
Component: ToolsAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P3 CC: acampbell, andrewfh, aspencatteam, balestrieri, dch, dcook, katrin.fischer, rkuiper
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 Nick Clemens 2015-05-15 20:50:13 UTC
If records are staged with the item rule:
Replace items if matching bib was found (only for existing items)

And some items are successfully updated those items are deleted when you click:
Undo import into catalog.
Comment 1 Katrin Fischer 2015-05-15 20:54:23 UTC
I think the item values from before the update are not stored anywhere, os it might be a problem turning them back... maybe what we could do for now is print a big warn?
Comment 2 Owen Leonard 2016-06-21 16:11:40 UTC
Is this report specific to 3.18.x? If it is valid in master, please mark it as
such.
Comment 3 Katrin Fischer 2020-01-07 21:38:05 UTC
I wonder if we store if the item was added or replaced - if it was replaced, we could keep it and only delete it if it was added. Would still need a big note somewhere and documentation.
Comment 4 AspenCat Team 2020-06-27 07:01:43 UTC
Although a big warn would certainly be helpful, it would be better to get it fixed (so undo could happen). We are on elastic search. Warn should include advising to keep a marc file of the previous state of affairs to load to recreate the items that disappeared.
Comment 5 Andrew Fuerste-Henry 2021-12-20 19:56:35 UTC
This is still true and still bad.
Comment 6 Katrin Fischer 2022-02-20 00:33:58 UTC
I am raising severity as this is about data loss.
Comment 7 Rhonda Kuiper 2023-02-22 19:09:34 UTC
Checking on the status of this Bug.  As Katrin noted, this is about data loss.
Comment 8 CB 2023-04-18 17:14:09 UTC
I agree.  It erases data.  From an acquisitions standpoint, I need to add the item back on to the Bib record and input the item information again.  It seems like the reversion should simply "undo" the process.
Comment 9 Rhonda Kuiper 2023-07-18 16:57:55 UTC
After a discussion in the koha-US acquisitions SIG, we determined that this bug is negatively impacting a number of libraries.  This bug is deleting item records when the import is undone.