]> git.koha-community.org Git - koha.git/commit
Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record
authorNick Clemens <nick@bywatersolutions.com>
Thu, 2 Feb 2023 15:03:39 +0000 (15:03 +0000)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Fri, 24 Feb 2023 11:14:30 +0000 (11:14 +0000)
commit0580913a8bde8573cbb9c1536871f1f50d76a979
tree4d384e5d55868e8bc334fdb416050ddc85652a19
parente1bdf9fa2ef43f090f3310898e334faca812ca01
Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record

To test:
1 - Enable OAI sets, and define a set with mapping 952 y = BK
2 - perl misc/migration_tools/build_oai_sets.pl -v -i -r
3 - The script dies:
    Koha::Biblio::Metadata->record must be called on an instantiated object or like a class method with a record passed in parameter
4 - Apply patch
5 - Repeat
6 - Success!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: tcohen updated indentation
(cherry picked from commit d6433ff71eba75eea9cd7d5e7da8cac62e7ade01)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
misc/migration_tools/build_oai_sets.pl