On Jul 13, 2006, at 7:22 PM, [EMAIL PROTECTED] wrote:
However, can anyone here tell me of any tool or tutorialof how to
create a CIP block out of a MARC 21 record?

It's not a CIP block, but Thom Hickey at OCLC created a sweet XSL stylesheet for turning MARCXML into something like a catalog card [1]. I used it for a little project I worked on [2].

Now, granted this isn't CIP. But I think that using XSLT in this way is a useful way to convert MARC data into a more presentable format. If you take this approach and come up with a good CIP block stylesheet please let us know :-) The catch is that you'll have to convert your MARC21 to MARCXML presumably, but there are several tools for that [3-4].

An alternative approach is to use something MARC::Record to dig around in the field/subfield structure and extract what you want. If you are more familiar with Perl than XSLT this might be amore palatable approach. There is a tutorial (such as it is) on using MARC::Record [5].

Perhaps someone on this list already has code to do this, so it was definitely worth asking.

Good luck!
//Ed

[1] http://www.mail-archive.com/code4lib@listserv.nd.edu/msg00396.html
[2] http://catalog.sanfordberman.org/record/xml/179088
[3] http://search.cpan.org/~esummers/MARC-XML-0.83/
[4] http://www.loc.gov/standards/marcxml/marcxml.zip
[5] http://search.cpan.org/dist/MARC-Record/lib/MARC/Doc/Tutorial.pod

Reply via email to