[librecat-dev] missing fields in MARC to CSV conversion
Rolschewski, Johann
Johann.Rolschewski at sbb.spk-berlin.de
Tue Aug 29 17:32:25 CEST 2017
... or for little datasets use --collect_fields option <https://metacpan.org/pod/Catmandu::TabularExporter#collect_fields>.
> -----Ursprüngliche Nachricht-----
> Von: librecat-dev-bounces at lists.uni-bielefeld.de [mailto:librecat-dev-
> bounces at lists.uni-bielefeld.de] Im Auftrag von Rolschewski, Johann
> Gesendet: Dienstag, 29. August 2017 17:22
> An: krempe at ub.fu-berlin.de; librecat-dev at lists.uni-bielefeld.de
> Betreff: Re: [librecat-dev] missing fields in MARC to CSV conversion
>
> Hi Christoph,
>
> the columns of the CSV file are set by the occurrence of fields in the first
> record, see
> <https://metacpan.org/pod/Catmandu::TabularExporter#fields>. Just set
> the --fields option with all fields:
>
> $ catmandu convert MARC to CSV --fix marc2csv.fix --fields sep-
> id,publ,title,stitle,... < file.mrc
>
> Grüße,
>
> Johann
>
> > -----Ursprüngliche Nachricht-----
> > Von: librecat-dev-bounces at lists.uni-bielefeld.de [mailto:librecat-dev-
> > bounces at lists.uni-bielefeld.de] Im Auftrag von Christoph Krempe
> > Gesendet: Dienstag, 29. August 2017 17:14
> > An: librecat-dev at lists.uni-bielefeld.de
> > Betreff: [librecat-dev] missing fields in MARC to CSV conversion
> >
> > Dear all,
> >
> > I'm trying to create a CSV file from several fields of a MARCXML file.
> > My fixes look like
> >
> > marc_map('035/12-18','sep-id')
> > marc_map('989a','publ')
> > marc_map('245a','title')
> > marc_map('245b','stitle')
> > marc_map('773t','journal')
> > marc_map('773g','volume')
> > marc_map('773x','issn')
> > marc_map('773z','isbn')
> > marc_map('100','creator')
> > marc_map('260a','place')
> > marc_map('260b','publisher')
> > marc_map('260c','year')
> > marc_map('024a','doi')
> > marc_map('856u','urn')
> > marc_map('041a','language')
> > remove_field('_id')
> > remove_field('record')
> >
> > The problem is: If I convert a MARCXML file with 1000 records, the DOI
> > in MARC 024 is NOT created in the CSV file. If I convert a single
> > MARCXML record from that file with a DOI, the DOI is created in the
> > CSV file. The single MARCXML record looks like:
> >
> > <?xml version="1.0" encoding="UTF-8"?> <collection>
> > <record>
> > <leader>01005nad a22002892u 4500</leader>
> > <controlfield tag="005">20160530 </controlfield>
> > <controlfield tag="007">tu|||||||||||||||||||||</controlfield>
> > <controlfield tag="008">160530| xx ro ||| | ger
> > u</controlfield>
> > <controlfield tag="009">50 aa|||||||||||||</controlfield>
> > <controlfield tag="009">52 aaau||||||||||||</controlfield>
> > <controlfield tag="001">9963195902885</controlfield>
> > <datafield tag="024" ind1="7" ind2=" ">
> > <subfield code="a">10.1515/zaes-2015-0006</subfield>
> > <subfield code="2">doi</subfield>
> > </datafield>
> > <datafield tag="035" ind1=" " ind2=" ">
> > <subfield code="a">BI-00716126</subfield>
> > </datafield>
> > <datafield tag="035" ind1=" " ind2=" ">
> > <subfield code="a">(DE-188-SEP)51016</subfield>
> > </datafield>
> > <datafield tag="040" ind1=" " ind2=" ">
> > <subfield code="c">DE-188</subfield>
> > </datafield>
> > <datafield tag="041" ind1="0" ind2="7">
> > <subfield code="a">ger</subfield>
> > <subfield code="2">ISO 639-2</subfield>
> > </datafield>
> > <datafield tag="100" ind1="1" ind2=" ">
> > <subfield code="a">Morales, Antonio J.</subfield>
> > </datafield>
> > <datafield tag="245" ind1="0" ind2="0">
> > <subfield code="a">Iteration, Innovation und Dekorum in
> > Opferlisten des Alten Reichs.</subfield>
> > </datafield>
> > ....
> > </record>
> > </collection>
> >
> > Any idea why?
> >
> > --
> >
> > Mit freundlichen Grüßen
> >
> > Ch. Krempe
> >
> > __________________________________________________
> >
> > Christoph Krempe
> > Abt. Datenverarbeitung / Fachreferat Philosophie
> > Universitätsbibliothek der FU Berlin Garystraße 39
> > D-14195 Berlin
> >
> > Tel.: 030 83854583
> > Fax: 030 838454583
>
>
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-
> bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/
More information about the librecat-dev
mailing list