Bugzilla – Attachment 176432 Details for
Bug 37996
Links created by link_marc_host should contain 773$0 in MARC21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37996: Add field 773$0 to the link created by add_host_link
Bug-37996-Add-field-7730-to-the-link-created-by-ad.patch (text/plain), 1.44 KB, created by
Thibault Keromnès
on 2025-01-13 13:04:10 UTC
(
hide
)
Description:
Bug 37996: Add field 773$0 to the link created by add_host_link
Filename:
MIME Type:
Creator:
Thibault Keromnès
Created:
2025-01-13 13:04:10 UTC
Size:
1.44 KB
patch
obsolete
>From 811038cc63f046c4eb89f1f52b4395d7cf6a5a48 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Tue, 24 Sep 2024 14:39:27 +0200 >Subject: [PATCH] Bug 37996: Add field 773$0 to the link created by > add_host_link > >Bug 29560 created a new function link_marc_host which is supposed to bind the fields : >MARC21: 773$0 of the biblio to the 999$c of the bundle biblio >UNIMARC: 461$0 of the biblio to the 001 of the bundle biblio > >This does not work for the MARC21 > >TEST PLAN: >1 - Apply the patch containing tests >2 - Run test in t/db_dependent/Koha/Biblio.t, they should fail on two tests >3 - Create a bundle on a biblio a >4 - Add an object to a bundle of a >5 - Check the field 773$0 -> it should be empty >6 - Apply patch >7 - Re-run tests >8 - Repeat 4&5 -> 773$0 should contain the biblionumber of a > >Signed-off-by: Thibault Keromnes <thibault.keromnes@univ-paris8.fr> >--- > Koha/Biblio.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 927d7b898e..25e38e62c3 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -1949,6 +1949,9 @@ sub generate_marc_host_field { > $sfd{w} = '(' . $host_field->data() . ')' . $sfd{w}; > } > } >+ if ( $host_field = $marc_host->field('999') ) { >+ $sfd{0} = $host_field->as_string('c'); >+ } > $link_field = MARC::Field->new( 773, '0', ' ', %sfd ); > } elsif ( $marcflavour eq 'UNIMARC' ) { > >-- >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 37996
:
171928
|
171929
|
171930
|
176431
| 176432