Jonathan, thanks for your suggestions. Sorry for my sloppy use of terminology. 
You're right, I want to create a single MARC record for each item in my 
collection, and each MARC record will have fields like 245 and 270.

I think that what I would like to do is something like this:
if ($ADP) {
   my $madp = MARC::Field->new('270',' ', '4', a=>$ADP);
   $marcrecord->append_fields($madp);
}

if ($CTPY)
   my $mctpy = MARC::Field->new('270',' ', '4', b=>$CTPY);
   $marcrecord->append_fields($mctpy);
}

I think that this would create two 270 fields, one with an 'a' subfield and one 
with a 'b' subfield. Is this a problem in MARC records? Does this imply that 
there are two separate, different addresses? Is this the way it's supposed to 
be done? I thought that I had to create a single 270 field, with the various 
subfields. Will this import okay into Koha?

270 is a repeating field. Would this still work okay on a non-repeating field?

Thanks, again, for your suggestions and your continuing help.

-Kevin

>>> Jonathan Gorman <[EMAIL PROTECTED]> 08/03/05 12:52PM >>>



On Wed, 3 Aug 2005, KEVIN ZEMBOWER wrote:

> I'm a newbie trying to wrap my computer science mind around MARC

Don't know what you're using for learning marc, but you might want to keep 
http://www.loc.gov/marc.  Just remember it's based off of flat file 
processing and your computer science mind shouldn't have to horrible of a 
time with the technical manipulation of records even if some of the 
cataloging issues aren't clear.

>
> I'd like to create a 270 record (I think) from this information.


It looks like you're confusing records with fields.  A record can contain 
any number of fields, and fields will contain two indicators and certain 
subfields.  So you probably want at a record with at least the 
address field (270), and title (245).


MARC::Record has some documentation on how to add fields to a marc record 
after it's been created (see the add_fields()).


Jonathan T. Gorman
Visiting Research Information Specialist
University of Illinois at Champaign-Urbana
216 Main Library - MC522
1408 West Gregory Drive
Urbana, IL 61801
Phone: (217) 244-7839

Reply via email to