Re: Converting XML to MARC without reading a file?

2018-04-19 Thread Dr. Saiful Amin
> ​The function new_from_xml() should work without filehandle I think. I'm > pulling a bunch of MARCXML records from a database and the code looks like > this: > ​My bad. That works only for individual records, not for a batch.​

Re: Converting XML to MARC without reading a file?

2018-04-19 Thread Dr. Saiful Amin
On Thu, Apr 19, 2018 at 5:55 AM, Andy Kohler wrote: > Hi - > > I'm pulling records from the WorldCat Search API in MARCXML, and need to > convert them to binary MARC for further evaluation, which I'll do via > MARC::Record. > > Problem: Converting from MARCXML via MARC::File::XML seems to require

Re: scripts imported into dancer

2016-09-10 Thread Dr. Saiful Amin
Hi Marios, Welcome to the forum. It helps if you can share some code samples of your efforts so far. Not a hacker myself, but a library specialist with some experience in MARC-related coding. Long back I did a small project in CGI-app (I think it pre-dates Dancer like framework) to convert Excel

Re: script help list all files in folders and subfolders

2015-03-31 Thread Dr. Saiful Amin
Hi, Wrote this almost a decade back for a similar need. I've removed some irrelevant lines, but didn't test it. Obviously a quick-n-dirty script, but I hope it works for you:) Best regards, Saiful Amin +91-9343826438 Skype: saiful.amin On Tue, Mar 31, 2015 at 1:29 PM, George Milten wrote: > He

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Dr. Saiful Amin
On Wed, Aug 1, 2012 at 12:47 AM, Shelley Doljack wrote: > The problem was I wasn't telling perl to output UTF-8. Now that I added > binmode(FILE, ':utf8') to my script, the problem is fixed. However, it > sounds like once I set binmode to UTF-8 everything will be interpreted as > such, even when t

Re: MARC/Perl on a Windows PC--need some handholding....

2012-06-18 Thread Dr. Saiful Amin
Hi Charles, I have always been using MARC::Record on Windows and never had such issue. What is the exact error message you are getting? Are you installing from CPAN? Best regards, Saiful Amin On Tue, Jun 19, 2012 at 11:34 AM, charles hobbs wrote: > Greetings all. > > Has anyone had much exper