[Koha-bugs] [Bug 29597] Add tomarcplugin option to bulkmarcimport.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jan 21 21:12:50 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29597

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #4 from David Nind <david at davidnind.com> ---
I started to test (using koha-testing-docker), but the plugin for step 1 of the
test plan does not show in the list of plugins.

This is what I did:

1. Applied the patch (it still applies cleanly).
2. Downloaded and put ToMarcExample.pm in the Koha/Plugins directory.
3. Restarted everything.
4. Went to Koha Administration > Plugins > Manage plugins
5. There are no new plugins listed.
6. Even though I didn't see the plugin, I ran the script (from the
/kohadevbox/koha directory, with the sample MARC file in that directory as
well). This is the output I got:

misc/migration_tools/bulkmarcimport.pl -v -b -file biblios.marc -insert -update
-c=MARC21 -n=1 -tomarcplugin="Koha::Plugin::ToMarcExample"
Using -update without -match or -isbn seems to be useless.
Characteristic MARC flavour: MARC21
Plugin does not have method to_marc at /kohadevbox/koha/Koha/Plugins/Handler.pm
line 72.
Use of uninitialized value $fh in eof at /usr/share/perl5/MARC/File/USMARC.pm
line 51.
Use of uninitialized value $fh in eof at /usr/share/perl5/MARC/File/USMARC.pm
line 51.
Use of uninitialized value $fh in eof at /usr/share/perl5/MARC/File/USMARC.pm
line 51.

0 MARC records done in 0.00819301605224609 seconds

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list