[librecat-dev] MARC21 beginner question

Jakob Voß Jakob.Voss at gbv.de
Fri Feb 19 13:42:50 CET 2016


Patrick wrote:

> There are several ways:
 >
> $ catmandu convert Null --fix 'marc_add(100,ind1:1,a:"Surname,
> Given")' to MARC
>
> $ echo '000000000 1001  L $$aSurname, Given’ | catmandu convert MARC
> --type ALEPHSEQ to MARC
>
> The problem is that the MARC importers we use currently can’t handle
> MARC fragments except for the ALEPHSEQ version. Each of them expect a
> complete MARC record with at least a leader a control field and all
> that.  I guess the Catmandu Fix in my first example is the simplest
> route. Or, we should need to create a new LOC serialization
> importer.

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##

Cheers
Jakob

-- 
Jakob Voß <jakob.voss at gbv.de>
Verbundzentrale des GBV (VZG) / Common Library Network
Platz der Goettinger Sieben 1, 37073 Göttingen, Germany
+49 (0)551 39-10242, http://www.gbv.de/


More information about the librecat-dev mailing list