Bugzilla – Attachment 190956 Details for
Bug 22439
Duplicated code in PrepHostMarcField and prepare_host_field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22439: (QA follow-up) add generate_marc_host_field to api/v1/items
Bug-22439-QA-follow-up-add-generatemarchostfield-t.patch (text/plain), 939 bytes, created by
Arthur Suzuki
on 2026-01-06 20:04:22 UTC
(
hide
)
Description:
Bug 22439: (QA follow-up) add generate_marc_host_field to api/v1/items
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2026-01-06 20:04:22 UTC
Size:
939 bytes
patch
obsolete
>From 8efc8ad9934a02c2f816bfdd3c4a78d29b78760b Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Tue, 6 Jan 2026 19:53:54 +0000 >Subject: [PATCH] Bug 22439: (QA follow-up) add generate_marc_host_field to > api/v1/items > >--- > Koha/REST/V1/Items.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/Items.pm b/Koha/REST/V1/Items.pm >index 5e8175a61fd..6a013d97d8e 100644 >--- a/Koha/REST/V1/Items.pm >+++ b/Koha/REST/V1/Items.pm >@@ -321,7 +321,8 @@ sub add_to_bundle { > > my $link = $item->add_to_bundle( $bundle_item, $options ); > if ($add_link) { >- $bundle_item->biblio->link_marc_host( { host => $item->biblio } ); >+ my $field = $item->biblio->generate_marc_host_field( { item => $item } ); >+ $bundle_item->biblio->link_marc_host( { field => $field } ); > } > return $c->render( > status => 201, >-- >2.39.5
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 22439
:
183766
|
183767
|
184035
|
184036
|
190955
| 190956