https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43905
Bug ID: 43905
Summary: Staged MARC import: replacing an item attached to
another record does not reindex that record
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: MARC Bibliographic record staging/import
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
When a staged MARC import is committed with the item action "replace",
_batchCommitItems looks for the existing item by itemnumber (952$9) or
by barcode and updates it with ModItemFromMarc, using
skip_record_index. That item can be attached to a different record than
the one being imported (the code keeps it where it is: "We assume that
when replacing items we do not want to move them").
At the end, BatchCommitRecords only reindexes the imported records, so
the record the replaced item belongs to is not reindexed, and the search
results keep showing the old item data (for example, the old call
number). The holds queue is not updated for that record either.
To reproduce:
1. Take a record A with an item with barcode X.
2. Stage a file with a record that matches another record B (for
example by ISBN), with a 952 with barcode X and a different call
number. Use the ISBN matching rule, "Ignore incoming record" if a
match is found, and "Replace items if matching bib was found".
3. Import the batch: the item is updated in the database, but the
search results still show the old call number for record A.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/