Bugzilla – Attachment 100591 Details for
Bug 15214
Add logging of authority updates to bulkmarcimport
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15214: bulkmarcimport should log if an authority has been updated
Bug-15214-bulkmarcimport-should-log-if-an-authorit.patch (text/plain), 1.53 KB, created by
Jon Knight
on 2020-03-11 17:34:13 UTC
(
hide
)
Description:
Bug 15214: bulkmarcimport should log if an authority has been updated
Filename:
MIME Type:
Creator:
Jon Knight
Created:
2020-03-11 17:34:13 UTC
Size:
1.53 KB
patch
obsolete
>From efa92df166b295475707c4797fec9935fe0ecb03 Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Thu, 19 Nov 2015 09:52:04 +0100 >Subject: [PATCH] Bug 15214: bulkmarcimport should log if an authority has been > updated > >When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared). >This patch allows to keep track in the result yaml file if an authority has been updated or not: > >Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> >--- > misc/migration_tools/bulkmarcimport.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl >index 6a08c6cd56..6ab4b3fcf4 100755 >--- a/misc/migration_tools/bulkmarcimport.pl >+++ b/misc/migration_tools/bulkmarcimport.pl >@@ -341,6 +341,7 @@ RECORD: while ( ) { > push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); > } > $yamlhash->{$originalid}->{'subfields'} = \@subfields; >+ $yamlhash->{$originalid}->{'updated'} = 0; > } > next; > } >@@ -424,6 +425,7 @@ RECORD: while ( ) { > push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); > } > $yamlhash->{$originalid}->{'subfields'} = \@subfields; >+ $yamlhash->{$originalid}->{'updated'} = 1; > } > } > else { >-- >2.11.0
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 15214
:
44979
|
100591
|
101301