[Koha] bulkmarcimport.pl "MARC dumping" option NOT displaying MARC record, for "verbose mode" with UNIMARC records in ISO 2709 format

Ricardo Dias Marques lists at ricmarques.net
Wed Jun 8 04:26:44 NZST 2011


Hi all,

It's been a long time since I last posted to the Koha mailing list!  :)

Today (7-Jun-2011), I'm doing some testing with "bulkmarcimport" tool
(the "bulkmarcimport.pl" script available at "misc/migration_tools")
in a Koha 3.0.x git installation (this git version has the last commit
dated from Sep-2010).
I'm doing the testing with a  "ISO 2709" file that contains a single
record in UNIMARC.

By running the bulkmarcimport command with the help option -
"bulkmarcimport.pl -h" - I get the following info for the "v"
("verbose mode") switch:
----------------------------------------
# /koha/koha30xclone/misc/migration_tools/bulkmarcimport.pl -h
Small script to import bibliographic records into Koha.

Parameters:
  h      this version/help screen
  file   /path/to/file/to/dump: the file to import
  v      verbose mode. 1 means "some infos", 2 means "MARC dumping"
[...]
----------------------------------------


So, I thought that if I ran the command with the "v 2" option, I would
get a "dump" of the MARC record. That doesn't seem to be case,
however.


First, this is the (correct) content of the MARC record using the tool
"yaz-marcdump":
----------------------------------------
# yaz-marcdump sample.iso
00531    a2200181   4500
100    $a 20100121              pory50      ba
090    $b 790290
101    $a eng
200    $a STANDARDIZATION OF DATA FORMATS FOR A NETWORK OF PROCESS
COMPUTERS IN:PROC.OF THE EURO IFIP 79, LONDON, SEP.25-28, 1979
210    $a AMSTERDAM $c NORTH-HOLLAND $d 1979
606    $a NORMALIZAÇÃO
606    $a REDE DE COMPUTADORES
606    $a IFIP
606    $a REUNIÕES
830    $d 19990127 $e 20070320 $m ricardo
990    $c 8
994    $a ARQUIVO
995    $f 2064 $k 0097
----------------------------------------


OK. Now, the output of a "test" bulkmarcimport run with this ISO file,
with the "v 1" option ("some infos"):
----------------------------------------
# /koha/koha30xclone/misc/migration_tools/bulkmarcimport.pl -t -c
UNIMARC -v 1 -file sample.iso

TESTING MODE ONLY
    DOING NOTHING
===============
Characteristic MARC flavour: UNIMARC
.
1 MARC records done in 0.00444483757019043 seconds
----------------------------------------


And finally, the output of a "test" bulkmarcimport run with this ISO
file, with the "v 2" option ("MARC dumping"):
----------------------------------------
 # /koha/koha30xclone/misc/migration_tools/bulkmarcimport.pl -t -c
UNIMARC -v 2 -file sample.iso

TESTING MODE ONLY
    DOING NOTHING
===============
Characteristic MARC flavour: UNIMARC
.
1 MARC records done in 0.00458002090454102 seconds
----------------------------------------


As you can say "-v 2" is displaying the same output as "-v 1".
Shouldn't the "-v 2" option of "bulkmarcimport" display the content of
the MARC record? Am I doing something wrong?

Thanks in advance!  :)

Cheers,
Ricardo Dias Marques
lists AT ricmarques DOT net
Installation Guide for "Installing Koha 3.0.0 on openSUSE 11.0"
http://wiki.koha-community.org/wiki/Koha_3.0.0_on_openSUSE_11.0


More information about the Koha mailing list