[Koha-bugs] [Bug 29654] Add option to bulkmarimport.pl for matching on original id

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 15 17:56:01 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29654

--- Comment #5 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 128575
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128575&action=edit
Bug 29654: Add match_record_id option to bulkmarimport.pl

Add -match_record_id option to bulkmarkimport.pl. When enabled
incoming record id will be assumed to match record in Koha.

To test:

1) Before applying patch, export a biblio from staff interace
2) Import using the exported file:
   ./bulkmarcimport.pl -m="MARCXML" -v -b -file bib-xxxxx.marcxml -insert
-update -c=MARC21 -l "/tmp/import.log"
3) The import with be inserted and create a duplicate record in Koha.
   Check the import.log or search using the staff interface.
   (could also crash with duplicate key error if contains item)
4) Apply patch
5) Run the import again with the same command as above
6) A new record should been inserted
7) Remove all newly inserted duplicate records (it's important to keep
   the record the export was initially performed on)
6) Run the import again, but add the -match_record_id option
8) The original Koha record should now have been updated

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list