Bugzilla – Attachment 147028 Details for
Bug 32798
build_oai_sets.pl passes wrong parameter to Koha::Biblio::Metadata->record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record
Bug-32798-Update-parameter-passed-to-KohaBiblioMet.patch (text/plain), 1.35 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-02-21 13:13:08 UTC
(
hide
)
Description:
Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-02-21 13:13:08 UTC
Size:
1.35 KB
patch
obsolete
>From 78d2c7d2cc2c3248ffff9007dbac767a38ef3902 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 2 Feb 2023 15:03:39 +0000 >Subject: [PATCH] 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 >--- > misc/migration_tools/build_oai_sets.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/migration_tools/build_oai_sets.pl b/misc/migration_tools/build_oai_sets.pl >index 58a7498f811..0ab07bcd911 100755 >--- a/misc/migration_tools/build_oai_sets.pl >+++ b/misc/migration_tools/build_oai_sets.pl >@@ -143,7 +143,7 @@ foreach my $res (@$results) { > if($embed_items) { > $record = Koha::Biblio::Metadata->record( > { >- marc_record => $record, >+ record => $record, > embed_items => 1, > biblionumber => $biblionumber, > } >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32798
:
146013
|
146383
| 147028