HI all I adapted a script kindly provided by a Koha/2.2.9 user that converts CSV biblio data into MARC21 records. The MARC21 records are then imported into Koha/2.2.9 using the bulkmarcimport.pl script. This has been working well for about a year now and we are quite pleased with the results. A very powerful tool. When I attempt to use the Koha/3 bulkmarcimport.pl script to import the same MARC21 data (consisting of three biblio records), I get one biblio record in the DB and all of its fields are NULL, except the primary key. This is using the default "out of the box" Koha 3.0 frameworks. I have compared the source code for the bulkmarcimport.pl script between 2.2.9 and 3.0 and it seems to be a completed rewrite. Can someone with the knowledge point me in the right direction to getting bulkmarcimport.pl working in Koha/3? thanks in advance rick welykochy -- ________________________________________________________________ Rick Welykochy || Praxis Services || Internet Driving Instructor When the power of love overcomes the love of power, the world will know peace. -- Jimi Hendrix
Hi Rick, On Thu, Nov 6, 2008 at 7:37 PM, Rick Welykochy <rick@praxis.com.au> wrote:
Can someone with the knowledge point me in the right direction to getting bulkmarcimport.pl working in Koha/3?
Well, bulkmarcimport.pl is not terminally broken in Koha 3.0, as we use it all them time, so I suspect that the issue is data-dependent. Could you send the three sample MARC records you tried to load? Regards, Galen -- Galen Charlton VP, Research & Development, LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 skype: gmcharlt
Galen Charlton wrote:
Hi Rick,
On Thu, Nov 6, 2008 at 7:37 PM, Rick Welykochy <rick@praxis.com.au> wrote:
Can someone with the knowledge point me in the right direction to getting bulkmarcimport.pl working in Koha/3?
Well, bulkmarcimport.pl is not terminally broken in Koha 3.0, as we use it all them time, so I suspect that the issue is data-dependent. Could you send the three sample MARC records you tried to load?
The dump (-v 2 -t) option does not work as in 2.2.9: # perl /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -v 2 -t -file sample-3records.mrc TESTING MODE ONLY DOING NOTHING =============== Characteristic MARC flavour: MARC21 ... 3 MARC records done in 0.00472402572631836 seconds ?? I have attached the file. In general I find it difficult to work with the MARC binary format. More tools are required for manipulating this format, imho. thanks, rickw -- ________________________________________________________________ Rick Welykochy || Praxis Services || Internet Driving Instructor When the power of love overcomes the love of power, the world will know peace. -- Jimi Hendrix
Galen Charlton wrote:
On Thu, Nov 6, 2008 at 7:37 PM, Rick Welykochy <rick@praxis.com.au> wrote:
Can someone with the knowledge point me in the right direction to getting bulkmarcimport.pl working in Koha/3?
Well, bulkmarcimport.pl is not terminally broken in Koha 3.0, as we use it all them time, so I suspect that the issue is data-dependent. Could you send the three sample MARC records you tried to load?
And so right you are :) The rewrite of bulkmarcimport.pl in K3 has introduced a more stringent examination and rejection of malformed MARC records. In previous version of Koha, we were not providing the field indicators. In K3 we must provide these in the MARC records. bulkmarcimport.pl could be updated to provide better error reporting ;) cheers rickw -- _________________________________ Rick Welykochy || Praxis Services Tis the dream of each programmer before his life is done, To write three lines of APL and make the damn thing run.
On Fri, Nov 21, 2008 at 5:48 PM, Rick Welykochy <rick@praxis.com.au> wrote:
Galen Charlton wrote:
On Thu, Nov 6, 2008 at 7:37 PM, Rick Welykochy <rick@praxis.com.au> wrote:
Can someone with the knowledge point me in the right direction to getting bulkmarcimport.pl working in Koha/3?
Well, bulkmarcimport.pl is not terminally broken in Koha 3.0, as we use it all them time, so I suspect that the issue is data-dependent. Could you send the three sample MARC records you tried to load?
And so right you are :)
The rewrite of bulkmarcimport.pl in K3 has introduced a more stringent examination and rejection of malformed MARC records.
In previous version of Koha, we were not providing the field indicators.
In K3 we must provide these in the MARC records.
bulkmarcimport.pl could be updated to provide better error reporting ;)
You know where to send patches to Rick :) Chris
participants (3)
-
Chris Cormack -
Galen Charlton -
Rick Welykochy