Hi, Dan. Thanks!

I followed the readme when I was installing exactly. It is possible, though, 
that I missed a step. I don't see myself missing one as important as running 
the makefile, though. I'm still getting an error, though with different line 
numbers this time. The files also seem to be in a different location. Because 
of the updated MARC::File::XML, I'm assuming:

evergreen=# INSERT INTO biblio.record_entry (marc, last_xact_id) SELECT marc, 
'IMPORT' FROM marcxml_import;
ERROR:  Tag "" is not a valid tag. at 
/usr/local/share/perl/5.10.1/MARC/File/SAX.pm line 113 at 
/usr/local/lib/perl/5.10.1/XML/LibXML/SAX.pm line 99
 at /usr/local/share/perl/5.10.1/MARC/File/XML.pm line 452
CONTEXT:  PL/Perl function "maintain_control_numbers"
evergreen=#

Any thoughts?

Thank you all so much! You are beyond helpful!

Elliot J Voris


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dan Scott
Sent: Thursday, December 22, 2011 11:17 AM
To: Evergreen Development Discussion List
Subject: Re: [OPEN-ILS-DEV] MARC Record Import from txt

On Thu, Dec 22, 2011 at 05:05:25PM +0000, Elliot Voris wrote:
> I've made a bit of progress with help from the PostgreSQL mailing list. 
> 
> I installed XML::LibXML, and that did indeed clear up the 'ParserDetails.ini' 
> trouble, but now I get another error. This time, it references three specific 
> lines in three separate .pm files.

That suggests that the "make -f Open-ILS/src/extras/Makefile.install
<distro>" command, or the corresponding command for OpenSRF, either failed or 
was skipped, and/or that the corresponding target for your distro is broken.
>  
> evergreen=# INSERT INTO biblio.record_entry (marc, last_xact_id) 
> SELECT marc, 'IMPORT' FROM marcxml_import;
> ERROR:  Tag "" is not a valid tag. at 
> /usr/share/perl5/MARC/File/SAX.pm line 92 at 
> /usr/local/lib/perl/5.10.1/XML/LibXML/SAX.pm line 99 at 
> /usr/share/perl5/MARC/File/XML.pm line 445
> CONTEXT:  PL/Perl function "maintain_control_numbers"
> evergreen=#
>  
> I've tried looking at the actual files, Googling it, but it's all Greek to 
> me. I'm attaching the files, hoping that someone could take a look at them. 
> Does this make sense to anyone? Which file/line is the actual problem?

Well, one thing is that you're using an older version of MARC::File::XML (0.92, 
whereas 0.93 is what introduces some measure of support for namespaced 
elements). Try "sudo cpan MARC::File::XML", restart OpenSRF / Evergreen, and 
see if that makes a difference.

Attachment: MARC.File.SAX.pm
Description: MARC.File.SAX.pm

Attachment: LibXML.SAX.pm
Description: LibXML.SAX.pm

Attachment: MARC.File.XML.pm
Description: MARC.File.XML.pm

Reply via email to