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
s? > ​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: while ( my $row = $sth->fetchrow_hashref() ) { my $marcxml = $row->{'marcxml'}; my $record = MARC::Record->new_from_xml( $marcxml, 'UTF-8' ); ... }​ -- Saiful Amin

Re: scripts imported into dancer

2016-09-10 Thread Dr. Saiful Amin
files into MARC21. It was not meant to be in production, was rather a personal project for learning web-app development. I've uploaded the code in github [1], in case you find it useful. [1] https://github.com/saiful-semantic/xl2mrc Best regards, Saiful Amin On Sat, Sep 10, 2016 at 7:

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 Mil

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Dr. Saiful Amin
line. > Sometimes it's easier to use the yaz-marcdump utility for MARC-8 to UTF-8 conversion (it's much faster): yaz-marcdump -f MARC-8 -t UTF-8 -o marc marc21.in >marc21.out http://www.indexdata.com/yaz/doc/yaz-marcdump.html Best regards, Saiful Amin DRTC, Bangalore

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

Re: OAI::Harvester installation help

2011-05-18 Thread Saiful Amin
m synaptic when CPAN failed. If I remember correctly, the command was: # sudo apt-get install libnet-oai-harvester-perl It works better than cpan in managing dependencies in my experience. Regards, Saiful Amin

Re: MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
n all records. > Little strange that MARC:File:USMARC and MARC:File:XML treat the same data > (rather same MARC::Record object) differently. > I am now able to get proper utf8 data in MARCXML output with this option: my $xml = MARC::File::XML->out( $file, ':raw' ); I think M:F:X tries to convert everything to utf8 (due to XML compliance) unlike M:F:USMARC. Saiful Amin +91-9343826438

Re: MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
gt; my $leader = $record->leader; > substr($leader, 9, 1, 'a'); > $record->leader( $leader ); > I had already hard-coded the position 9 in Leader as 'a' in all records. Little strange that MARC:File:USMARC and MARC:File:XML treat the same data (rather same MARC::Record object) differently. Saiful Amin +91-9343826438

MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
into MARCXML. But I have to give this script to a colleague and really want to avoid the extra step. Any hint on what's going wrong? Regards, Saiful Amin +91-9343826438

Re: Moose based Perl library for MARC records

2010-11-10 Thread Saiful Amin
I suggest Biblio::MARC. There's a ISIS parser in the the family named Biblio::Isis. On Wed, Nov 10, 2010 at 5:51 PM, Dueber, William wrote: > It looks to me as if MooseX is used exclusively for extensions to the Moose > system itself, not random modules that happen to use Moose. > > On 11/10/10

Re: MARC-perl: different versions yield different results

2010-10-11 Thread Saiful Amin
that setting the output to binmode utf8 solves the problem. In cases it doesn't, I do a round-trip conversion using MARCEdit, which solves any remaining issues and saves lot of time. Saiful Amin +91-9343826438

Re: Splitting a large file of MARC records into smaller files

2010-01-25 Thread Saiful Amin
I also recommend using MARC::Batch. Attached is a simple script I wrote for myself. Saiful Amin +91-9343826438 On Mon, Jan 25, 2010 at 8:33 PM, Robert Fox wrote: > Assuming that memory won't be an issue, you could use MARC::Batch to > read in the record set and print out seperate

Excel to MARC

2009-09-24 Thread Saiful Amin
>append_fields( MARC::Field->new( '245', 1, 0, 'a' => $title ) ); } # [...] print OUT $record->as_usmarc(); print "."; } } close(OUT); print "\n\n$rec_num records created.\n"; I happened to see the Swollen Appendices section in the

Re: Excel or CSV to METS or MODS

2008-12-18 Thread Saiful Amin
, Saiful -- Saiful Amin +91-9343826438 On Thu, Dec 18, 2008 at 8:33 PM, Jacobs, Jane W < jane.w.jac...@queenslibrary.org> wrote: > Hi Folks, > > My New Year's resolution includes trying to wrap my mind around METS > and/or MODS. We recently discussed converting Excel/CSV

Re: Excel to MARC

2008-11-12 Thread Saiful Amin
tten. Any feedback would be welcome. [1] http://search.cpan.org/~mikery/MARC-Record-2.0.0/lib/MARC/Doc/Tutorial.pod [2] http://122.166.0.252/cgi-bin/xl2marc.pl -- Saiful Amin Edutech India Pvt Ltd Bangalore, India. www.edutech.com

Re: Greenstone or Fedora

2008-11-11 Thread Saiful Amin
ve received this communication in error, > please notify us immediately by replying to the message and deleting it from > your computer. -- Saiful Amin +91 9343826438

Re: Ignoring deleted records in Biblio::ISIS

2008-05-28 Thread Saiful Amin
On Wed, May 28, 2008 at 8:29 PM, Dobrica Pavlinusic <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 01:03:22PM +0530, Saiful Amin wrote: > > You can download the sample database of 50 records, in which MFN 18 and > 19 > > are logically deleted, from the

Re: Ignoring deleted records in Biblio::ISIS

2008-05-27 Thread Saiful Amin
Hi Dobrica, Thanks for quick reply. Could you please send me small sample of CDS/ISIS deleted records to take a > look? You can download the sample database of 50 records, in which MFN 18 and 19 are logically deleted, from the following link: http://122.166.0.252/sample.zip Currently, I'm usin

Ignoring deleted records in Biblio::ISIS

2008-05-26 Thread Saiful Amin
vlinusic and Andy Lester) for writing such amazing modules. I've been using them with great results for few years now. Best regards, Saiful -- Saiful Amin Project Lead Edutech India Pvt Ltd Bangalore, India. +91 9343826438

Re: Question about activestate perl

2008-04-22 Thread Saiful Amin
; > print "$test\n"; > > I don't know if I'm getting what you want to achieve. But this works in my installation of ActiveState Perl: my $test = <>; print "$test\n"; I think $ARGV() is used for command line parameters. -- Saiful Amin +91 9343826438

Re: passing records from OAI-Harvester to MARC-Record

2008-04-22 Thread Saiful Amin
l( $marcxml ); >... good stuff goes here ... > } > Net::OAI::Harvester doesn't yet support MARC21 metadata format. As per the POD: "Net::OAI::Harvester has built in support for unqualified Dublin Core, and has a framework for dropping in your own parser for other kinds of me

Re: Seekign help with MARC.pm ->as_string

2008-04-15 Thread Saiful Amin
to load > Paperback)?" > > The error is on line 153 of the attached script. I've also attached the > MARC record I've been testing. > > Can anyone help out a newb? Thanks so much. > > Migell Acosta > County of Los Angeles Public Library > [EMAIL PROTECTED] > 562-940-8553 > -- Saiful Amin +91 9343826438 "I think we can find excuses in life or we can find inspirations. I've always tried to find inspirations." - Andre Agassi

Fwd: ICSD-2007: Early Bird Registration

2006-11-15 Thread Saiful Amin
Institute Bangalore INDIA ___ DLRG mailing list [EMAIL PROTECTED] http://drtc.isibang.ac.in/mailman/listinfo/dlrg -- 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

Re: converting data for subfields in 1XX

2006-11-10 Thread Saiful Amin
: Testout.datOn 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

Re: converting data for subfields in 1XX

2006-11-01 Thread Saiful Amin
X: 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."

Re: Sort with MARC::Record (correction)

2006-01-25 Thread Saiful Amin
> my $idx = 0; > > while ( my $MARC = $batch->next ) { > push(@records, $MARC); > push(@f001, [$idx++, $MARC->field("001")->as_string]); > } > > foreach my $rec (sort { $a->[1] <=> $b->[1] } @f001) { > # for alphanumeric c

Re: Using PPM to install MARC-XML?

2006-01-11 Thread Saiful Amin
On 1/11/06, Ed Summers <[EMAIL PROTECTED]> wrote: > On 1/11/06, Sperr, Edwin <[EMAIL PROTECTED]> wrote: > > Well this is odd: > > > > C:\Documents and Settings\esperr>ppm install marc-xml > > Installing package 'marc-xml'... > > Error installing package 'marc-xml': Read a PPD for 'marc-xml', but it

Re: Problem cleaning up MARC for MySQL

2006-01-01 Thread Saiful Amin
le::USMARC; > > # Serialize the current record > my $serialized = $record->MARC::File::USMARC::encode(); > # De-serialize it into a MARC object > my $newrecord = MARC::File::USMARC::decode($serialized); > print $newrecord->title() . "\n"; > > Mark > -- Saifu

Re: Reading DC records

2005-11-17 Thread Saiful Amin
Sorry for not being able to respond. My colleague was able to parse UTF-8 XML records through Java over the weekend. BTW, being new to XML, this is a great help, Ed. I'm going to deal with lot of OAI and XML in my next project. It's time to get hands dirty with these modules... Best regards, Saif

Re: Reading DC records

2005-11-12 Thread Saiful Amin
Hi Ed, Please find attached the file I'm trying to parse. It is extracted from a OAI Data Provider in oai_dc format. The challenge is to preserve the Thai characters encoded in UTF-8. I also have the same data in MARC21 format (UTF-8) encoding. But when I extract the required fields in a delimite

Reading DC records

2005-11-11 Thread Saiful Amin
g. I don't know if HTTP::OAI::Metadata::OAI_DC module going to be useful, as the documentation is very minimal. Any suggestions? -- Saiful Amin Information Specialist Edutech India 8 Khader Nawaz Khan Road Chennai 66, India Tel: +91 44 2833 0999 GSM: +91 98407 76214 Fax: +

Re: General question: Should MARC be used for periodicals and journals?

2005-09-03 Thread Saiful Amin
vin Zembower > > - > E. Kevin Zembower > Internet Systems Group manager > Johns Hopkins University > Bloomberg School of Public Health > Center for Communications Programs > 111 Market Place, Suite 310 > Baltimore, MD 21202 > 410-659-6139 > -- Saiful Amin I

Re: open source software or perl module for text analysis

2005-07-07 Thread Saiful Amin
> Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > -- Saiful Amin Information Specialist Edutech India 8 Khader Nawaz Khan Road Chennai 66, India Tel: +91 44 2833 0999 GSM: +9

Separating authors

2005-05-31 Thread Saiful Amin
= $_->subfield('a'); my $added_author = MARC::Field::new('700', 1,'', 'a' => $author_name ); $record->append_fields($added_author); } Can someone point out where I'm going wrong? Or is there a easier way I can simply change the tag number? T

Re: Separating index terms

2005-05-31 Thread Saiful Amin
ue, 31 May 2005 [EMAIL PROTECTED] wrote: > > > Amin, > > > > This should do the trick: > > > > my @keywords = split(/[<>]+/,$keywords ); > > > > Ian > > Or, > > my @keywords = $keywords =~ /<([^>]+)>/g; > > Regards

Separating index terms

2005-05-31 Thread Saiful Amin
'653'); my $keywords = $tag_653->subfield('a'); /*** I'm lost here (How do I separate keywords trapped in '<>' ?)**/ foreach $keyword (@keywords) { $record->append_fields( MARC::Field->new('653',0,'', 'a' => "$ke

Reading/Writing ISIS records

2004-10-27 Thread Saiful Amin
still use CDS/ISIS database, this conversion utility in MARC::Batch would be an useful utility. Regards, Saiful -- Saiful Amin Information Specialist Edutech India 8 Khader Nawaz Khan Road Chennai 66, India Tel: +91 44 2833 0999 GSM: +91 98407 76214 Fax: +91 44 2833 1777 www.edutechindia.com

Re: MARC separators stripped out(encoding prob?)

2003-09-30 Thread Saiful Amin
Hi Joshua, > The Z-Server can be reached at: koha.athenscounty.lib.oh.us: (no > database name necessary). I checked the server with our VTLS Z39.50 client (www.vtls.com) and it seems to be working fine. Thanks. Saiful Indian School of Business Hyderabad. India Ph. +91-40-2318-7963/7999

Re: MARC::Record leader

2003-09-19 Thread Saiful Amin
Hi Paul, > (notes i speak here of UNIMARC. loc is down at the moment, but i think > leaders are the same in marc21 and in unimarc) Since LoC is still down you can refer to http://search.cpan.org/src/PETDANCE/MARC-Record-1.29/etc/ecbdlist.html > So my question : > Am I wrong or could we add $rec