[Bug 38962] New: Make bulkmarcimport.pl import records properly
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Bug ID: 38962 Summary: Make bulkmarcimport.pl import records properly Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: magnus@libriotech.no QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz To reproduce in KTD: - Find a record in the staff client - Save the record as MARCXML - Import the record with bulkmarcimport.pl: perl /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -v -m --file my_record.marcxml - Log into the database and look at the last record added: MariaDB [koha_kohadev]> select * from biblio_metadata where biblionumber = (SELECT max(biblionumber) FROM biblio_metadata)\G *************************** 1. row *************************** id: 442 biblionumber: 444 format: marcxml schema: MARC21 metadata: <?xml version="1.0" encoding="UTF-8"?> <record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim"> <leader>00080 a2200049 4500</leader> <controlfield tag="005">20250124080114.0</controlfield> <datafield tag="999" ind1=" " ind2=" "> <subfield code="c">444</subfield> <subfield code="d">444</subfield> </datafield> </record> timestamp: 2025-01-24 08:01:14 record_source_id: NULL 1 row in set (0.000 sec) Only MARC fields 005 and 999 are present. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bibliothek@th-wildau.de --- Comment #1 from Jan Kissig <bibliothek@th-wildau.de> --- I can confirm the the dubious behavior on 24.12.00.005 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |critical --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- That is... not really good? Upping severity. Is this limited to MARCXML or also happens with .mrc? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 --- Comment #3 from Magnus Enger <magnus@libriotech.no> --- I only tested MARCXML. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |RM_priority CC| |dcook@prosentient.com.au, | |jonathan.druart@gmail.com -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #4 from Jan Kissig <bibliothek@th-wildau.de> --- I just rechecked and I think the problem was sitting in front of the keyboard :) The command was missing the value for -m which then defaults to ISO2709 perl /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -v -m --file my_record.marcxml' It should be perl /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -v -m=MARCXML --file my_record.marcxml -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 --- Comment #5 from Magnus Enger <magnus@libriotech.no> --- Oh my! I had -m, but I didn't actually provide a value for it... *facepalm* -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|RM_priority | --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- You know what? Better this way than it being a bad bad bug :) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38962 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org