Bugzilla – Attachment 70951 Details for
Bug 14769
Authorities merge: Set correct indicators in biblio field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14769: Call controlled_biblio_indicators in authority merge
Bug-14769-Call-controlledbiblioindicators-in-autho.patch (text/plain), 1.36 KB, created by
Marcel de Rooy
on 2018-01-26 11:17:39 UTC
(
hide
)
Description:
Bug 14769: Call controlled_biblio_indicators in authority merge
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-01-26 11:17:39 UTC
Size:
1.36 KB
patch
obsolete
>From c13e312743c6c36bf96e1490195e3d7b2e120e0e Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 23 Jan 2018 16:55:51 +0100 >Subject: [PATCH] Bug 14769: Call controlled_biblio_indicators in authority > merge >Content-Type: text/plain; charset=utf-8 > >--- > C4/AuthoritiesMarc.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 165ef36..d5dff1e 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1471,10 +1471,11 @@ sub merge { > my $newtag = $tags_new && @$tags_new > ? _merge_newtag( $tag, $tags_new ) > : $tag; >+ my $controlled_ind = Koha::Authority->new({ authtypecode => $authtypeto ? $authtypeto->authtypecode : undef })->controlled_biblio_indicators({ record => $MARCto, biblio_tag => $newtag }); #FIXME Replace this tric with new when refactoring > my $field_to = MARC::Field->new( > $newtag, >- $field->indicator(1), >- $field->indicator(2), >+ $controlled_ind->{ind1} // $field->indicator(1), >+ $controlled_ind->{ind2} // $field->indicator(2), > 9 => $mergeto, # Needed to create field, will be moved > ); > my ( @prefix, @postfix ); >-- >2.1.4
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 14769
:
42197
|
69343
|
70948
|
70949
|
70950
|
70951
|
71338
|
71339
|
71340
|
71341
|
71342
|
71343
|
71351
|
71352
|
71353
|
71354
|
71355
|
71366
|
71374
|
71375
|
71376
|
71377
|
71378
|
71379
|
71380
|
71381
|
72398
|
72399
|
72400
|
72401
|
72402
|
72403
|
72404
|
73389
|
73773
|
73774
|
73775
|
73776
|
73777
|
73778
|
73779
|
74052