Bug 14210 - Manage staged MARC records deletes replaced item when undoing import into catalog
Summary: Manage staged MARC records deletes replaced item when undoing import into cat...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P3 major
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 20:50 UTC by Nick Clemens (kidclamp)
Modified: 2025-01-20 15:19 UTC (History)
12 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 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.
Comment 10 Laura Escamilla 2024-06-21 16:15:58 UTC
+1
Comment 11 CB 2024-08-09 19:49:42 UTC
Any update to this bug?  Any error on an import of records should be able to be undone (as the big yellow button in koha states). It should reverse the import and allow the user to reimport the batch with the correct parameters without data loss. Currently, undoing an import erases the item record and the acquisitions record.  This is important data.  One can go in and manually add a new item record, but the record on the acquisitions tab cannot be re-added.  Data is lost, and the new item will no longer be associated with the basket and the invoice.
Comment 12 Katrin Fischer 2024-08-12 14:57:11 UTC
I think the least we could do is add a warning for now that it won't work for item records and don't delete them/leave them for manual deletion if required.

If the record is also removed, this might not work of course.
Comment 13 Bernard 2024-11-07 16:39:32 UTC
+1