[Refdb-users] marc2ris.pl
Status: Beta
Brought to you by:
mhoenicka
From: Liam M. H. <ln...@he...> - 2005-03-23 02:25:34
|
I have two issues with marc2ris.pl. The first is that I get an error Can't use an undefined value as a symbol reference at /usr/local/share/perl/5.8.4/RefDB/Log.pm line 271. when I try to use this script. I understand from http://sourceforge.net/mailarchive/message.php?msg_id=5406630 that this is due to a lack of write permissions on the log file. When I touch the log file as root and change permissions to 666, however, I get the same result. I actually would like the log file to go to stdout, but changing logdest stderr in marc2risrc worked for one of my clients but not on the other. If I do marc2ris.pl -L marc2ris.log kirk.usmarc > kirk.ris it works fine, and at the moment, it's the only way I can run this script on the second client. The second problem is that MARC tags are mixed in with RIS lines; it appears the -m flag is always on, and I can't shut it off. yaz-client z3950.loc.gov:7090/voyager find @attr 1=7 0486434842 set_marcdump kirk.usmarc format usmarc show quit marc2ris.pl -L marc2ris.log kirk.usmarc <marc>--- <marc>MARC-8 data TY - BOOK <marc>:Author(Ind1): 1 <marc>:Author($a): Kirk, Donald E., <marc>:Author($b): <marc>:Author($c): <marc>:Author($h): AU - Kirk, Donald E., <marc>Title($a): Optimal control theory : <marc>Title($b): an introduction / <marc>Title($c): Donald E. Kirk. TI - Optimal control theory: an introduction <marc>empty series title field SN - 0486434842 <marc>no issn found (022$a) <marc>Year (260$c): 2004. PY - 2004/// CY - Mineola, N.Y. PB - Dover Publications <marc>Field 650 subfield a:Control theory <marc>Field 650 subfield a:Mathematical optimization KW - Mathematical optimization KW - Control theory <marc>field 500 subfield a: Originally published: Englewood Cliffs, N.J. : Prentice-Hall, 1970 (Prentice-Hall networks series) <marc>field 504 subfield a: Includes bibliographical references and index. N1 - Originally published: Englewood Cliffs, N.J. : Prentice-Hall, 1970 (Prentice-Hall networks series); Includes bibliographical references and index ER - Any pointers appreciated. Liam |