I just installed a new Koha system for a Children’s library for my church and I'm having trouble adding biblio records. Koha 2.2.9 Debian 2.6.18-5-686 mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2 Perl 5.008008 Apache 2 I'm trying to look up MARC records via the z3950 interface and then add them using the "Add Bibliographic Record and go to Items" button. When I try to add a record, the Biblio script fails and I get a -document save- dialog box in my browser with an option to save an addbiblio.pl file. I loked at the /usr/local/koha/log/koha-error_log file and discovered that I the last entry has a problem in Biblio.pm at line 1440. I then looked at the Biblio.pm file and line 1440 and the line is ---->$record->delete_field($old_field);<----- I've gone through this scenario many times now and get consistent errors importing from several z3950 sources and using several different books. I found lots of posts with similar problems that refer to line 1440 but unfortunately, no solutions... Some threads suggest that it might be an Apache problem and others suggest that this may be related to the format of the MARC record we are trying to import. Has anyone solved this one? I'm running out of leads on what to check next. I'm tempted to reinstall but I would prefer to trach down the issue and document the solution since so many people seem to be running into the same problem. Thanks in advance for your help, JL Crossroads Community Church Fishers IN Here's an excerpt from the script and error log file... Biblio.pm line 1430 - 1440 # biblionumber & biblioitemnumber are in the same field (can't be <10 as fields <10 have only 1 value) } else { my $newfield = MARC::Field->new( $tagfield1, '', '', "$tagsubfield1" => $oldbibnum, "$tagsubfield2" => $oldbibitemnum ); # drop old field and create new one... my $old_field = $record->field($tagfield1); $record->delete_field($old_field);
From the koha-error_log file
[Sun Sep 16 21:58:01 2007] [error] [client 192.168.0.101] Q2 : select distinct m1.bibid from biblio,biblioitems,marc_biblio,marc_word as m1,marc_word as m2,marc_word as m3,marc_word as m4,marc_word as m5,marc_word as m6,marc_word as m7,marc_word as m8,marc_subfield_table as m9 where biblio.biblionumber=marc_biblio.biblionumber and biblio.biblionumber=biblioitems.biblionumber and m1.bibid=marc_biblio.bibid and (m1.bibid=m2.bibid and m1.bibid=m3.bibid and m1.bibid=m4.bibid and m1.bibid=m5.bibid and m1.bibid=m6.bibid and m1.bibid=m7.bibid and m1.bibid=m8.bibid and m1.bibid=m9.bibid) and ((m1.word like 'parable' and m1.tagsubfield in ('245a'))and (m2.word like 'of' and m2.tagsubfield in('245a'))and (m3.word like 'lily' and m3.tagsubfield in('245a'))and (m4.word like 'Higgs' and m4.tagsubfield in('245b'))and (m5.word like 'Liz' and m5.tagsubfield in('245b'))and (m6.word like 'Curtis' and m6.tagsubfield in('245b'))and (m7.word like '21' and m7.tagsubfield in('100a'))and (m8.word like 'cm' and m8.tagsubfield in('100a'))and (m9.subfieldvalue = 'Thomas Nelson Books,' and concat(m9.tag,m9.subfieldcode) in ('300c'))) order by biblio.title ASC term is The parable of the lily Higgs Liz Curtis 21 cm Thomas Nelson Books, at /usr/local/koha/intranet/modules/C4/SearchMarc.pm line 274., referer: http://192.168.0.102:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?oldbiblionumber=0&z3950=1&breedingid=45 [Sun Sep 16 21:58:01 2007] [error] [client 192.168.0.101] Arguments must be MARC::Field object at /usr/local/koha/intranet/modules/C4/Biblio.pm line 1440, referer: http://192.168.0.102:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?oldbiblionumber=0&z3950=1&breedingid=45 [Sun Sep 16 21:58:01 2007] [error] [client 192.168.0.101] Premature end of script headers: addbiblio.pl, referer: http://192.168.0.102:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?oldbiblionumber=0&z3950=1&breedingid=45 ccc-web:/usr/local/koha/log# -- View this message in context: http://www.nabble.com/Problem-adding-biblio-records---Biblio.pm-at-line-1440... Sent from the Koha - Discuss mailing list archive at Nabble.com.
CrossroadsDude <Livingston_john@lilly.com> wrote:
Koha 2.2.9 > Debian 2.6.18-5-686 > mysql Ver 14.12 > Perl 5.008008 Apache 2 [...] On thread suggested looking at the /usr/local/koha/log/koha-error_log file. I found that I the last entry has a problem in Biblio.pm at line 1440.
The problem is "Arguments must be MARC::Field object"
I looked at the Biblio.pm file and line 1440 and the line is ---->$record->delete_field($old_field);<-----
So, $old_field isn't a MARC::Field object. That's odd.
I've gone through this many times and get consistent errors importing from several z3950 sources and using several different books.
Which z3950 sources are you using? We can see a book you tried from the log entry, so maybe someone can try on another system and see if they get the same error.
[Sun Sep 16 21:58:01 2007] [error] [client 192.168.0.101] Q2 : select distinct m1.bibid from biblio,biblioitems,marc_biblio,marc_word as m1,marc_word as m2,marc_word as m3,marc_word as m4,marc_word as m5,marc_word as m6,marc_word as m7,marc_word as m8,marc_subfield_table as m9 where biblio.biblionumber=marc_biblio.biblionumber and biblio.biblionumber=biblioitems.biblionumber and m1.bibid=marc_biblio.bibid and (m1.bibid=m2.bibid and m1.bibid=m3.bibid and m1.bibid=m4.bibid and m1.bibid=m5.bibid and m1.bibid=m6.bibid and m1.bibid=m7.bibid and m1.bibid=m8.bibid and m1.bibid=m9.bibid) and ((m1.word like 'parable' and m1.tagsubfield in ('245a'))and (m2.word like 'of' and m2.tagsubfield in('245a'))and (m3.word like 'lily' and m3.tagsubfield in('245a'))and (m4.word like 'Higgs' and m4.tagsubfield in('245b'))and (m5.word like 'Liz' and m5.tagsubfield in('245b'))and (m6.word like 'Curtis' and m6.tagsubfield in('245b'))and (m7.word like '21' and m7.tagsubfield in('100a'))and (m8.word like 'cm' and m8.tagsubfield in('100a'))and (m9.subfieldvalue = 'Thomas Nelson Books,' and concat(m9.tag,m9.subfieldcode) in ('300c'))) order by biblio.title ASC term is The parable of the lily Higgs Liz Curtis 21 cm Thomas Nelson Books, at /usr/local/koha/intranet/modules/C4/SearchMarc.pm line 274., referer: -- MJ Ray http://mjr.towers.org.uk/email.html tel:+844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
The problem is "Arguments must be MARC::Field object"
I looked at the Biblio.pm file and line 1440 and the line is ---->$record->delete_field($old_field);<-----
So, $old_field isn't a MARC::Field object. That's odd.
I've gone through this many times and get consistent errors importing from several z3950 sources and using several different books.
Which z3950 sources are you using? We can see a book you tried from the log entry, so maybe someone can try on another system and see if they get the same error.
The three z3950 sources we have been using are .... catnyp.nypl.org www.bostonathenaeum.org Z3950.LOC.GOV An example of a record that failed is to import is.... Z3950.LOC.GOV The case for Christ : Strobel, Lee, 0310234840(pbk) Import Unfortunately, the volunteers that are putting our church library in place are worried that we won't be able to get Koha working before it is opened next weekend. They are opting for a windoz application called resource mate instead. Koha was my first choice but it looks like time is not on my side on this one. Maybe I can talk them in to migrating later. Thanks for taking the time to respond to me, John Livingston Crossroads Community Church -- View this message in context: http://www.nabble.com/Problem-adding-biblio-records---Biblio.pm-at-line-1440... Sent from the Koha - Discuss mailing list archive at Nabble.com.
CrossroadsDude <Livingston_john@lilly.com> wrote: [...]
An example of a record that failed is to import is....
Z3950.LOC.GOV The case for Christ : Strobel, Lee, 0310234840(pbk) Import
That one imports fine for me from there. Are you using MARC21? Koha 2.2.9, Debian 4.0, Perl 5.008008, mysql Ver 14.12 Distrib 5.0.32 Sorry we couldn't crack this in time for your sponsor. Best wishes, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
participants (2)
-
CrossroadsDude -
MJ Ray