Bug 39647

Summary: Koha incorrectly says MARC import staging failed if all bibs were skipped due to matching rules
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: CatalogingAssignee: Emily Lamancusa (emlam) <emily.lamancusa>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Emily Lamancusa (emlam) 2025-04-15 20:13:14 UTC
When staging a MARC file for import, one might choose to ignore the incoming record if a match is found in the catalog, but still process items - for example, when purchasing additional items for existing bib records.

Currently, the MARC staging background job measures its progress based on how many bib records were processed, and does not account for item processing in its progress measurement at all. If 0 record were processed, it is assumed that the import failed and displayed as such.

However, this is incorrect in the case where the incoming records were supposed to be ignored at the bib level and only items should be added. It is confusing to staff when they see an error message seeing that the import staging failed, when in fact it went through as intended.