[Koha-bugs] [Bug 20811] Fix wrong usage of ModBiblio in bulkmarcimport.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Jul 8 20:18:54 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20811
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alex.arnaud at biblibre.com,
| |katrin.fischer at bsz-bw.de,
| |martin.renvoize at ptfs-europe
| |.com,
| |stephane.delaune at biblibre.c
| |om
--- Comment #4 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Need some reinforcements here, I think we are looking at a bigger issue.
With and without the patch I don't get it to work with the -update option:
$ ./bulkmarcimport.pl -b -file ../../data/Katrin-biblios.mrc -v -update
Characteristic MARC flavour: MARC21
.DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha_kohadev`.`biblio_metadata`, CONSTRAINT
`record_metadata_fk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio`
(`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT
INTO `biblio_metadata` ( `format`, `marcflavour`, `metadata`) VALUES ( ?, ?, ?
)" with ParamValues: 0='marcxml', 1='MARC21', 2="<?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>00647cas a2200229 4500</leader>
<controlfield tag="001">012079189</controlfield>
<controlfield tag="003">DE-576</controlfield>
<controlfield tag="005">20180708032646.0</controlfield>
<controlfield tag="007">tu</controlfield>
<controlfield tag="008">860818cuuuuuuuuxx m 0ita
c</controlfield>
<datafield tag="016" ind1=" " ind2=" ">
<subfield code="a">(OCoLC)72970470</subfield>
</datafield>
<datafield tag="035" ind1=" " ind2=" ">
<subfield code="a">(DE-599)BSZ012079189</subfield>
</datafield>
<datafield tag="040" ind1=" " ind2=" ">
<subfield code="a">DE-576</subfield>
<subfield code="b">ger</subfield>
<subfield code="c">DE-576</subfield>
<subfield code="e"..."] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line
1832, <GEN27> line 1.
Use of uninitialized value in sprintf at
/home/vagrant/kohaclone/Koha/Exceptions/Exception.pm line 19, <GEN27> line 1.
Invalid parameter passed, biblionumber= does not exist
I've also tried using it with match:
$ ./bulkmarcimport.pl -b -file ../../data/Katrin-biblios.mrc -v -match
Control-number,001 -update
The result is always the same.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list