Re: Anyone create MFHD records using MARC/Perl

2011-09-12 Thread Mark Jordan
Hi Michael (and everyone else who responded),

Thanks very much for you help,

Mark

- Original Message -
> Hi Mark,
> 
> Over the years, I've done a few projects that involved manipulation
> of, and/or creating MARC holdings (MFHD) records using the Perl
> MARC::Record module. No problems that I know of.
> 
> -- Michael
> 
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
> 
> 
> > -Original Message-
> > From: Mark Jordan [mailto:mjor...@sfu.ca]
> > Sent: Friday, September 09, 2011 4:55 PM
> > To: perl4lib
> > Subject: Anyone create MFHD records using MARC/Perl
> >
> > Hi,
> >
> > Anyone know if there are any reasons that MARC::Record et al can't
> > be used to
> > create dumps of MFHD? For example, are there any leader/indicator
> > values that
> > are specific to MFHD that are illegal in MARC bib records that might
> > cause
> > MARC/Perl to puke?
> >
> > Mark
> >
> > Mark Jordan
> > Head of Library Systems
> > W.A.C. Bennett Library, Simon Fraser University
> > Burnaby, British Columbia, V5A 1S6, Canada
> > Voice: 778.782.5753 / Fax: 778.782.3023 / Skype: mark.jordan50
> > mjor...@sfu.ca


RE: Anyone create MFHD records using MARC/Perl

2011-09-12 Thread Doran, Michael D
Hi Mark,

Over the years, I've done a few projects that involved manipulation of, and/or 
creating MARC holdings (MFHD) records using the Perl MARC::Record module.  No 
problems that I know of.

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/


> -Original Message-
> From: Mark Jordan [mailto:mjor...@sfu.ca]
> Sent: Friday, September 09, 2011 4:55 PM
> To: perl4lib
> Subject: Anyone create MFHD records using MARC/Perl
> 
> Hi,
> 
> Anyone know if there are any reasons that MARC::Record et al can't be used to
> create dumps of MFHD? For example, are there any leader/indicator values that
> are specific to MFHD that are illegal in MARC bib records that might cause
> MARC/Perl to puke?
> 
> Mark
> 
> Mark Jordan
> Head of Library Systems
> W.A.C. Bennett Library, Simon Fraser University
> Burnaby, British Columbia, V5A 1S6, Canada
> Voice: 778.782.5753 / Fax: 778.782.3023 / Skype: mark.jordan50
> mjor...@sfu.ca



Re: Anyone create MFHD records using MARC/Perl

2011-09-09 Thread Paul Hoffman
On Fri, Sep 09, 2011 at 02:55:03PM -0700, Mark Jordan wrote:
> Anyone know if there are any reasons that MARC::Record et al can't be
> used to create dumps of MFHD? For example, are there any
> leader/indicator values that are specific to MFHD that are illegal in
> MARC bib records that might cause MARC/Perl to puke?

There shouldn't be, but if you run into problems with them you might
consider trying MARC::Loop, which doesn't know or care what the data
inside a MARC record is just as long as the record has the correct
structure (24-byte leader, valid field lengths in the directory, two
bytes of indicators in each data field, etc.).

The interface is totally different from MARC::Record, though, so don't
bother with it unless you can't use MARC::Record for some reason and
(preferrably) you grok things like this:

my ($rec_id) = map  { ${ $_->[VALREF] } }
   grep { $_->[TAG] eq '001' } @$fields;

Paul.

-- 
Paul Hoffman