[librecat-dev] Moving MARC 600 to PICA 044A
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Wed Jan 31 19:17:11 CET 2024
Hi
This is the fix:
do marc_each()
if marc_has('650')
marc_copy('650','tmp')
set_field(tmp.0.tag,'044')
set_field(tmp.0.ind1,'A')
set_field(tmp.0.ind2,' ')
add_field(tmp.0.subfields.$prepend.n,600)
marc_paste('tmp')
remove_field('tmp')
end
end
For some reason Catmandu::MARC doesn't like the $N (capital N) subfield. But, I can add a $n (lowercase n) subfield this way. I need to check why capitals are not supported.
Patrick
________________________________
From: librecat-dev-bounces at lists.uni-bielefeld.de <librecat-dev-bounces at lists.uni-bielefeld.de> on behalf of Siebert, Dr. Martina <Martina.Siebert at sbb.spk-berlin.de>
Sent: 31 January 2024 16:53
To: librecat-dev at lists.uni-bielefeld.de <librecat-dev at lists.uni-bielefeld.de>
Subject: [librecat-dev] Moving MARC 600 to PICA 044A
Dear all,
I am trying to move MARC 600 (and 650 etc.) LOC subject headings to PICA+ 044A. 600er fields are repeatable as are most of their subfields.
Good thing: PICA+ 044A just reproduces the MARC 600er fields with all their subfields as they are, only prepending it with $N giving the original MARC tag and an indicator ($S) which is fix for each of the 6XX MARC fields. My problem is the copying of the set of repeatable subfields from MARC to PICA.
To put it simple:
I have this
=600 10$aSen Sharma, Partha Sarthi,$d1970-$xTravel$zIndia$zAndaman and Nicobar Islands.
=600 10$aDescartes, René,$d1596-1650$xPolitical and social views.
and I need this
044A $N600$Sp$aPartha Sarthi$d1970-$xTravel$zIndia$zAndaman and Nicobar Islands
044A $N600$Sp$aDescartes, René$d1596-1650$xPolitical and social views
The “Catmandu Cheatsheet” lists a “marc_copy”/”marc_paste” routine which does the trick for moving all subfields from one MARC tag to another MARC tag. But how to “copy” this from MARC and “paste” it to PICA? And how to put this within a marc_each() loop?
Best,
Martina
______________________________________________
Dr. Martina Siebert
Ostasienabteilung | CrossAsia
Staatsbibliothek zu Berlin – Preußischer Kulturbesitz
martina.siebert at sbb.spk-berlin.de<mailto:martina.siebert at sbb.spk-berlin.de>
www.staatsbibliothek-berlin.de<http://www.staatsbibliothek-berlin.de/>
Im Rahmen der E-Mail-Kommunikation werden gegebenenfalls personenbezogene Daten verarbeitet.
Unsere Hinweise zum Datenschutz finden Sie hier: http://sbb.berlin/datenschutz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20240131/ecf5339f/attachment.html>
More information about the librecat-dev
mailing list