Bugzilla – Attachment 42197 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: Authorities merge: Set correct indicators in biblio field
Bug-14769-Authorities-merge-Set-correct-indicators.patch (text/plain), 1.34 KB, created by
Julian Maurice
on 2015-09-02 11:46:45 UTC
(
hide
)
Description:
Bug 14769: Authorities merge: Set correct indicators in biblio field
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2015-09-02 11:46:45 UTC
Size:
1.34 KB
patch
obsolete
>From 58e85c5993459bc92e3c98945d139d4d1631f444 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 2 Sep 2015 10:36:21 +0200 >Subject: [PATCH] Bug 14769: Authorities merge: Set correct indicators in > biblio field > >Biblio field indicators should be the same indicators as the linked >authority's main field >--- > C4/AuthoritiesMarc.pm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index efd372c..1a262ea 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1528,7 +1528,12 @@ sub merge { > my $auth_number=$field->subfield("9"); > my $tag=$field->tag(); > if ($auth_number==$mergefrom) { >- my $field_to=MARC::Field->new(($tag_to?$tag_to:$tag),$field->indicator(1),$field->indicator(2),"9"=>$mergeto); >+ my $field_to = MARC::Field->new( >+ ($tag_to ? $tag_to : $tag), >+ $MARCto->field($auth_tag_to_report_to)->indicator(1), >+ $MARCto->field($auth_tag_to_report_to)->indicator(2), >+ "9"=>$mergeto >+ ); > my $exclude='9'; > foreach my $subfield (grep {$_->[0] ne '9'} @record_to) { > $field_to->add_subfields($subfield->[0] =>$subfield->[1]); >-- >1.9.1
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