Bugzilla – Attachment 42972 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: Allow wildcards in tagspec
Bug-7419-Allow-wildcards-in-tagspec.patch (text/plain), 1.36 KB, created by
Julian Maurice
on 2015-09-30 13:08:19 UTC
(
hide
)
Description:
Bug 7419: Allow wildcards in tagspec
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2015-09-30 13:08:19 UTC
Size:
1.36 KB
patch
obsolete
>From 0be531833b95668e3022bae25ffcf684a50f781d Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 30 Sep 2015 15:03:35 +0200 >Subject: [PATCH] Bug 7419: Allow wildcards in tagspec > >Options --match and --check can now contains tagspec like "2.." >--- > misc/migration_tools/dedup_records.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/migration_tools/dedup_records.pl b/misc/migration_tools/dedup_records.pl >index 2a6c38b..bc95fa5 100755 >--- a/misc/migration_tools/dedup_records.pl >+++ b/misc/migration_tools/dedup_records.pl >@@ -266,13 +266,13 @@ if ( $match =~ m#/# ) { > $matcher->threshold( 1000 * scalar(@matchers) - 1 ); > $matcher->code('TEMP'); > $matcher->description('Temporary matcher for deduplication run'); >- while ( $matchers[ $cnt ] && $matchers[ $cnt++ ] =~ m#^([^/]+)/([0-9]{3})(.*)$# ) { >+ while ( $matchers[ $cnt ] && $matchers[ $cnt++ ] =~ m#^([^/]+)/([0-9][0-9\.]{2})(.*)$# ) { > $matcher->add_simple_matchpoint( $1, 1000, $2, $3, 0, 0, '' ); > } > $check ||= ''; > my @checks = split( ',', $check ); > $cnt = 0; >- while ( $checks[ $cnt ] && $checks[ $cnt++ ] =~ m#^([0-9]{3})(.*)$# ) { >+ while ( $checks[ $cnt ] && $checks[ $cnt++ ] =~ m#^([0-9][0-9\.]{2})(.*)$# ) { > $matcher->add_simple_required_check( $1, $2, 0, 0, '', $1, $2, 0, 0, '' ); > } > } >-- >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 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