The code passes 'marc_record', it should be 'record'
Created attachment 146013 [details] [review] 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!
Created attachment 146383 [details] [review] 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>
Created attachment 147028 [details] [review] 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
Pushed to master for 22.11. Nice work everyone, thanks!
Nice work, thanks everyone! Pushed to 22.11.x for the next release.
Missing dependencies for 22.05.x, no backport.