Bugzilla – Attachment 17792 Details for
Bug 7419
Add authority deduplication script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7419: merge sub should retrieve marc records from DB if not given
Bug-7419-merge-sub-should-retrieve-marc-records-fr.patch (text/plain), 1.23 KB, created by
Julian Maurice
on 2013-04-29 14:19:30 UTC
(
hide
)
Description:
Bug 7419: merge sub should retrieve marc records from DB if not given
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2013-04-29 14:19:30 UTC
Size:
1.23 KB
patch
obsolete
>From 59f27713144345061a3b29029298e322d10307d1 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 29 Apr 2013 14:15:11 +0000 >Subject: [PATCH] Bug 7419: merge sub should retrieve marc records from DB if not given > >--- > C4/AuthoritiesMarc.pm | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 45ab8c2..e791e53 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1382,11 +1382,15 @@ Then we should add some new parameter : bibliotargettag, authtargettag > =cut > > sub merge { >- my ($mergefrom,$MARCfrom,$mergeto,$MARCto) = @_; >+ my ($mergefrom, $MARCfrom, $mergeto, $MARCto) = @_; > my @editedbiblios; >- my $dbh=C4::Context->dbh; >+ my $dbh = C4::Context->dbh; > my $authtypecodefrom = GetAuthTypeCode($mergefrom); > my $authtypecodeto = GetAuthTypeCode($mergeto); >+ >+ $MARCfrom ||= GetAuthority($mergefrom); >+ $MARCto ||= GetAuthority($mergeto); >+ > # warn "mergefrom : $authtypecodefrom $mergefrom mergeto : $authtypecodeto $mergeto "; > # return if authority does not exist > return "error MARCFROM not a marcrecord ".Data::Dumper::Dumper($MARCfrom) if scalar($MARCfrom->fields()) == 0; >-- >1.7.2.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 7419
:
11161
|
11162
|
11412
|
11413
|
11486
|
11487
|
11488
|
13073
|
13074
|
13629
|
13630
|
17790
|
17791
|
17792
|
18712
|
18713
|
18714
|
20783
|
20784
|
20785
|
22150
|
22907
|
25087
|
25088
|
25089
|
35886
|
35887
|
35888
|
35889
|
42972