[librecat-dev] MARC21 beginner question

Rolschewski, Johann Johann.Rolschewski at sbb.spk-berlin.de
Fri Feb 19 13:56:11 CET 2016


> Thanks. In lack of the right importer I created
> Catmandu::Importer::MARC::Pseudo:
> 
> https://github.com/LibreCat/Catmandu-
> MARC/commit/ee12f3dcfb98c5d16980c470f7bf75b16a5d2965
> 
> Could anyone help out with how to convert Leader and control fields?
> Lack background knowledge in MARC I cannot make any sense of this:
> 
> Leader/00-23 	*****nam##22*****#a#4500
> 007/00-01 	ta
> 008/00-39 	820305s1991####nyu###########001#0#eng##

I think these are "fixed length fields", the numbers '00-23', '00-01' & '00-39' just describe the length of the field and can be ignored. The resulting data structure should look like this:

[
['LDR', undef, undef, '_', '*****nam##22*****#a#4500'],
['007', undef, undef, '_', ' ta '],
['008', undef, undef, '_', '820305s1991####nyu###########001#0#eng##'],
...
]

The LOC example looks like an ill formatted version of MicroLIF <https://metacpan.org/pod/MARC::File::MicroLIF> & <https://metacpan.org/source/GMCHARLT/MARC-Record-2.0.6/t/sample100.lif>. This also supported by MARCedit as  "MARCBreaker" and yaz-marcdump as "line".

Grüße,

Johann




More information about the librecat-dev mailing list