Re: Marc::XML with MARC21

2010-01-26 Thread Ed Summers
Oops I forgot to attach the script as promised didn't I. I also meant to say that this is a fine place to discuss questions about eprints too. Although I imagine it might be good to ask on eprints specific lists where there might be more eprints eyes. //Ed test.pl Description: Binary data

Re: Marc::XML with MARC21

2010-01-26 Thread Ed Summers
Hi Michele: Yes, I see a UTF-8 encoding error in that file when I try to check it with xmllint (from the libxml2 package): e...@curry:~/Downloads$ xmllint marc.xml marc.xml:1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE0 0x20 0x3A 0x3C ld code="b">le infrastrutture, l

Re: Marc::XML with MARC21

2010-01-26 Thread Michele Pinassi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ed, i've did some tests and all works correctly as you said. At this point i have some troubles importing MARC record into EPrints with MARC plugin developed by Jose Miguel. But...maybe this is not the right place where ask about it :-) Thanks, Mi

Re: Marc::XML with MARC21

2010-01-26 Thread Michele Pinassi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Ed, yes, it works as expected ! I've just tried again with my marc.xml (as attached) and seems to be encoding problems. Maybe Aleph don't export in UTF-8 ? Thanks for your help, Michele Ed Summers ha scritto: > Hi Michele: > > I copied and past

Re: Marc::XML with MARC21

2010-01-25 Thread Ed Summers
Hi Michele: I copied and pasted the XML from your email and ran it through a simple test script (both attached) and the record seemed to be parsed ok. What do you see if you run the attached test.pl? //Ed test.pl Description: Binary data http://www.loc.gov/MARC21/slim"; xmlns:xsi="http://ww

Re: Marc::XML with MARC21

2010-01-25 Thread Jon Gorman
> > my $file = MARC::Record->new_from_xml($marc->serialize(),"UTF-8","MARC21"); >        $epdata = $plugin->EPrints::Plugin::Import::MARC::convert_input( > $file ); > > and here come troubles: only few metadatas will be interpreted > correctly, losing a lot of datas. Ummm, so what metdata makes it