Bugzilla – Attachment 22150 Details for
Bug 7419
Add authority deduplication script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
works with Julian Maurice patchs
0001-Bug-7419-delete-bad-authorities-after-merge.patch (text/plain), 1.71 KB, created by
Stéphane Delaune
on 2013-10-21 07:40:10 UTC
(
hide
)
Description:
works with Julian Maurice patchs
Filename:
MIME Type:
Creator:
Stéphane Delaune
Created:
2013-10-21 07:40:10 UTC
Size:
1.71 KB
patch
obsolete
>From 7227fefce3ead0552ad973e483dd5e4083f88c06 Mon Sep 17 00:00:00 2001 >From: Admin User Koha <koha@ionesco.biblibre.com> >Date: Mon, 21 Oct 2013 09:35:02 +0200 >Subject: [PATCH] Bug 7419: delete bad authorities after merge > >--- > C4/AuthoritiesMarc.pm | 2 +- > misc/migration_tools/dedup_authorities.pl | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index e791e53..2d463fe 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1496,7 +1496,7 @@ sub merge { > push @editedbiblios, $biblionumber; > } > }#foreach $marc >- >+ DelAuthority($mergefrom) if ($mergefrom != $mergeto); > return @editedbiblios; > } > >diff --git a/misc/migration_tools/dedup_authorities.pl b/misc/migration_tools/dedup_authorities.pl >index 47e7eb0..02a8177 100755 >--- a/misc/migration_tools/dedup_authorities.pl >+++ b/misc/migration_tools/dedup_authorities.pl >@@ -143,10 +143,10 @@ for my $authtypecode (@authtypecodes) { > ($verbose >= 2) and logger("Building query..."); > my $query = _build_query( $authrecord, $attempt ); > ($verbose >= 2) and logger("Building query done."); >- $debug and $query and warn $query; >+ ($verbose >= 2) and logger ($query); > # This prevent too general queries to be executed > # TODO: This should allow more than these 3 indexes >- next unless $query =~ /(he|he-main|ident)(,\S*)*(=|:)/; >+ next unless $query =~ /(ppn|he|he-main|ident)(,\S*)*(=|:)/; > > ($verbose >= 2) and logger("Searching..."); > my ($error, $results) = SimpleSearch($query, undef, undef, ["authorityserver"]); >-- >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