[OPEN-ILS-GENERAL] EG 2.0: problem Marc2bre - Global Flags "Maintain 001-003-035 according MARC" and "TCN=Internal ID"
Repke de Vries
repke at xs4all.nl
Fri Feb 11 10:36:04 EST 2011
Command-line importing with marc2bre + pg_loader [1] in EG RC2
Virtual Image, the import went fine but the Global Flags settings
"Maintain 001-003-035 according MARC" = TRUE and "Cat: Use Internal
ID for TCN Value" = TRUE are being ignored.
In other words: I am getting a Record ID and TCN that are
derivatives of the control number in the imported 001 field: wrong.
Can this be a result of calling marc2bre with --idfield=001 rather
than --tcnfield=001 ?
As per my Global Flag settings: I don't want TCN's to follow from my
imported record but maybe this is a way to kick the Global Flag
settings into action when doing the command-line import?
Or should one of the pg_loader calling parameters be different to get
the desired Global Flag settings behaviour?
The odd thing is: using marc2are for authority records importing
[2], everything works as expected with Global Flag settings being
followed.
Help appreciated !
Repke de Vries, IISH
[1] according to http://svn.open-ils.org/trac/ILS/browser/trunk/Open-
ILS/tests/datasets/README
and as follows:
PERL5LIB=/openils/lib/perl5/ perl /home/opensrf/Evergreen-2.0/Open-
ILS/src/extras/import/marc2bre.pl --idfield 001 --idsubfield b --
marctype XML --db_host localhost --db_name evergreen --db_user
evergreen --db_pw evergreen bibliographical.xml | perl /home/opensrf/
Evergreen-2.0/Open-ILS/src/extras/import/pg_loader.pl -or bre -or mrd
-or mfr -or mtfe -or mafe -or msfe -or mkfe -or msefe -a mrd -a mfr -
a mtfe -a mafe -a msfe -a mkfe -a msefe | psql -d evergreen -h
localhost -U evergreen -h localhost
The "--idsubfield b" is a mistake 'cause the records are straight
MARC with the ID in 001; marc2bre gracefully ignored this mistake
[2]
PERL5LIB=/openils/lib/perl5/ perl /home/opensrf/Evergreen-2.0/Open-
ILS/src/extras/import/marc2are.pl --marctype XML --startid 200
bibliographical_authorities.xml > bibauth.are
followed by the pg_loader en psql steps.
More information about the Open-ils-general
mailing list