Re: sending marc records into a script that uses MARC::Batch

2014-05-30 Thread Timothy Prettyman
n stuff but it’s not “required”. I’m > deliberately printing warnings but again the script exited prematurely. > > > > Thanks for assistance. > > John > > > > > > > > > > > > > > *From:* Timothy Prettyman [mailto:timo...@umich.edu] > *Sent

Re: sending marc records into a script that uses MARC::Batch

2014-05-29 Thread Timothy Prettyman
the field (or whatever) }; $field_008 = $field->as_string(); Hope this helps -Tim Timothy Prettyman LIT/Library Systems University of Michigan On Thu, May 29, 2014 at 12:08 PM, John E Guillory wrote: > Hello, > > Two questions please: > > > > 1. I’ve w

Re: reading and writing of utf-8 with marc::batch

2013-03-26 Thread Timothy Prettyman
Do your records have the utf8 encoding byte set in the LDR? (Byte 9 should be 'a' for utf8). -Tim Timothy Prettyman University of Michigan LIbrary/LIT On Tue, Mar 26, 2013 at 4:22 PM, Eric Lease Morgan wrote: > > For the life of me I can't figure out how to do reading a

Re: Deleting a subfield using MARC::Record

2006-05-02 Thread Timothy Prettyman
+1 I like Leif's proposal. It also might be useful to allow "code" to accept multiple values. -Tim Timothy Prettyman LIT/LIbrary Systems University of Michigan On May 1, 2006, at 5:41 PM, Leif Andersson wrote: +1 "count" can possibly be complemented or re

Re: deconstruct and reconstruct a field

2004-08-03 Thread Timothy Prettyman
In your foreach loop, you write a new 534 for every 500 that you find. The first one has the subfield a from it, the 2nd one has a subfield a from the first and second, etc. What you really want to do is something like: if (@f500s) { my @subfields = (); foreach my $f500 (@f500s) { $f500->

Re: Net::Z3950 and diacritics

2003-12-16 Thread Timothy Prettyman
(I'm sending this again, because I think my formatted record may have gotten messed up in the process of being cut/pasted. My aplogies.) I don't see how you can get a result for your search if you're using @attr 1=7. 7 is the USE attribute for an ISBN search, and your term is the local system

Re: Net::Z3950 and diacritics

2003-12-16 Thread Timothy Prettyman
I don't see how you can get a result for your search if you're using @attr 1=7. 7 is the USE attribute for an ISBN search, and your term is the local system number, I think (use attribute=12) When I do that search (@attr 1=12 3118006) against the LC bib file, using Net::Z3950 in a program es