Hi Jackie,

Sorry for the delay, I was travelling past one week and couldn't get my hand on this one. I've done two changes and it works now. Attached is the edited script.

1. Pipe (|) is a special character in Perl and it needs to escaped (\|) on line 88.
2. I'm not sure on the 'binmode' function to work on this module. I guess you might have to use MARC::Charset::UTF8 or something similar.

Hope this helps.

Cheers,
Saiful


On 11/3/06, Jackie Shieh <[EMAIL PROTECTED]> wrote:

Here is what I have... not working ver well.
See attached.

perl: pam2.pl
input: FpamTest.txt
outpu: Testout.dat


On Thu, 2 Nov 2006, Saiful Amin wrote:

> Hi,
>
> Can you share your code?
>
> -Saiful
>
> On 11/2/06, Jackie Shieh <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have a tab delimited text file of 8 columns.  Its 1st column
>> contains author entry (most are main entry, others not) like
>> this below.
>>
>>
>> 1001 |a Du Moulin, Pierre, |d 1568-1658
>> 11010|a France. |b Conseil d'Etat
>> 1001 |a Vendme, Csar de Bourbon, |c duc de, |d 1594-1665.
>> 130 0|a Interim of Augsburg (1548)
>> 1001 |a Morgues, Matthieu de, |c sieur de Saint-Germain, |d 1582-1670.
>> 10010|a Jouan, Abel.
>> 7201 |a [Du Moulin, Pierre], |d 1568-1658
>> 7201 |a Henrici IV. Christianissimi Franciae et Navarrae regis
>> 1001 |a Morgues, Matthieu de, |c sieur de Saint-Germain, |d 1582-1670.
>> 151  |a United Provinces of the Netherlands
>> 10010|a Sirmond, Jean, |d 1589?-1649
>> 1001 |a Scudry, |c M. de |q (Georges), |d 1601-1667
>> 1001 |a Grenaille, |c M. de |q (Franois), |c sieur de Chatounieres, |d
>> 1616-1680.
>> 10010|a Sable, Abel Servien, |c marquis de, |d 1593-1669.
>>
>>
>> I was successful in getting the tag and indicators proper placed
>> using MARC::Record.
>>
>> At this time, I am strugging of putting the data beyond subfield a
>> in its proper subfield code and position. I was wondering if anyone
>> has come across something like this and have already had a solution
>> to this?  Thank you very much for your help!
>>
>> Regards,
>>
>> --Jackie
>>
>> |Jackie Shieh
>> |Special Projects & Collections Team
>> |Harlan Hatcher Graduate Library
>> |University of Michigan
>> |920 North University
>> |Ann Arbor, MI  48109-1205
>> |Phone: 734.936.2401   FAX: 734.615.9788
>> |E-mail: [EMAIL PROTECTED]
>>

--
Saiful Amin
Information Specialist
Edutech India
2/2, Union Street
Off Infantry Road
Bangalore 560001, India
Tel: +91 80 4112 3437
M: +91 93438 26438
Fax: +91 80 4151 7801
www.edutechindia.com
"Enhancing knowledge and skills for success, lifelong."

Attachment: pam2.pl
Description: Binary data

Reply via email to