[OPEN-ILS-DEV] MARC Record Import from txt

Dan Scott dan at coffeecode.net
Thu Dec 22 12:16:58 EST 2011


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.


More information about the Open-ils-dev mailing list