[Koha] Introduction / Problem with bulk import

Michael Kuhn mik at adminkuhn.ch
Mon May 28 09:05:26 NZST 2018


Hi Markus

On May 25 you worte

 > The 2 MARC records were *not* imported.

Today you wrote:

 > Uploaded my MARC21XML-Files in my Dropbox. Here is the URL:
 > https://www.dropbox.com/sh/0kr0hgebies4val/AADdKfPeOr-reITDq8q9UhZfa?dl=0
 >
 > The file ,,atlas-roh.marcxml'' is dowloaded from the DNB,
 > ,,hotten.marcxml'' ist exportet by Koha itself and ,,output.xml'' is
 > created by my conversion-script.
 >
 > All these files cause the mentioned error - it seems to me, that the
 > error is caused by some encoding-trouble ...

I have downloaded your three files and loaded them into my Koha 18.05 
demo installation, using "bulkmarcimport.pl" (see the screen output at 
the end). However, all records imported correctly (as far as I can see) 
and can be found in the demo installation (but only until tomorrow about 
5 AM when my demo installation is reset):

http://koha.adminkuhn.ch:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=539

http://koha.adminkuhn.ch:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=544

http://koha.adminkuhn.ch:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=541

http://koha.adminkuhn.ch:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=542

Of course there was an error:

Item not added (bib 542, item tag #1, barcode 00802006481): invalid 
homebranch MAS

To prevent this you need to create that missing homebranch MAS (which i 
didn't know about) in Koha menu "Administration > Libraries" before 
loading the MARC records.

Indeed there was also the error you mentioned, but to me it seems it's 
just a warning that doesn't mean much:

Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/MARC/File/XML.pm line 397, <GEN46> chunk 5.

This message is also mentioned here:

* https://github.com/LibreCat/Catmandu-MARC/issues/22
* https://rt.cpan.org/Public/Bug/Display.html?id=111473

Hope this helps.

Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch








# INSTANZ=instanzname
# export KOHA_CONF=/etc/koha/sites/$INSTANZ/koha-conf.xml
# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml 
-file /tmp/becker/atlas_roh.marcxml -v 2
Characteristic MARC flavour: MARC21
LDR 00416nam0a2200121 i 4500
999    _c539
        _d539
001     0000401
003     OSt
005     20180305195910.0
008     17 628 ||||||||||||||||||||||||||||   ||
040    _cOSt
245 10 _aAtlas :
        _bÖstliches Ruhrgebiet; Karte + Luftbild. Maßstab 1 : 20 000 /
        _cHrsg. vom Kommunalverband Ruhrgebie
250    _aAusg. 199
260    _aEssen
        _bKommunalverband Ruhrgebiet
        _c1999
650    _aLuftbild
        _xKartenwerk
        _zRuhrgebiet
        _zNordrhein-Westfale
942    _2z
        _cBK
Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/MARC/File/XML.pm line 397, <GEN46> chunk 2.

1 MARC records done in 0.157258033752441 seconds

# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml 
-file /tmp/becker/hotten.marcxml -v 2
Characteristic MARC flavour: MARC21
LDR 02178pam a2200553 c 4500
999    _c540
        _d540
001     1061000028
003     DE-101
005     20180524142526.0
007     tu
008     141117s2015    gw ||||| |||| 00||||ger
015    _a15,A25
        _z14,N48
        _2dnb
016 7  _2DE-101
        _a1061000028
020    _a9783498064358
        _cPp. : EUR 19.95 (DE), EUR 20.60 (AT), sfr 28.50 (freier Pr.)
020    _a3498064355
024 3  _a9783498064358
035    _a(DE-599)DNB1061000028
035    _a(OCoLC)897128560
040    _a1245
        _bger
        _cDE-101
        _d9999
041    _ager
044    _cXA-DE-SH
082 04 _81\x
        _a070.92
        _qDE-101
        _222/ger
083 7  _a070
        _a791
        _qDE-101
        _223sdnb
084    _a070
        _a791
        _qDE-101
        _2sdnb
085    _81\x
        _b070.92
090    _ab
100 1  _0(DE-588)121165574
        _0http://d-nb.info/gnd/121165574
        _0(DE-101)121165574
        _aSchneider, Wolf
        _d1925-
        _4aut
245 00 _aHottentottenstottertrottel
        _bmein langes, wunderliches Leben
        _cWolf Schneider
250    _a1. Aufl.
264  1 _aReinbek bei Hamburg
        _bRowohlt
        _c2015
300    _a447 S.
        _bIll.
        _c22 cm
500    _aLiteraturangaben
600 17 _0(DE-588)121165574
        _0http://d-nb.info/gnd/121165574
        _0(DE-101)121165574
        _aSchneider, Wolf
        _d1925-
        _2gnd
653    _a(Produktform)Hardback
653    _aAutobiographie
653    _aDeutsche Zeitgeschichte
653    _aJournalismus
653    _aJournalistenschule
653    _aNDR Talkshow
653    _a(VLB-WN)1951: Hardcover, Softcover / Sachbücher/Kunst, 
Literatur/Biographien, Autobiographien
655  7 _aAutobiographie
        _2gnd
776 08 _iOnline-Ausg.
        _aSchneider, Wolf, 1925-
        _tHottentottenstottertrottel
        _dReinbek : Rowohlt E-Book, 2015
        _hOnline-Ressource
        _w(DE-101)1073868982
850    _aDE-101a
        _aDE-101b
856 42 _mB:DE-101
        _qapplication/pdf
        _uhttp://d-nb.info/1061000028/04
        _3Inhaltsverzeichnis
856 42 _mX:MVB
        _qtext/html
 
_uhttp://deposit.d-nb.de/cgi-bin/dokserv?id=4826460&prov=M&dok_var=1&dok_ext=htm
        _3Inhaltstext
942    _2ddc
        _cMONO
Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/MARC/File/XML.pm line 397, <GEN46> chunk 2.

1 MARC records done in 0.226579189300537 seconds

# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml 
-file /tmp/becker/output.xml -v 2
Characteristic MARC flavour: MARC21
Item not added (bib 541, item tag #1, barcode ): invalid homebranch MAS

LDR 00000pam a2200000 c 4500
003     MAS

001     0000194

245    _aFlug über das Ruhrgebiet

        _bein Bilderbuch

        _cFotos : Corneel Voigt; Texte : Wolfgang Schulze ; Hrsg. : 
Kommunalverband Ruhrgebiet

250    _a4. Aufl.

260    _c1993

700    _aVoigt, Corneel

700    _aSchulze, Wolfgang

700    _aMustermann, Max

952    _aMAS

        _i94/269

        _oBe 009 / 4

        _t0000194001

999    _c541
        _d541
Item not added (bib 542, item tag #1, barcode 00802006481
): invalid homebranch MAS

LDR 00000pam a2200000 c 4500
003     MAS

001     9052982

100    _aKnapp, Radek

245    _aGebrauchsanweisung für Polen

        _cRadek Knapp

250    _a3. Aufl.

260    _c2006

952    _aMAS

        _iP2006/005

        _oP2006/005

        _p00802006481

        _t9052982001

999    _c542
        _d542
Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/MARC/File/XML.pm line 397, <GEN46> chunk 5.

2 MARC records done in 0.612886905670166 seconds






More information about the Koha mailing list